Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

transactiondisplay.h

Go to the documentation of this file.
00001 #ifndef TRANSACTIONDISPLAY_H
00002 #define TRANSACTIONDISPLAY_H
00003 
00004 #include <qlayout.h>
00005 #include <qhbox.h>
00006 #include <qlistview.h>
00007 #include <qpushbutton.h>
00008 #include <qlabel.h>
00009 #include <qlineedit.h>
00010 #include <qdatetime.h>
00011 
00012 class TransactionDisplay : public QWidget
00013   {
00014     Q_OBJECT
00015 
00016   public:
00017     TransactionDisplay ( QWidget* parent );
00018 
00019     QListView* listview;
00020     QPushButton* newtransaction;
00021     QPushButton* edittransaction;
00022     QPushButton* deletetransaction;
00023     QPushButton* toggletransaction;
00024     QPushButton* viewtransactionnotes;
00025 
00026     QLabel *name;
00027     QLabel *balance;
00028     QLineEdit *limitbox;
00029     QLineEdit *amount;
00030     QLineEdit *date;
00031 
00032     int getIDColumn ();
00033 
00034   public slots:
00035     void setChildren ( bool );
00036     void setAccountID ( int );
00037     void showTransactionNotes ();
00038 
00039   private slots:
00040     void addTransaction ();
00041     void editTransaction ();
00042     void editTransfer ();
00043     void deleteTransaction ();
00044     void toggleTransaction ();
00045     void checkListViewDelete ();
00046     void checkListViewEdit ();
00047     void checkListViewToggle ();
00048     void saveColumnSize ( int column, int oldsize, int newsize );
00049     void limitDisplay ( const QString & );
00050     void showCalculator ();
00051     void showCalendar ();
00052     void setTransactionDisplayDate ();
00053     void saveSortingPreference ( int column );
00054 
00055   private:
00056     int accountid, fromaccount, fromparent, toaccount, toparent, day, month, year, transferid;
00057     QDate displaydate;
00058     bool children;
00059     QBoxLayout *layout;
00060     QHBox *firstline;
00061     QHBox *secondline;
00062     void redisplayAccountBalance ();
00063     void updateAndDisplay ( int accountid );
00064   };
00065 
00066 #endif
00067 
00068 #ifndef COLORLISTITEM_H
00069 #define COLORLISTITEM_H
00070 
00071 class ColorListItem : public QListViewItem
00072   {
00073     public:
00074 
00075       ColorListItem ( QListView *parent );
00076       ColorListItem ( QListView *parent, QString label1, QString label2, QString label3, QString label4 );
00077       ColorListItem ( QListView *parent, QString label1, QString label2, QString label3, QString label4, QString label5 );
00078 
00079       virtual void paintCell ( QPainter *p, const QColorGroup &cg, int column, int width, int alignment );
00080   };
00081 
00082 #endif
00083 

Generated on Sat Nov 5 16:18:11 2005 for OPIE by  doxygen 1.4.2