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

NDK_XX::EditNumber Class Reference

#include <ndk++.h>

Inheritance diagram for NDK_XX::EditNumber:

NDK_XX::Edit NDK_XX::Label NDK_XX::Control NDK_XX::EditDate NDK_XX::EditDouble List of all members.

Public Methods

 EditNumber (Control *parent, int id, const string &text,int lines, int cols, int y, int x,int style=framed|editable|tabstop|notify)
int edit (int key)
 This is the specialized driver for edition.


Constructor & Destructor Documentation

NDK_XX::EditNumber::EditNumber Control   parent,
int    id,
const string &    text,
int    lines,
int    cols,
int    y,
int    x,
int    style = framed|editable|tabstop|notify
[inline]
 

EditNumber Constructor See parameters for class Control

Definition at line 603 of file ndk++.h.

References NDK_XX::Control::framed, NDK_XX::Control::notify, NDK_XX::PushButton::PushButton(), NDK_XX::PushButton::set_text(), NDK_XX::Control::tabstop, and NDK_XX::Control::title.

Referenced by NDK_XX::Label::operator[]().

00603 {
00604 public:
00605     /**
00606         PushButton Constructor
00607         See parameters for class Control


Member Function Documentation

int NDK_XX::EditNumber::edit int    key [virtual]
 

This is the specialized driver for edition.

Reimplemented from NDK_XX::Edit.

Reimplemented in NDK_XX::EditDate, and NDK_XX::EditDouble.

Definition at line 758 of file ndk++.cc.

References KEY_ENTER.

00759 {
00760     switch(key) {
00761         case KEY_BACKSPACE:
00762         case KEY_DC:
00763         case KEY_LEFT:
00764         case KEY_RIGHT:
00765         case KEY_ENTER:
00766             return Edit::edit(key);
00767         default:
00768             if(isdigit(key))
00769                 return Edit::edit(key);
00770             else
00771                 beep();
00772             break;
00773     }
00774     return FALSE;
00775 }


The documentation for this class was generated from the following files:
Generated on Thu Oct 10 16:02:16 2002 by doxygen1.2.17