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

GenericInputForm Class Reference

the form is used as a generic one field input form. More...

#include <GenericInputForm.h>

Inheritance diagram for GenericInputForm:

Form Collaboration diagram for GenericInputForm:

Collaboration graph
[legend]
List of all members.

Public Methods

UInt16 doDialog (FormPtr parent_form=NULL) FORM_SECTION2
 executes the dialog. More...

 GenericInputForm (Char *title, Char *text, Char *field_text, UInt8 max_field_size) FORM_SECTION2
 Constructor. More...


Private Attributes

Char * title
 pointer to the form title. More...

Char * text
 pointer to the text contained in the label (up to 255 characters). More...

Char * buf
 pointer to a buffer where the input will be stored. More...

UInt8 max_field_size
 maximum allowed size for the input. More...


Detailed Description

the form is used as a generic one field input form.

Copyright (C) 2001-2002 Vlad Mereuta <dizzy@users.sourceforge.net>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition at line 27 of file GenericInputForm.h.


Constructor & Destructor Documentation

GenericInputForm::GenericInputForm Char *    title,
Char *    text,
Char *    field_text,
UInt8    max_field_size
 

Constructor.

Parameters:
title  pointer to the title of the form
text  pointer to the text of the label
field_text  pointer to the string where the introduced characters are to be stored (maximum 255 characters)
max_field_size  the allocated/expected size of field_text


Member Function Documentation

UInt16 GenericInputForm::doDialog FormPtr    parent_form = NULL
 

executes the dialog.

Parameters:
parent_form  if set it will set the active form to the given form pointer

Reimplemented from Form.


Member Data Documentation

Char* GenericInputForm::buf [private]
 

pointer to a buffer where the input will be stored.

Definition at line 47 of file GenericInputForm.h.

UInt8 GenericInputForm::max_field_size [private]
 

maximum allowed size for the input.

Definition at line 49 of file GenericInputForm.h.

Char* GenericInputForm::text [private]
 

pointer to the text contained in the label (up to 255 characters).

Definition at line 45 of file GenericInputForm.h.

Char* GenericInputForm::title [private]
 

pointer to the form title.

Definition at line 43 of file GenericInputForm.h.


The documentation for this class was generated from the following file:
Generated on Thu Jan 16 23:11:15 2003 for FreeCoins by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002