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"; }
Definition NCItemSelector.h:38
virtual wsze preferredSize()
Definition NCItemSelector.cc:107
virtual ~NCItemSelectorBase()
Definition NCItemSelector.cc:76
virtual int preferredHeight()
Definition NCItemSelector.cc:101
virtual void deleteAllItems()
Definition NCItemSelector.cc:311
void createItemWidget(YItem *item)
Definition NCItemSelector.cc:201
virtual NCTableTag * tagCell(int index) const
Definition NCItemSelector.cc:255
virtual void addItem(YItem *item)
Definition NCItemSelector.cc:191
virtual void selectItem(YItem *item, bool selected)
Definition NCItemSelector.cc:319
int findItemLine(YItem *item) const
Definition NCItemSelector.cc:266
virtual bool setKeyboardFocus()
Definition NCItemSelector.cc:148
virtual void shortcutChanged()
Definition NCItemSelector.cc:556
int linesCount() const
Definition NCItemSelector.h:120
virtual void setVisibleItems(int newVal)
Definition NCItemSelector.cc:164
virtual NCTableTag * createTagCell(YItem *item)=0
int currentLine() const
Definition NCItemSelector.h:126
virtual int preferredWidth()
Definition NCItemSelector.cc:95
YItem * scrollUpToPreviousItem()
Definition NCItemSelector.cc:375
const NCTableLine * getLine(int lineNo)
Definition NCItemSelector.h:155
virtual void setSize(int newWidth, int newHeight)
Definition NCItemSelector.cc:142
virtual void cycleCurrentItemStatus()=0
virtual bool statusChangeAllowed(int fromStatus, int toStatus)
Definition NCItemSelector.h:210
NCItemSelectorBase(YWidget *parent, bool enforceSingleSelection)
Definition NCItemSelector.cc:39
virtual YItem * currentItem() const
Definition NCItemSelector.cc:171
std::vector< std::string > descriptionLines(YItem *item) const
Definition NCItemSelector.cc:297
virtual void activateItem(YItem *item)
Definition NCItemSelector.cc:543
virtual void setCurrentItem(YItem *item)
Definition NCItemSelector.cc:182
virtual void deselectAllItems()
Definition NCItemSelector.cc:335
YItem * scrollDownToNextItem()
Definition NCItemSelector.cc:352
std::string description(YItem *item) const
Definition NCItemSelector.cc:280
virtual NCursesEvent valueChangedNotify(YItem *item)=0
virtual bool HasHotkey(int key)
Definition NCItemSelector.cc:572
virtual NCPad * CreatePad()
Definition NCItemSelector.cc:82
virtual NCursesEvent wHandleInput(wint_t key)
Definition NCItemSelector.cc:397
virtual void setEnabled(bool do_bv)
Definition NCItemSelector.cc:157
virtual NCTablePad * myPad() const
Definition NCItemSelector.h:273
Definition NCItemSelector.h:302
NCItemSelector(YWidget *parent, bool enforceSingleSelection)
Definition NCItemSelector.cc:587
virtual ~NCItemSelector()
Definition NCItemSelector.cc:594
virtual bool statusChangeAllowed(int fromStatus, int toStatus)
Definition NCItemSelector.cc:641
virtual NCTableTag * createTagCell(YItem *item)
Definition NCItemSelector.cc:601
virtual NCursesEvent valueChangedNotify(YItem *item)
Definition NCItemSelector.cc:611
virtual void cycleCurrentItemStatus()
Definition NCItemSelector.cc:622
void deselectAllItemsExcept(YItem *exceptItem)
Definition NCItemSelector.cc:656
Definition NCTableItem.h:68
unsigned Lines() const
Definition NCTablePadBase.h:122
const NCTableLine * GetLine(unsigned idx) const
Definition NCTablePadBase.cc:87
virtual wpos CurPos() const
CurPos().L is the index of the selected item.
Definition NCTablePadBase.cc:188
Definition NCTablePad.h:62
Definition NCTableItem.h:647
Screen dimension (screen size) in the order height, width: (H, W)
Definition position.h:154