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

EditCurrencyForm.h

Go to the documentation of this file.
00001 /** $Revision: 1.4 $
00002     Last updated: $Date: 2002/09/20 12:21:31 $
00003 
00004     Copyright (C) 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_CURRENCY_FORM__
00021 #define __EDIT_CURRENCY_FORM__
00022 
00023 #include <PalmOS.h>
00024 
00025 #include "Form.h"
00026 #include "CurrencyDB.h"
00027 
00028 /** Form used to edit currency entries */
00029 class EditCurrencyForm : public Form
00030 {   
00031 public:
00032     ///constructor; initializes form
00033     EditCurrencyForm() FORM_SECTION1;
00034     /** instructs the form to treat the upcoming session as new or edit
00035         @param b if true, a new record is going to be created */
00036     void setRecordIsNew(Boolean b) { _record_is_new = b; }
00037 private:
00038     ///holds data being edited
00039     currencyStructure _currency;
00040     ///true if the record being edited is a new record
00041     bool _record_is_new;
00042     ///handle to the currently edited currency
00043     MemHandle _currency_handle;
00044     ///buffer holding the text for the conversion rate
00045     Char _rate_buffer[20];
00046 
00047     ///checks validity of user data
00048     Boolean checkData() FORM_SECTION1;
00049     ///saves the data introduced
00050     void saveData() FORM_SECTION1;
00051     ///sets up form, fills in fields (if edit mode)
00052     Boolean handleOpenEvent() FORM_SECTION1;
00053     ///handles all control actions
00054     Boolean handleCtlSelectEvent (UInt16 control_id) FORM_SECTION1;
00055 };
00056 
00057 #endif

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