25#ifndef NCSelectionBox_h
26#define NCSelectionBox_h
30#include <yui/YSelectionBox.h>
31#include "NCPadWidget.h"
32#include "NCTablePad.h"
38 friend std::ostream & operator<<( std::ostream & str,
const NCSelectionBox & obj );
55 virtual const char * location()
const {
return "NCSelectionBox"; }
57 virtual NCPad * CreatePad();
58 virtual void wRecoded();
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 );
89 virtual bool setKeyboardFocus()
92 return YWidget::setKeyboardFocus();
97 std::string getLine(
int index );
98 void clearTable() {
myPad()->ClearTable(); };
Definition NCSelectionBox.h:36
virtual void setEnabled(bool do_bv)
Definition NCSelectionBox.cc:68
void deleteAllItems()
Definition NCSelectionBox.cc:249
virtual NCTablePad * myPad() const
Definition NCSelectionBox.h:48
Definition NCTablePad.h:62