FreeDebks  1.0.3
 All Classes Files Functions Variables Friends Pages
FdDialogBkgProperties.hpp
Go to the documentation of this file.
1 // --------------------------------------------------------------------
2 // Copyright © 2011-2013 Mathieu Schopfer
3 //
4 // This file is part of FreeDebks.
5 //
6 // FreeDebks is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // FreeDebks is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with FreeDebks. If not, see <http://www.gnu.org/licenses/>.
18 // --------------------------------------------------------------------
19 
20 #ifndef FDDIALOGBKGPROPERTIES_HPP
21 #define FDDIALOGBKGPROPERTIES_HPP
22 
23 #include "ui_FdDialogBkgProperties.h"
24 #include "guiDefinitions.hpp"
25 
27 
33 class FdDialogBkgProperties : public QDialog, private Ui::FdDialogBookkeepingProperties
34 {
35 Q_OBJECT
36 
37 private:
43  void init();
44  bool checkDates() const;
45  void getInputFields();
46  void setInputFields();
47 
48 public:
49  explicit FdDialogBkgProperties(QWidget* parent, FdMainWindow* main);
50  FdDialogBkgProperties(QWidget* parent, FdSubWindow* subwindow);
51 
52 private slots:
53  void on_buttonBox_accepted();
54  void on_buttonBox_clicked(QAbstractButton* button);
56 
57 signals:
63  void accepted(FdSubWindow* subwindow);
64 };
65 
66 #endif // FDDIALOGBKGPROPERTIES_HPP