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

transaction.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the OPIE Project
00003                =.
00004              .=l.            Copyright (c)  2002 Dan Williams <drw@handhelds.org>
00005            .>+-=
00006  _;:,     .>    :=|.         This file is free software; you can
00007 .> <`_,   >  .   <=          redistribute it and/or modify it under
00008 :`=1 )Y*s>-.--   :           the terms of the GNU General Public
00009 .="- .-=="i,     .._         License as published by the Free Software
00010  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00011      ._= =}       :          or (at your option) any later version.
00012     .%`+i>       _;_.
00013     .i_,=:_.      -<s.       This file is distributed in the hope that
00014      +  .  -:.       =       it will be useful, but WITHOUT ANY WARRANTY;
00015     : ..    .:,     . . .    without even the implied warranty of
00016     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00017   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU General
00018 ..}^=.=       =       ;      Public License for more details.
00019 ++=   -.     .`     .:
00020  :     =  ...= . :.=-        You should have received a copy of the GNU
00021  -.   .:....=;==+<;          General Public License along with this file;
00022   -_. . .   )=.  =           see the file COPYING. If not, write to the
00023     --        :-=`           Free Software Foundation, Inc.,
00024                              59 Temple Place - Suite 330,
00025                              Boston, MA 02111-1307, USA.
00026 
00027 */
00028 
00029 #ifndef TRANSACTION_H
00030 #define TRANSACTION_H
00031 
00032 #include <qdialog.h>
00033 
00034 class DateBookMonth;
00035 class QComboBox;
00036 class QLineEdit;
00037 class QMultiLineEdit;
00038 class QPushButton;
00039 class QRadioButton;
00040 class QString;
00041 class QWidget;
00042 class TranInfo;
00043 class Cfg;
00044 
00045 class Transaction : public QDialog
00046 {
00047         Q_OBJECT
00048 
00049         public:
00050                 Transaction( QWidget *, bool, const QString &, TranInfo *, Cfg *);
00051                 ~Transaction();
00052 
00053         void initFromInfo(TranInfo *, bool=false);
00054 
00055         private:
00056                 TranInfo *tran;
00057         bool _bNew;
00058                 Cfg *_pCfg;
00059 
00060                 QRadioButton   *withBtn;
00061                 QRadioButton   *depBtn;
00062                 QPushButton    *dateBtn;
00063                 DateBookMonth  *datePicker;
00064                 QLineEdit      *numEdit;
00065         QComboBox      *_cbDesc;
00066                 QComboBox      *catList;
00067                 QComboBox      *typeList;
00068                 QLineEdit      *amtEdit;
00069                 QLineEdit      *feeEdit;
00070                 QMultiLineEdit *noteEdit;
00071 
00072         protected slots:
00073                 void accept();
00074 
00075         private slots:
00076                 void slotWithdrawalClicked();
00077                 void slotDepositClicked();
00078                 void slotDateChanged( int, int, int );
00079         void slotActivated(const QString & );
00080         void slotNotNew();
00081 };
00082 
00083 #endif

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