Files
prodejna/core/settings/globalsettingsform.h
T

45 lines
927 B
C++
Raw Normal View History

2016-02-24 22:46:36 +01:00
#ifndef GLOBALSETTINGSFORM_H
#define GLOBALSETTINGSFORM_H
#include <QWidget>
#include "../formbinder.h"
#include "globalsettings.h"
#include "../autotablemodel.h"
#include "../data/numberseries.h"
2016-02-24 22:46:36 +01:00
namespace Ui {
class GlobalSettingsForm;
}
class GlobalSettingsForm : public FormBinder<GlobalSettings>
{
Q_OBJECT
public:
explicit GlobalSettingsForm(QWidget *parent = 0);
~GlobalSettingsForm();
private:
Ui::GlobalSettingsForm *ui;
AutoTableModel<NumberSeries> *m_seriesModel;
QList<SeasonPtr> m_seasons;
void loadSeasons();
void loadNumSeries();
2016-02-24 22:46:36 +01:00
// IForm interface
public slots:
bool saveRecord() override;
// IForm interface
public:
void loadEntity() override;
2016-05-27 16:47:40 +02:00
private slots:
void on_vatPayer_toggled(bool checked);
void on_season_currentIndexChanged(int index);
void on_btnEditName_clicked();
void on_btnNew_clicked();
2016-02-24 22:46:36 +01:00
};
#endif // GLOBALSETTINGSFORM_H