A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/selection__control_8hpp_source.html below:

NCBI C++ ToolKit: include/gui/widgets/wx/selection_control.hpp Source File

Go to the documentation of this file.

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> 65

fSingleSelection = 0x01

71  virtual int

GetStyle()

const

;

72  virtual void

SetStyle(

int

style);

75  virtual int

GetItemState(

TIndex

index)

const

;

76  virtual void

SetItemState(

TIndex

index,

int state

);

78  virtual bool

IsItemFocused(

TIndex

index)

const

;

79  virtual TIndex

GetFocusedIndex()

const

;

81  virtual bool

IsItemSelected(

TIndex

index)

const

;

82  virtual TIndex

GetSelectedIndex()

const

;

83  virtual TIndex

GetSelectedCount()

const

;

84  virtual void

GetSelectedIndexes(TIndexVector& indexes)

const

;

86  virtual void

FocusItem(

TIndex

index);

87  virtual void

SelectItem(

TIndex

index,

bool

select =

true

);

88  virtual void

SelectItems(TIndexVector& indexes,

bool

select =

true

);

90  virtual void

SelectAll(

bool

select =

true

);

95

this->x_MoveSelectionBy(shift,

state

);

99  bool

x_AssertIndexValid(

TIndex

index)

const

;

100  TIndex

x_GetItemsCount()

const

;

103  bool

keep_selection =

false

);

109  bool

x_DeleteItem(

TIndex

index,

bool

update =

true

);

111  void

x_DeleteAllItems();

115  virtual void

x_SelectItem(

TIndex

index,

bool

select);

118  virtual void

x_SelectSingleItem(

TIndex

index);

119  virtual void

x_InvertSingleItem(

TIndex

index);

120  virtual void

x_SelectItems(

const TIndexVector

& vIndexes,

121  bool

reset_others =

false

);

122  virtual void

x_SelectAll(

bool

select =

true

);

123  virtual void

x_SelectTo(

TIndex

index);

127  void

OnMouseDown(wxMouseEvent& event);

128  void

OnKeyDown(wxKeyEvent& event);

132  void

x_SelectFocusedItem(

bool

deselect_en);

134  void

x_UpdateItemToIndex();

136  void

x_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