summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/apps/checkbook/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/mainwindow.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/noncore/apps/checkbook/mainwindow.h b/noncore/apps/checkbook/mainwindow.h
index 11a3343..2bc70b3 100644
--- a/noncore/apps/checkbook/mainwindow.h
+++ b/noncore/apps/checkbook/mainwindow.h
@@ -21,40 +21,56 @@
21 -.   .:....=;==+<; General Public License along with this file; 21 -.   .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the 22  -_. . .   )=.  = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc., 23    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330, 24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#ifndef MAINWINDOW_H 29#ifndef MAINWINDOW_H
30#define MAINWINDOW_H 30#define MAINWINDOW_H
31 31
32#include <qmainwindow.h> 32#include <qmainwindow.h>
33#include <qpixmap.h>
33 34
35class CBInfo;
36class CBInfoList;
34class QAction; 37class QAction;
35class QListBox; 38class QListView;
36class QListBoxItem;
37class QString; 39class QString;
38 40
39class MainWindow : public QMainWindow 41class MainWindow : public QMainWindow
40{ 42{
41 Q_OBJECT 43 Q_OBJECT
42 44
43 public: 45 public:
44 MainWindow(); 46 MainWindow();
45 ~MainWindow(); 47 ~MainWindow();
46 48
47 private: 49 private:
48 QListBox *cbList; 50 QListView *cbList;
49 QString cbDir; 51 QString cbDir;
50 QAction *actionOpen; 52 QAction *actionOpen;
51 QAction *actionDelete; 53 QAction *actionDelete;
52 QString currencySymbol; 54
55 QString currencySymbol;
56 bool showLocks;
57 bool showBalances;
58 int posName;
59
60 CBInfoList *checkbooks;
61 QString tempFilename;
62 QPixmap lockIcon;
63 QPixmap nullIcon;
64
65 void buildList();
66 void addCheckbook( CBInfo * );
67 void buildFilename( const QString & );
53 68
54 private slots: 69 private slots:
55 void slotNew(); 70 void slotNew();
56 void slotEdit(); 71 void slotEdit();
57 void slotDelete(); 72 void slotDelete();
73 void slotConfigure();
58}; 74};
59 75
60#endif 76#endif