This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ESGRAF48/source/DataModel.h

58 lines
1.1 KiB
C
Raw Normal View History

2018-05-16 05:02:12 +00:00
#pragma once
2019-01-12 15:50:04 +00:00
#include "PrintableModel.h"
2018-05-18 18:36:48 +00:00
#include "MetaData/MetaDataModel.h"
2018-06-04 16:23:51 +00:00
#include "GenusModel.h"
#include "VerbEndModel.h"
2018-06-04 16:48:58 +00:00
#include "PluralModel.h"
#include "AkkusativModel.h"
#include "DativModel.h"
2018-06-25 21:04:32 +00:00
#include "V2SvkModel.h"
2018-06-26 14:59:51 +00:00
#include "PassivModel.h"
#include "GenitivModel.h"
2018-05-16 05:02:12 +00:00
2018-06-06 16:05:30 +00:00
#include "ResultModel.h"
2019-01-12 15:50:04 +00:00
#include <QPainter>
2018-05-16 05:02:12 +00:00
2019-01-12 15:50:04 +00:00
class DataModel : public QObject, public PrintableModel
2018-05-16 05:02:12 +00:00
{
Q_OBJECT
public:
MetaDataModel m_metaData;
2018-05-23 16:43:57 +00:00
VerbEndModel m_verbEnd;
2018-05-22 18:23:03 +00:00
GenusModel m_genus;
2018-06-04 16:48:58 +00:00
PluralModel m_plural;
AkkusativModel m_akkusativ;
DativModel m_dativ;
2018-06-25 21:04:32 +00:00
V2SvkModel m_v2Svk;
2018-06-26 14:59:51 +00:00
PassivModel m_passiv;
GenitivModel m_genitiv;
2018-05-16 05:02:12 +00:00
2018-06-06 16:05:30 +00:00
ResultModel m_results;
2018-05-16 05:02:12 +00:00
public:
DataModel(QObject *parent);
void write(std::ostream &outStream) const;
void read(std::istream &inStream);
2018-11-13 23:17:29 +00:00
2019-01-12 15:50:04 +00:00
void printTo(QPainter &painter) const override;
signals:
void modelChanged();
private slots:
void pluralModelChanged();
void metaDataChanged();
2018-06-15 15:53:43 +00:00
void genusModelChanged();
2018-06-15 16:36:58 +00:00
void verbEndModelChanged();
void akkusativModelChanged();
void dativModelChanged();
2018-06-25 21:04:32 +00:00
void v2SvkModelChanged();
2018-06-26 14:59:51 +00:00
void passivModelChanged();
void genitivModelChanged();
2018-05-16 05:02:12 +00:00
};