Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

EditSplitForm.h

Go to the documentation of this file.
00001 /** $Revision: 1.7 $
00002     Last updated: $Date: 2002/09/25 21:18:01 $
00003 
00004     Copyright (C) 2000-2002 Vlad Mereuta <dizzy@users.sourceforge.net>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00019 
00020 #ifndef __EDIT_SPLIT_FORM__
00021 #define __EDIT_SPLIT_FORM__
00022 
00023 #include <PalmOS.h>
00024 
00025 #include "Form.h"
00026 
00027 /** Form used to edit the content of a split */
00028 class EditSplitForm : public Form
00029 {
00030 public:
00031     ///id of split in the transaction (255 if split is new)
00032     UInt8 split_index;
00033     
00034     ///constructor; initializes form
00035     EditSplitForm() FORM_SECTION2;
00036 
00037 private:
00038     ///name of the account involced in the split
00039     Char acc_name[50];
00040     ///text displayed for debit split
00041     Char debit_label[32];
00042     ///text displayed for credit split
00043     Char credit_label[32];
00044     ///uid of the account for the split
00045     UInt32 acc_uid;
00046     ///amount for the split
00047     Int32 amount;
00048     ///true if split is debit
00049     Boolean is_debit;
00050 
00051     ///checks validity of user data
00052     Boolean checkData() FORM_SECTION2;
00053     ///saves the data introduced
00054     void saveData() FORM_SECTION2;
00055     ///sets up form, fills in fields (if edit mode)
00056     Boolean handleOpenEvent() FORM_SECTION2;
00057     ///handles all control actions
00058     Boolean handleCtlSelectEvent (UInt16 control_id) FORM_SECTION2;
00059     ///handles form updating
00060     Boolean handleUpdateEvent(UInt16 update_code) FORM_SECTION2;
00061 };
00062 
00063 #endif

Generated on Thu Jan 16 23:11:12 2003 for FreeCoins by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002