UNIVERS
15.3
UNIVERS base processing software API
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
zm
QfTextField.H
1
/* QfTextField.H */
2
/* $Id: QfTextField.H,v 1.7 2009/04/10 15:21:01 vlad Exp $ */
3
#ifndef __QfTextField_H
4
#define __QfTextField_H
5
6
7
#include <zm/qvfcdefs.h>
8
#include <zm/QfBrick.H>
9
10
11
/***********************************************************************
12
* Text field object. Provides way to enter or edit string of chars.
13
*/
14
class
QfTextField
:
public
QfBrick
15
{
16
protected
:
17
18
Widget wLabel, wTextField;
19
20
XmString xmsLabel;
21
char
*szExtBuf;
/* Where to save string. */
22
int
nMaxLen;
/* How many characters to store. */
23
int
nColumns;
/* Width of text field window in characters. */
24
25
virtual
void
create_self
(Widget wParent);
26
27
public
:
28
29
/* In/out buffer: szString; up to nMaxLen characters in szString
30
(supposed definition szString[nMaxLen+1]) */
31
QfTextField
(
const
char
* szLabel,
char
* szString,
int
nMaxLen,
32
int
nWidth = QfTEXT_FIELD_WIDTH);
33
34
/*
35
* Adjustable features.
36
*/
37
38
virtual
void
store_gui
();
39
virtual
void
load_gui
();
40
41
/* Methods to hang callbacks at creation stage. */
42
virtual
void
add_callback
(
const
QCallback
& qcb);
43
44
/* Access to text_field::XmNeditable */
45
void
set_editable (Logic flag);
46
Logic get_editable ();
47
48
};
49
50
51
#endif
/* QfTextField.H */
QfTextField::add_callback
virtual void add_callback(const QCallback &qcb)
QfTextField
Definition:
QfTextField.H:14
QfTextField::store_gui
virtual void store_gui()
QfBrick
Definition:
QfBrick.H:54
QCallback
Definition:
Qmisc.H:44
QfTextField::load_gui
virtual void load_gui()
QfTextField::create_self
virtual void create_self(Widget wParent)
Generated by
1.8.5