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

GenericInputForm.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) 2001-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 __GENERIC_INPUT_FORM__
00021 #define __GENERIC_INPUT_FORM__
00022 
00023 #include <PalmOS.h>
00024 #include "Form.h"
00025 
00026 ///the form is used as a generic one field input form
00027 class GenericInputForm : public Form
00028 {  
00029 public:
00030     /**  executes the dialog
00031          @param parent_form if set it will set the active form to the given form pointer */
00032     UInt16      doDialog(FormPtr parent_form=NULL) FORM_SECTION2;
00033          
00034     /** Constructor
00035         @param title pointer to the title of the form
00036         @param text pointer to the text of the label
00037         @param field_text pointer to the string where the introduced characters are to be stored (maximum 255 characters)
00038         @param max_field_size the allocated/expected size of field_text*/
00039     GenericInputForm(Char* title, Char* text, Char* field_text, UInt8 max_field_size) FORM_SECTION2;
00040 
00041 private:
00042     ///pointer to the form title
00043     Char* title;
00044     ///pointer to the text contained in the label (up to 255 characters)
00045     Char* text;
00046     ///pointer to a buffer where the input will be stored
00047     Char* buf;
00048     ///maximum allowed size for the input
00049     UInt8  max_field_size;
00050 };
00051 #endif

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