comparison src/main.h @ 218:c3f47d489097

Implement global transactions viewer dialog.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 Mar 2018 14:37:39 +0200
parents 58af72da7f60
children 54ab3f3e28c0
comparison
equal deleted inserted replaced
217:58af72da7f60 218:c3f47d489097
136 namespace Ui 136 namespace Ui
137 { 137 {
138 class SyntilistaMainWindow; 138 class SyntilistaMainWindow;
139 class EditPerson; 139 class EditPerson;
140 class AboutWindow; 140 class AboutWindow;
141 class ViewTransactions;
141 } 142 }
142 143
143 typedef struct 144 typedef struct
144 { 145 {
145 int nlinesPerPage; 146 int nlinesPerPage;
183 void on_button_ClearFilter_clicked(); 184 void on_button_ClearFilter_clicked();
184 185
185 void on_button_Quit_clicked(); 186 void on_button_Quit_clicked();
186 void on_button_About_clicked(); 187 void on_button_About_clicked();
187 void on_button_Print_clicked(); 188 void on_button_Print_clicked();
189 void on_button_ViewTransactions_clicked();
188 190
189 void on_button_AddDebt_clicked(); 191 void on_button_AddDebt_clicked();
190 void on_button_PayDebt_clicked(); 192 void on_button_PayDebt_clicked();
191 void on_button_PayFullDebt_clicked(); 193 void on_button_PayFullDebt_clicked();
192 194
282 private slots: 284 private slots:
283 void on_button_Close_clicked(); 285 void on_button_Close_clicked();
284 286
285 private: 287 private:
286 Ui::AboutWindow *ui; 288 Ui::AboutWindow *ui;
289 };
290
291
292 //
293 // Global transactions list viewer
294 //
295 class ViewTransactions : public QDialog
296 {
297 Q_OBJECT
298
299 public:
300 explicit ViewTransactions(QWidget *parent = 0);
301 ~ViewTransactions();
302
303 // void statusMsg(const QString &msg);
304
305 private slots:
306 void on_button_Close_clicked();
307
308 private:
309 Ui::ViewTransactions *ui;
310
311 SLTransactionSQLModel *model_Transactions;
287 }; 312 };
288 313
289 314
290 // 315 //
291 // Custom painter drawing helper class 316 // Custom painter drawing helper class