-
Notifications
You must be signed in to change notification settings - Fork 0
/
dough.h
64 lines (48 loc) · 1.31 KB
/
dough.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef DOUGH_H
#define DOUGH_H
#include "expensewidget.h"
#include "incomewidget.h"
#include "qpushbutton.h"
#include "qtableview.h"
#include <QWidget>
#include <QDate>
#include <QString>
#include <QSqlTableModel>
QT_BEGIN_NAMESPACE
namespace Ui {
class dough;
}
QT_END_NAMESPACE
class dough : public QWidget
{
Q_OBJECT
public:
dough(QWidget *parent = nullptr);
~dough();
private slots:
void on_pushButton_expense_clicked();
void onExpenseWidgetClosed(int result);
void on_pushButton_income_clicked();
void onIncomeWidgetClosed(int result);
void on_tableView_expenses_activated(const QModelIndex &index);
void on_tableView_incomes_activated(const QModelIndex &index);
void showHomePage();
void showExpensePage();
void showIncomePage();
void showReportPage();
private:
Ui::dough *ui;
QWidget *widget_home;
QWidget *widget_expenses;
QWidget *widget_incomes;
QWidget *widget_reports;
QPushButton *pushButton_expense;
QPushButton *pushButton_income;
ExpenseWidget *expenseWidget; // Declare the ExpenseWidget pointer here
IncomeWidget *incomeWidget; // Declare the IncomeWidget pointer here
QTableView *tableView_incomes;
QTableView *tableView_expenses;
void updateExpensesView();
void updateIncomesView();
};
#endif // DOUGH_H