summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/checkbook.h
Unidiff
Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h
index 287788a..0260b43 100644
--- a/noncore/apps/checkbook/checkbook.h
+++ b/noncore/apps/checkbook/checkbook.h
@@ -1,10 +1,10 @@
1/* 1/*
2                This file is part of the OPIE Project 2                This file is part of the OPIE Project
3 =. 3 =.
4             .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> 4             .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org>
5           .>+-= 5           .>+-=
6 _;:,     .>    :=|. This file is free software; you can 6 _;:,     .>    :=|. This file is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under 7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software 9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 10 - .   .-<_>     .<> Foundation; either version 2 of the License,
@@ -29,12 +29,13 @@
29#ifndef CHECKBOOK_H 29#ifndef CHECKBOOK_H
30#define CHECKBOOK_H 30#define CHECKBOOK_H
31 31
32#include "traninfo.h" 32#include "traninfo.h"
33 33
34#include <qdialog.h> 34#include <qdialog.h>
35#include <qlistview.h>
35 36
36class OTabWidget; 37class OTabWidget;
37 38
38class Graph; 39class Graph;
39class GraphInfo; 40class GraphInfo;
40class QComboBox; 41class QComboBox;
@@ -62,13 +63,13 @@ class Checkbook : public QDialog
62 char currencySymbol; 63 char currencySymbol;
63 int highTranNum; 64 int highTranNum;
64 65
65 OTabWidget *mainWidget; 66 OTabWidget *mainWidget;
66 void loadCheckbook(); 67 void loadCheckbook();
67 void adjustBalance( float ); 68 void adjustBalance( float );
68 TranInfo *findTranByID( int ); 69 TranInfo *findTran( const QString &, const QString &, const QString & );
69 70
70 // Info tab 71 // Info tab
71 QWidget *initInfo(); 72 QWidget *initInfo();
72 QLineEdit *nameEdit; 73 QLineEdit *nameEdit;
73 QComboBox *typeList; 74 QComboBox *typeList;
74 QLineEdit *bankEdit; 75 QLineEdit *bankEdit;
@@ -102,7 +103,26 @@ class Checkbook : public QDialog
102 void slotNewTran(); 103 void slotNewTran();
103 void slotEditTran(); 104 void slotEditTran();
104 void slotDeleteTran(); 105 void slotDeleteTran();
105 void slotDrawGraph(); 106 void slotDrawGraph();
106}; 107};
107 108
109class CBListItem : public QListViewItem
110{
111 //Q_OBJECT
112
113 public:
114 CBListItem( QListView *, QString = QString::null, QString = QString::null,
115 QString = QString::null, QString = QString::null, QString = QString::null,
116 QString = QString::null, QString = QString::null, QString = QString::null );
117
118 void paintCell( QPainter *, const QColorGroup &, int, int, int );
119
120 private:
121 QListView *owner;
122 bool m_known;
123 bool m_odd;
124
125 bool isAltBackground();
126};
127
108#endif 128#endif