25 #ifndef NCItemSelector_h 26 #define NCItemSelector_h 32 #include <yui/YItemSelector.h> 33 #include "NCPadWidget.h" 34 #include "NCTablePad.h" 39 friend std::ostream & operator<<( std::ostream & str,
const NCItemSelectorBase & obj );
52 const YItemCustomStatusVector & customStates );
82 virtual void setSize(
int newWidth,
int newHeight );
132 virtual void addItem( YItem * item );
144 virtual void selectItem( YItem * item,
bool selected );
158 virtual void startMultipleChanges() { startMultidraw(); }
160 virtual void doneMultipleChanges() { stopMultidraw(); }
162 virtual const char * location()
const {
return "NCItemSelectorBase"; }
276 virtual void wRecoded() { NCPadWidget::wRecoded(); }
285 YItem* findItemWithHotkey(
int key )
const;
314 virtual const char * location()
const {
return "NCItemSelector"; }
360 #endif // NCItemSelector_h
void createItemWidget(YItem *item)
Definition: NCItemSelector.cc:201
YItem * scrollUpToPreviousItem()
Definition: NCItemSelector.cc:375
virtual int preferredHeight()
Definition: NCItemSelector.cc:101
int linesCount() const
Definition: NCItemSelector.h:120
virtual ~NCItemSelector()
Definition: NCItemSelector.cc:594
virtual NCTableTag * createTagCell(YItem *item)=0
std::vector< std::string > descriptionLines(YItem *item) const
Definition: NCItemSelector.cc:297
NCItemSelectorBase(YWidget *parent, bool enforceSingleSelection)
Definition: NCItemSelector.cc:39
virtual void deleteAllItems()
Definition: NCItemSelector.cc:311
YItem * scrollDownToNextItem()
Definition: NCItemSelector.cc:352
std::string description(YItem *item) const
Definition: NCItemSelector.cc:280
virtual int preferredWidth()
Definition: NCItemSelector.cc:95
virtual void cycleCurrentItemStatus()
Definition: NCItemSelector.cc:622
virtual wpos CurPos() const
CurPos().L is the index of the selected item.
Definition: NCTablePadBase.cc:188
Definition: NCTablePad.h:61
virtual void activateItem(YItem *item)
Definition: NCItemSelector.cc:543
virtual NCursesEvent valueChangedNotify(YItem *item)=0
void deselectAllItemsExcept(YItem *exceptItem)
Definition: NCItemSelector.cc:656
virtual void setSize(int newWidth, int newHeight)
Definition: NCItemSelector.cc:142
virtual void selectItem(YItem *item, bool selected)
Definition: NCItemSelector.cc:319
virtual void deselectAllItems()
Definition: NCItemSelector.cc:335
virtual NCPad * CreatePad()
Definition: NCItemSelector.cc:82
virtual void setVisibleItems(int newVal)
Definition: NCItemSelector.cc:164
virtual NCTableTag * createTagCell(YItem *item)
Definition: NCItemSelector.cc:601
const NCTableLine * getLine(int lineNo)
Definition: NCItemSelector.h:155
virtual ~NCItemSelectorBase()
Definition: NCItemSelector.cc:76
virtual NCursesEvent wHandleInput(wint_t key)
Definition: NCItemSelector.cc:397
virtual bool statusChangeAllowed(int fromStatus, int toStatus)
Definition: NCItemSelector.cc:641
virtual wsze preferredSize()
Definition: NCItemSelector.cc:107
virtual NCTablePad * myPad() const
Definition: NCItemSelector.h:273
int currentLine() const
Definition: NCItemSelector.h:126
unsigned Lines() const
Definition: NCTablePadBase.h:122
NCItemSelector(YWidget *parent, bool enforceSingleSelection)
Definition: NCItemSelector.cc:587
virtual void cycleCurrentItemStatus()=0
virtual void setCurrentItem(YItem *item)
Definition: NCItemSelector.cc:182
virtual bool setKeyboardFocus()
Definition: NCItemSelector.cc:148
virtual NCursesEvent valueChangedNotify(YItem *item)
Definition: NCItemSelector.cc:611
virtual void addItem(YItem *item)
Definition: NCItemSelector.cc:191
int findItemLine(YItem *item) const
Definition: NCItemSelector.cc:266
Screen dimension (screen size) in the order height, width: (H, W)
Definition: position.h:153
Definition: NCTableItem.h:67
virtual void shortcutChanged()
Definition: NCItemSelector.cc:556
Definition: NCTableItem.h:646
Definition: NCItemSelector.h:37
Definition: NCItemSelector.h:301
virtual YItem * currentItem() const
Definition: NCItemSelector.cc:171
virtual bool statusChangeAllowed(int fromStatus, int toStatus)
Definition: NCItemSelector.h:210
const NCTableLine * GetLine(unsigned idx) const
Definition: NCTablePadBase.cc:87
virtual NCTableTag * tagCell(int index) const
Definition: NCItemSelector.cc:255
virtual bool HasHotkey(int key)
Definition: NCItemSelector.cc:572
virtual void setEnabled(bool do_bv)
Definition: NCItemSelector.cc:157