forked from foldynl/QLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAwardsDialog.h
40 lines (32 loc) · 876 Bytes
/
AwardsDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef QLOG_UI_AWARDSDIALOG_H
#define QLOG_UI_AWARDSDIALOG_H
#include <QDialog>
#include <QSqlQueryModel>
#include <QComboBox>
#include "models/AwardsTableModel.h"
#include "models/SqlListModel.h"
namespace Ui {
class AwardsDialog;
}
class AwardsDialog : public QDialog
{
Q_OBJECT
public:
explicit AwardsDialog(QWidget *parent = nullptr);
~AwardsDialog();
public slots:
void refreshTable(int);
void awardTableDoubleClicked(QModelIndex);
signals:
void AwardConditionSelected(QString, QString, QString);
private:
Ui::AwardsDialog *ui;
AwardsTableModel *detailedViewModel;
SqlListModel* entityCallsignModel;
QString selectedAward;
const QString getSelectedEntity() const;
const QString getSelectedAward() const;
void setEntityInputEnabled(bool);
void setNotWorkedEnabled(bool);
};
#endif // QLOG_UI_AWARDSDIALOG_H