Go to the SVN repository for this file.
1 #ifndef GUI_WIDGETS_WX___SELECTION_CONTROL__HPP 2 #define GUI_WIDGETS_WX___SELECTION_CONTROL__HPP 42 #include <wx/gdicmn.h> 65fSingleSelection = 0x01
71 virtual intGetStyle()
const;
72 virtual voidSetStyle(
intstyle);
75 virtual intGetItemState(
TIndexindex)
const;
76 virtual voidSetItemState(
TIndexindex,
int state);
78 virtual boolIsItemFocused(
TIndexindex)
const;
79 virtual TIndexGetFocusedIndex()
const;
81 virtual boolIsItemSelected(
TIndexindex)
const;
82 virtual TIndexGetSelectedIndex()
const;
83 virtual TIndexGetSelectedCount()
const;
84 virtual voidGetSelectedIndexes(TIndexVector& indexes)
const;
86 virtual voidFocusItem(
TIndexindex);
87 virtual voidSelectItem(
TIndexindex,
boolselect =
true);
88 virtual voidSelectItems(TIndexVector& indexes,
boolselect =
true);
90 virtual voidSelectAll(
boolselect =
true);
95this->x_MoveSelectionBy(shift,
state);
99 boolx_AssertIndexValid(
TIndexindex)
const;
100 TIndexx_GetItemsCount()
const;
103 boolkeep_selection =
false);
109 boolx_DeleteItem(
TIndexindex,
boolupdate =
true);
111 voidx_DeleteAllItems();
115 virtual voidx_SelectItem(
TIndexindex,
boolselect);
118 virtual voidx_SelectSingleItem(
TIndexindex);
119 virtual voidx_InvertSingleItem(
TIndexindex);
120 virtual voidx_SelectItems(
const TIndexVector& vIndexes,
121 boolreset_others =
false);
122 virtual voidx_SelectAll(
boolselect =
true);
123 virtual voidx_SelectTo(
TIndexindex);
127 voidOnMouseDown(wxMouseEvent& event);
128 voidOnKeyDown(wxKeyEvent& event);
132 voidx_SelectFocusedItem(
booldeselect_en);
134 voidx_UpdateItemToIndex();
136 voidx_DebugValid()
const;
virtual void x_UpdateItems(TIndexVector &indexes)=0
vector< TItemEntry > TEntryVector
map< TItemHandle, int > TItemToIndexMap
void MoveSelectionBy(int shift, CGUIEvent::EGUIState state)
vector< TItemHandle > TItemHandleVector
virtual int x_GetIndexByWindowPos(int win_x, int win_y, bool clip=false)=0
TIndex m_FocusedIndex
index of the selected itme (valid only in fSingleSelection mode)
vector< TIndex > TIndexVector
virtual void x_MakeVisible(TIndex index)=0
TIndex m_SingleSelected
number of selected items
virtual void x_UpdateItemsRange(TIndex start, TIndex end)=0
virtual void x_SendSelectionEvent(TIndex index)=0
virtual ~CSelectionControl()
TItemToIndexMap m_ItemToIndex
void x_SetItems(const TItemHandleVector &items, bool b_update, bool keep_selection=false)
pair< TItemHandle, bool > TItemEntry
Workaround for wxWidgets header errors in certain configurations; MUST be included (at least indirect...
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_WX_EXPORT
The NCBI C++/STL use hints.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4