summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/checkbook.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/checkbook/checkbook.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.h28
1 files changed, 22 insertions, 6 deletions
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h
index 4a5011b..1b6a2d3 100644
--- a/noncore/apps/checkbook/checkbook.h
+++ b/noncore/apps/checkbook/checkbook.h
@@ -31,2 +31,3 @@
+#include <qdatetime.h>
#include <qdialog.h>
@@ -48,3 +49,6 @@ class TranInfo;
class TranInfoList;
+class Cfg;
+
+// --- Checkbook --------------------------------------------------------------
class Checkbook : public QDialog
@@ -54,5 +58,8 @@ class Checkbook : public QDialog
public:
- Checkbook( QWidget * = 0x0, CBInfo * = 0x0, const QString & = "$" );
+ Checkbook( QWidget *, CBInfo *, Cfg *cfg );
~Checkbook();
+ // resort
+ void resort();
+
private:
@@ -60,4 +67,3 @@ class Checkbook : public QDialog
TranInfoList *tranList;
- QString currencySymbol;
- int highTranNum;
+ Cfg *_pCfg;
@@ -66,3 +72,2 @@ class Checkbook : public QDialog
void adjustBalance();
- TranInfo *findTran( const QString &, const QString &, const QString & );
@@ -78,2 +83,3 @@ class Checkbook : public QDialog
QMultiLineEdit *notesEdit;
+ int _sortCol;
@@ -82,3 +88,4 @@ class Checkbook : public QDialog
QListView *tranTable;
- QLabel *balanceLabel;
+ QComboBox *_cbSortType;
+ QDate _dLastNew;
@@ -93,4 +100,6 @@ class Checkbook : public QDialog
+
protected slots:
void accept();
+ void slotTab(QWidget *tab);
@@ -104,4 +113,6 @@ class Checkbook : public QDialog
void slotDrawGraph();
+ void slotSortChanged( const QString & );
};
+// --- CBListItem -------------------------------------------------------------
class CBListItem : public QListViewItem
@@ -111,3 +122,3 @@ class CBListItem : public QListViewItem
public:
- CBListItem( QListView *, QString = QString::null, QString = QString::null,
+ CBListItem( TranInfo *, QListView *, QString = QString::null, QString = QString::null,
QString = QString::null, QString = QString::null, QString = QString::null,
@@ -117,3 +128,7 @@ class CBListItem : public QListViewItem
+ // --- members
+ TranInfo *getTranInfo() { return(_pTran); }
+
private:
+ TranInfo *_pTran;
QListView *owner;
@@ -125,2 +140,3 @@ class CBListItem : public QListViewItem
+
#endif