25#ifndef NCSelectionBox_h
26#define NCSelectionBox_h
30#include <yui/YSelectionBox.h>
31#include "NCPadWidget.h"
32#include "NCTablePad.h"
35class NCSelectionBox :
public YSelectionBox,
public NCPadWidget
38 friend std::ostream & operator<<( std::ostream & str,
const NCSelectionBox & obj );
40 NCSelectionBox & operator=(
const NCSelectionBox & );
41 NCSelectionBox(
const NCSelectionBox & );
55 virtual const char * location()
const {
return "NCSelectionBox"; }
57 virtual NCPad * CreatePad();
58 virtual void wRecoded();
62 NCSelectionBox( YWidget * parent,
const std::string & label );
63 virtual ~NCSelectionBox();
65 bool bigList()
const {
return biglist; }
67 void setBigList(
bool big ) { biglist = big; }
69 virtual void addItem( YItem *item );
70 virtual void addItem(
const std::string & itemLabel,
bool selected =
false );
72 virtual int preferredWidth();
73 virtual int preferredHeight();
75 virtual void setSize(
int newWidth,
int newHeight );
77 virtual void setLabel(
const std::string & nlabel );
79 virtual int getCurrentItem()
const;
80 virtual void setCurrentItem(
int index );
82 virtual void selectItem( YItem *item,
bool selected );
83 virtual void selectItem(
int index );
85 virtual NCursesEvent wHandleInput( wint_t key );
89 virtual bool setKeyboardFocus()
92 return YWidget::setKeyboardFocus();
97 std::string getLine(
int index );
virtual void setEnabled(bool do_bv)
Definition NCSelectionBox.cc:68
void deleteAllItems()
Definition NCSelectionBox.cc:249
virtual NCTablePad * myPad() const
Definition NCSelectionBox.h:48
void ClearTable()
Definition NCTablePadBase.cc:51
Definition NCTablePad.h:62