ESGRAF48/source/DataModel.h

68 lines
1.3 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"
2019-01-31 19:14:38 +00:00
#include "WFModel.h"
#include "OTModel.h"
#include "TPrModel.h"
#include "TPeModel.h"
2019-01-31 19:14:38 +00:00
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-02-03 18:53:51 +00:00
#include <QPrinter>
2018-05-16 05:02:12 +00:00
2019-02-03 18:53:51 +00:00
class DataModel : public QObject
2018-05-16 05:02:12 +00:00
{
2019-10-05 14:14:45 +00:00
Q_OBJECT
2018-05-16 05:02:12 +00:00
public:
2019-10-05 14:14:45 +00:00
MetaDataModel m_metaData;
VerbEndModel m_verbEnd;
GenusModel m_genus;
PluralModel m_plural;
AkkusativModel m_akkusativ;
DativModel m_dativ;
WFModel m_wfModel;
OTModel m_otModel;
TPrModel m_tPrModel;
TPeModel m_tPeModel;
2018-06-26 14:59:51 +00:00
PassivModel m_passiv;
GenitivModel m_genitiv;
2018-05-16 05:02:12 +00:00
2019-10-05 14:14:45 +00:00
ResultModel m_results;
2018-06-06 16:05:30 +00:00
2018-05-16 05:02:12 +00:00
public:
2019-10-05 14:14:45 +00:00
DataModel(QObject* parent);
2018-05-16 05:02:12 +00:00
2019-10-05 14:14:45 +00:00
void write(const QString& filename) const;
void read(const QString& filename);
2018-11-13 23:17:29 +00:00
2019-10-05 14:14:45 +00:00
void printTo(QPrinter& printer) const;
2019-01-12 15:50:04 +00:00
signals:
2019-10-05 14:14:45 +00:00
void modelChanged();
private slots:
2019-10-05 14:14:45 +00:00
void pluralModelChanged();
void metaDataChanged();
void genusModelChanged();
void verbEndModelChanged();
void akkusativModelChanged();
void dativModelChanged();
void v2SvkModelChanged();
2018-06-26 14:59:51 +00:00
void passivModelChanged();
void genitivModelChanged();
2018-05-16 05:02:12 +00:00
};