sptk2 logo
SPTK Home Page

sptk::CMemoInput Class Reference
[GUI Classes]

Simple text editor. More...

#include <CMemoInput.h>

Inheritance diagram for sptk::CMemoInput:

sptk::CInput sptk::CControl sptk::CLayoutClient

List of all members.

Public Member Functions

 CMemoInput (const char *label=0, int layoutSize=10, CLayoutAlign layoutAlign=SP_ALIGN_TOP)
 Constructor in SPTK style.
virtual CControlKind kind () const
 Returns the control kind, SPTK-style RTTI.
virtual std::string className () const
 Returns the control class name, SPTK-style RTTI.
virtual CVariant data () const
 Universal data connection, returns data from control.
virtual void data (const CVariant v)
 Universal data connection, sets data from control.
virtual Fl_Font textFont () const
 Returns the input text font type.
virtual void textFont (Fl_Font f)
 Sets the input text font type.
virtual uchar textSize () const
 Returns the input text font size.
virtual void textSize (uchar s)
 Sets the input text font size.
virtual void save (CQuery *)
 Saves data to query.
virtual bool preferredSize (int &w, int &h)
 Computes the optimal widget size.

Static Public Member Functions

static CLayoutClientcreator (CXmlNode *node)
 Creates a widget based on the XML node information.


Detailed Description

Simple text editor.

Multiple line input box


Constructor & Destructor Documentation

sptk::CMemoInput::CMemoInput ( const char *  label = 0,
int  layoutSize = 10,
CLayoutAlign  layoutAlign = SP_ALIGN_TOP 
)

Constructor in SPTK style.

Parameters:
label const char *, label
layoutSize int, widget align in layout
layoutAlign CLayoutAlign, widget align in layout


Member Function Documentation

virtual CControlKind sptk::CMemoInput::kind (  )  const [inline, virtual]

Returns the control kind, SPTK-style RTTI.

See also:
CControlKind for more information

Reimplemented from sptk::CInput.

References sptk::DCV_MEMO.

virtual bool sptk::CMemoInput::preferredSize ( int &  w,
int &  h 
) [virtual]

Computes the optimal widget size.

Parameters:
w int&, input - width offered by the program, output - width required by widget
h int&, input - height offered by the program, output - height required by widget
Returns:
true if the size is stable (doesn't depend on input sizes)

Reimplemented from sptk::CInput.


The documentation for this class was generated from the following file:

Mon Mar 5 11:56:16 2012: SPTK 3.5.7