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/classCSelectionControl.html below:

NCBI C++ ToolKit: CSelectionControl Class Reference

Search Toolkit Book for CSelectionControl

#include <gui/widgets/wx/selection_control.hpp>

bool  x_AssertIndexValid (TIndex index) const   Protected API -. More...
  TIndex  x_GetItemsCount () const   void  x_SetItems (const TItemHandleVector &items, bool b_update, bool keep_selection=false)   bool  x_InsertItem (TIndex index, const TItemHandle &item, bool update)   void  x_InsertItems (const TItemHandleVector &items, const TIndexVector &indices, bool update)   bool  x_DeleteItem (TIndex index, bool update=true)   void  x_DeleteAllItems ()   void  x_Clear ()   virtual void  x_SelectItem (TIndex index, bool select)   virtual void  x_SendSelectionEvent (TIndex index)=0   virtual void  x_SelectSingleItem (TIndex index)   handles selection of a single item from UI More...
  virtual void  x_InvertSingleItem (TIndex index)   virtual void  x_SelectItems (const TIndexVector &vIndexes, bool reset_others=false)   Select items with given indices. More...
  virtual void  x_SelectAll (bool select=true)   virtual void  x_SelectTo (TIndex index)   void  OnMouseDown (wxMouseEvent &event)   Event handling. More...
  void  OnKeyDown (wxKeyEvent &event)   void  x_SelectTo (int index, CGUIEvent::EGUIState state)   void  x_MoveSelectionBy (int shift, CGUIEvent::EGUIState state)   void  x_SelectFocusedItem (bool deselect_en)   void  x_UpdateItemToIndex ()   void  x_DebugValid () const   virtual void  x_UpdateItems (TIndexVector &indexes)=0   virtual void  x_UpdateItemsRange (TIndex start, TIndex end)=0   virtual int  x_GetIndexByWindowPos (int win_x, int win_y, bool clip=false)=0   virtual void  x_MakeVisible (TIndex index)=0  

Definition at line 48 of file selection_control.hpp.

◆ TEntryVector ◆ TIndex ◆ TIndexVector ◆ TItemEntry ◆ TItemHandle ◆ TItemHandleVector ◆ TItemToIndexMap ◆ EItemState Enumerator fDefaultState  fItemSelected  fItemFocused  fWidgetFocused 

Definition at line 56 of file selection_control.hpp.

◆ EStyle ◆ CSelectionControl() ◆ ~CSelectionControl() virtual CSelectionControl::~CSelectionControl ( ) inlinevirtual

Definition at line 69 of file selection_control.hpp.

◆ FocusItem() void CSelectionControl::FocusItem ( TIndex  index ) virtual ◆ GetFocusedIndex() ◆ GetItemState() int CSelectionControl::GetItemState ( TIndex  index ) const virtual ◆ GetSelectedCount() ◆ GetSelectedIndex() ◆ GetSelectedIndexes() void CSelectionControl::GetSelectedIndexes ( TIndexVectorindexes ) const virtual ◆ GetStyle() int CSelectionControl::GetStyle ( ) const virtual ◆ IsItemFocused() bool CSelectionControl::IsItemFocused ( TIndex  index ) const virtual ◆ IsItemSelected() bool CSelectionControl::IsItemSelected ( TIndex  index ) const virtual ◆ MoveSelectionBy() ◆ OnKeyDown() void CSelectionControl::OnKeyDown ( wxKeyEvent &  event ) protected ◆ OnMouseDown() void CSelectionControl::OnMouseDown ( wxMouseEvent &  event ) protected

Event handling.

Definition at line 473 of file selection_control.cpp.

References CGUIEvent::eSelectExtState, CGUIEvent::eSelectIncState, CGUIEvent::eSelectState, fSingleSelection, m_Style, CGUIEvent::wxGetSelectState(), x_GetIndexByWindowPos(), x_InvertSingleItem(), x_SelectAll(), x_SelectSingleItem(), and x_SelectTo().

Referenced by CMapControl::OnMouseDown().

◆ SelectAll() void CSelectionControl::SelectAll ( bool  select = true ) virtual ◆ SelectItem() void CSelectionControl::SelectItem ( TIndex  index, bool  select = true  ) virtual ◆ SelectItems() ◆ SetItemState() void CSelectionControl::SetItemState ( TIndex  index, int  state  ) virtual ◆ SetStyle() void CSelectionControl::SetStyle ( int  style ) virtual ◆ x_AssertIndexValid() bool CSelectionControl::x_AssertIndexValid ( TIndex  index ) const protected

Protected API -.

TODO move up

Definition at line 323 of file selection_control.cpp.

References _ASSERT, and m_Entries.

Referenced by CMapControl::DeleteItem(), CMapControl::GetItem(), GetItemState(), IsItemFocused(), IsItemSelected(), SelectItem(), SetItemState(), x_DeleteItem(), CMapControl::x_GetItem(), x_InvertSingleItem(), CMapControl::x_MakeVisible(), and x_SelectItem().

◆ x_Clear() void CSelectionControl::x_Clear ( void  ) protected ◆ x_DebugValid() void CSelectionControl::x_DebugValid ( ) const protected

Definition at line 600 of file selection_control.cpp.

References _ASSERT, i, m_Entries, m_ItemToIndex, m_SelectedCount, and map_checker< Container >::size().

Referenced by FocusItem(), GetSelectedIndexes(), x_DeleteItem(), x_InvertSingleItem(), x_SelectAll(), x_SelectFocusedItem(), x_SelectItems(), x_SelectSingleItem(), and x_SelectTo().

◆ x_DeleteAllItems() void CSelectionControl::x_DeleteAllItems ( ) protected ◆ x_DeleteItem()

Definition at line 271 of file selection_control.cpp.

References count, map_checker< Container >::erase(), IsItemSelected(), m_AnchorIndex, m_Entries, m_FocusedIndex, m_ItemToIndex, m_SelectedCount, max(), x_AssertIndexValid(), x_DebugValid(), x_GetItemsCount(), and x_UpdateItemsRange().

Referenced by CMapControl::DeleteItem().

◆ x_GetIndexByWindowPos() virtual int CSelectionControl::x_GetIndexByWindowPos ( int  win_x, int  win_y, bool  clip = false  ) protectedpure virtual ◆ x_GetItemsCount()

Definition at line 223 of file selection_control.cpp.

References m_Entries.

Referenced by FocusItem(), GetSelectedIndex(), GetSelectedIndexes(), OnKeyDown(), x_DeleteItem(), x_InsertItem(), x_InsertItems(), x_MoveSelectionBy(), x_SelectAll(), x_SelectItems(), and x_SelectTo().

◆ x_InsertItem() ◆ x_InsertItems() ◆ x_InvertSingleItem() void CSelectionControl::x_InvertSingleItem ( TIndex  index ) protectedvirtual ◆ x_MakeVisible() virtual void CSelectionControl::x_MakeVisible ( TIndex  index ) protectedpure virtual ◆ x_MoveSelectionBy() ◆ x_SelectAll() void CSelectionControl::x_SelectAll ( bool  select = true ) protectedvirtual ◆ x_SelectFocusedItem() void CSelectionControl::x_SelectFocusedItem ( bool  deselect_en ) protected ◆ x_SelectItem() void CSelectionControl::x_SelectItem ( TIndex  index, bool  select  ) protectedvirtual ◆ x_SelectItems() ◆ x_SelectSingleItem() void CSelectionControl::x_SelectSingleItem ( TIndex  index ) protectedvirtual ◆ x_SelectTo() [1/2] ◆ x_SelectTo() [2/2] void CSelectionControl::x_SelectTo ( TIndex  index ) protectedvirtual

Definition at line 436 of file selection_control.cpp.

References count, i, IsItemSelected(), m_AnchorIndex, m_FocusedIndex, max(), min(), x_DebugValid(), x_GetItemsCount(), x_SelectItem(), and x_UpdateItems().

Referenced by OnKeyDown(), OnMouseDown(), CMapControl::x_HorzMoveSelectionBy(), x_MoveSelectionBy(), and x_SelectTo().

◆ x_SendSelectionEvent() virtual void CSelectionControl::x_SendSelectionEvent ( TIndex  index ) protectedpure virtual ◆ x_SetItems() ◆ x_UpdateItems() virtual void CSelectionControl::x_UpdateItems ( TIndexVectorindexes ) protectedpure virtual ◆ x_UpdateItemsRange() virtual void CSelectionControl::x_UpdateItemsRange ( TIndex  start, TIndex  end  ) protectedpure virtual ◆ x_UpdateItemToIndex() void CSelectionControl::x_UpdateItemToIndex ( ) protected ◆ m_AnchorIndex TIndex CSelectionControl::m_AnchorIndex protected ◆ m_Entries

Definition at line 151 of file selection_control.hpp.

Referenced by GetSelectedIndex(), GetSelectedIndexes(), IsItemSelected(), x_AssertIndexValid(), x_Clear(), x_DebugValid(), x_DeleteItem(), x_GetItemsCount(), x_InsertItem(), x_InsertItems(), x_SelectAll(), x_SelectItem(), and x_UpdateItemToIndex().

◆ m_FocusedIndex TIndex CSelectionControl::m_FocusedIndex protected ◆ m_ItemToIndex ◆ m_SelectedCount TIndex CSelectionControl::m_SelectedCount protected

Definition at line 155 of file selection_control.hpp.

Referenced by GetSelectedCount(), GetSelectedIndex(), GetSelectedIndexes(), x_Clear(), x_DebugValid(), x_DeleteItem(), x_InvertSingleItem(), x_SelectAll(), x_SelectItem(), x_SelectItems(), and x_SelectSingleItem().

◆ m_SingleSelected TIndex CSelectionControl::m_SingleSelected protected ◆ m_Style int CSelectionControl::m_Style protected

The documentation for this class was generated from the following files:


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