wxPoint& pos = wxDefaultPosition,
140 constwxSize&
size= wxDefaultSize,
141 longstyle = wxLC_REPORT | wxLC_VIRTUAL,
142 constwxValidator& validator = wxDefaultValidator,
143 constwxString& name = wxListCtrlNameStr
151 voidSetModel(
IwxTableModel* data_model,
boolown =
false);
158wxVariant GetValueVisibleAt(
int row,
intcol )
const;
159 constwxString GetTypeVisibleAt(
int row,
intcol )
const;
161 voidEnableHeader(
boolflag );
166 voidExportTableControlToCSV();
168 #ifndef wxHAS_LISTCTRL_COLUMN_ORDER 170 intGetColumnOrder(
intcol )
const;
171 intGetColumnIndexFromOrder(
intorder )
const;
174wxArrayInt GetColumnsOrder()
const;
177 boolSetColumnsOrder(
constwxArrayInt& orders );
180 boolSetColumnOrder(
intcol,
intorder );
182 intGetNumColumnsVisible()
const;
183 intGetNumColumnsHidden()
const;
185 intColumnVisibleToIndex(
intcol )
const;
186 intColumnIndexToVisible(
intcol )
const;
188 intColumnHiddenToIndex(
intcol )
const;
189 intColumnIndexToHidden(
intcol )
const;
191 intColumnIndexToModel(
intcol )
const;
192 intColumnModelToIndex(
intcol )
const;
194 intColumnVisibleToModel(
intcol )
const;
195 intColumnModelToVisible(
intcol )
const;
197 boolIsColumnVisibleByIndex(
intcol )
const;
199wxString GetColumnNameByModel(
intcol )
const;
200wxString GetColumnNameByIndex(
intcol )
const;
201wxString GetColumnNameVisible(
intcol )
const;
202wxString GetColumnNameHidden(
intcol )
const;
204wxString GetColumnTitleByModel(
intcol )
const;
205wxString GetColumnTitleByIndex(
intcol )
const;
206wxString GetColumnTitleVisible(
intcol )
const;
207wxString GetColumnTitleHidden(
intcol )
const;
209 intGetModelIndexByName( wxString name )
const;
210 intGetColumnIndexByName( wxString name )
const;
211 intGetColumnVisibleByName( wxString name )
const;
212 intGetColumnHiddenByName( wxString name )
const;
214wxListColumnFormat GetColumnAlign(
intcol_ix )
const;
215 voidSetColumnAlign(
intcol_ix, wxListColumnFormat aAlign );
219 voidAddColumn(
intmodel_ix,
boolhidden =
false);
221 voidRemoveColumn(
intcol_ix,
boolhide =
false);
222 voidMoveColumn(
intcol_ix,
intaTargetColIx );
224 void HideColumn(
intcol_ix ){ RemoveColumn( col_ix,
true); }
225 voidShowColumn(
intcol_ix );
227 voidRemoveAllColumns();
229 voidCreateAllColumnsFromModel();
233 intRowVisibleToData(
intaRow )
const;
234 intRowDataToVisible(
intaRow )
const;
243 voidApplyFiltering(
boolpreserve_state =
true);
257 voidSetSorterByIndex(
intcol );
259 _ASSERT( col < m_Columns.size() );
263 voidSetSorterByColumns();
266 voidSetSortedState( ESortedState sorted );
270 voidUpdateSortIcons();
271 voidClearSortIcons();
274 void ResetSorting() { m_SortedCols.clear(); m_Sorted = eNoSort; InvalidateSorting(); }
275 voidApplySorting(
boolpreserve_state =
true);
276 voidShiftSorting(
intcol = -1 );
280 voidCreateDefaultSorters();
285 intGetFocusRow()
const;
286 voidSetFocusRow(
int row);
287 intGetFocusColumn()
const;
290 voidOnFocusChanged( wxListEvent& event );
295 boolIsCellSelectedAt(
int row,
intWXUNUSED(col) )
const;
296 longGetLastSelected()
const;
299 voidClearSelection();
301wxArrayInt GetDataRowsSelected()
const;
302 voidGetDataRowsSelected( vector<int>& rows )
const;
303 voidSetDataRowsSelected(
constvector<int>& rows );
327virtual void EditingFinished();
349CAnyRef<ITableCellEditor> GetDefaultEditor( const type_info& aType ) const;
350void SetDefaultEditor( const type_info& aType, CAnyRef<ITableCellEditor> aEditor );
373 boolShowHorzLines()
const;
374 voidSetShowHorzLines(
boolshow );
375 bool ShowVertLines()
const{
return(GetWindowStyleFlag() & wxLC_VRULES) != 0; }
378 void SetShowGrid(
boolaShow ){ SetShowHorzLines( aShow ); SetShowVertLines( aShow ); }
388wxColor GetBackgroundColor() {
returnGetBackgroundColour(); }
401 virtual voidAppendMenuItems( wxMenu& aMenu );
404 voidOnSelectionChanged( wxListEvent& event );
405 virtual voidx_OnSelectionChanged(
boolon,
intstart_row,
intend_row = -1 );
409 voidOnColumnClick( wxListEvent &anEvt );
410 voidOnColumnRightClick( wxListEvent &anEvt );
411 voidOnColumnBeginDrag( wxListEvent &anEvt );
412 voidOnColumnEndDrag( wxListEvent &anEvt );
414 voidOnKeyDown( wxKeyEvent &anEvt );
416 voidOnSelectAll( wxCommandEvent &anEvt );
418 voidOnContextMenu( wxContextMenuEvent& anEvent );
420 voidOnCopy( wxCommandEvent &anEvt );
421 voidOnCopyUpdate( wxUpdateUIEvent &anEvt );
422 virtual voidx_OnCopy();
424 voidOnDebugEvent( wxListEvent &anEvt );
425 voidOnMouseMove( wxMouseEvent &anEvt );
426 voidOnLeftDown( wxMouseEvent &anEvt );
428 voidOnTimer(wxTimerEvent& event);
430 voidOnPaint( wxPaintEvent& anEvt );
433 voidInternalOnPopupMenu( wxCommandEvent& event );
434 intDoGetPopupMenuSelectionFromUser( wxMenu& menu,
constwxPoint& pos );
435 intx_FindRow(
constwxPoint &pt)
const;
436 intx_FindColumn(
constwxPoint &pt)
const;
437 voidx_ShowTooltip(
boolshow);
439 intShowHeaderContextMenu(
constwxPoint& pos );
446 SViewState() : m_FocusModelRow( -1 ), m_TopModelRow( -1 ) {}
448 voidx_SaveViewState( SViewState*
state);
449 voidx_RestoreViewState( SViewState*
state);
455wxListColumnFormat GetAlignByType( wxString aColType );
459 virtualwxString OnGetItemText(
longaRow,
longaCol )
const;
460 virtual intOnGetItemImage(
longaRow )
const;
461 virtual intOnGetItemColumnImage(
longaRow,
longaCol )
const;
462 virtualwxListItemAttr* OnGetItemAttr(
longaRow )
const;
517DECLARE_EVENT_TABLE()
class CRegistryReadView provides a nested hierarchical view at a particular key.
CIRef< IwxStringFormat > m_Formatter
CIRef< IRowSorter > m_Sorter
CTableListColumn & operator=(const CTableListColumn &column)
CTableListColumn(int aModelIndex)
CwxTableListCtrl - generic wxListCtrl-based Table Control.
void SetContextMenuEventPropagation(bool flag)
wxString m_ToolTipText
Test to put in tooltip.
void SetShowVertLines(bool show)
const vector< TSortedCol > & GetSortedCols() const
wxColor GetBackgroundColor() const
int m_TipStartX
Start/stop x value of cell to which tooltip belongs.
void SetFocusColumn(int WXUNUSED(col))
WX_DECLARE_STRING_HASH_MAP(IwxVariantSorter *, TSorterMap)
WX_DECLARE_STRING_HASH_MAP(int, TAliasMap)
wxColor GetSecondBackgroundColor() const
CFixGenericListCtrl m_FixGenericListCtrl
void SetShowGrid(bool aShow)
void SetSecondBackgroundColor(wxColor aColor)
IwxTableModel * m_DataModel
const wxString GetTypeFromModelAt(int row, int col) const
TSorterMap m_DefaultSorters
vector< CTableListColumn > m_Columns
void SetForegroundColor(wxColor aColor)
bool ShowVertLines() const
bool mf_ImageListInstalled
int m_CurrentCol
Last column user clicked on (tooltips are only on selected/clicked itmes)
ESortedState GetSortedState() const
void AddSorterIndex(size_t col, ESortedState state)
void SetBackgroundColor(wxColor aColor)
pair< int, ESortedState > TSortedCol
int m_CurrentRow
Last row user clicked on.
vector< int > m_VisibleRows
void HideColumn(int col_ix)
CIRef< IRowSorter > m_Sorter
bool ShouldPropagateContextMenu() const
vector< TSortedCol > m_SortedCols
int GetNumRowsVisible() const
wxColor GetForegroundColor() const
wxVariant GetValueFromModelAt(int row, int col) const
virtual void TableChanged(const CwxTableModelNotice &aNotice)=0
GUI command routing and handling framework.
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const char * column
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_WX_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
Defines: CTimeFormat - storage class for time format.
#define row(bind, expected)
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