30#include <yui/YIntField.h>
34class NCIntField :
public YIntField,
public NCWidget
38 friend std::ostream & operator<<( std::ostream & str,
const NCIntField & obj );
40 NCIntField & operator=(
const NCIntField & );
41 NCIntField(
const NCIntField & );
44 static const unsigned taglen;
59 virtual const char * location()
const {
return "NCIntField"; }
61 virtual void wCreate(
const wrect & newrect );
62 virtual void wDelete();
64 virtual void wRedraw();
66 bool Increment(
bool bigstep =
false );
67 bool Decrement(
bool bigstep =
false );
69 int enterPopup(
wchar_t first = L
'\0' );
73 NCIntField( YWidget * parent,
74 const std::string & label,
75 int minValue,
int maxValue,
77 virtual ~NCIntField();
79 virtual int preferredWidth();
80 virtual int preferredHeight();
82 virtual void setSize(
int newWidth,
int newHeight );
84 virtual void setLabel(
const std::string & nlabel );
86 virtual void setValueInternal(
int newValue );
88 virtual int value() {
return cvalue; }
92 virtual bool setKeyboardFocus()
95 return YWidget::setKeyboardFocus();
virtual void setEnabled(bool do_bv)
Definition NCIntField.cc:85
Multi-line string, with optional hotkey, drawable.
Definition NCtext.h:82
C++ class for windows.
Definition ncursesw.h:907
A rectangle is defined by its position and size: wpos Pos, wsze Sze.
Definition position.h:194