44 type(eAllDataChanged),
85 for(; aColIx >= 0; aColIx = aColIx / 26 - 1 ){
132 *
this, aFirstRow, aLastRow,
142 *
this, aFirstRow, aLastRow,
152 *
this, aFirstRow, aLastRow,
169 (*iter) -> TableChanged( aNote );
178 Init(n_cols, n_rows);
184 vector<wxString>
names(n_cols, wxString() );
222 _ASSERT(n_cols > 0 && n_rows >= 0);
293 return static_cast<int>(
m_Columns.size());
vector< wxString > TColumn
vector< wxString > m_Icons
virtual void * GetAttachment(int row)
vector< void * > m_Attachments
virtual void Init(int n_cols, int n_rows)
void SetNumRows(int n_rows)
virtual wxString GetColumnName(int col) const
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
virtual wxVariant GetValueAt(int row, int col) const
CTextTableModel(int n_cols=1, int n_rows=0)
CwxTextTableModel.
virtual int GetNumColumns() const
Returns the number of columns in the model.
vector< TColumn > m_Columns
virtual void FireDataChanged()
virtual void SetAttachment(int row, void *attachment)
virtual void SetIcon(int row, const wxString &icon_alias)
vector< wxString > m_ColumnNames
virtual void SetStringValueAt(int row, int col, const wxString &value)
virtual void FireStructureChanged()
virtual wxString GetImageAliasAt(int row, int col) const
virtual void FireRowsUpdated(int first_row, int last_row=-1)
virtual int GetNumRows() const
Returns the number of rows in the model.
virtual void x_FireTableChanged(const CwxTableModelNotice ¬e)
virtual void RemoveTMListener(IwxTableModelListener &aTMEar)
virtual void x_FireCellUpdated(int row, int col)
virtual wxVariant GetValueAt(int row, int col) const =0
virtual void x_FireRowsUpdated(int first_row, int last_row=-1)
virtual wxString GetColumnType(int col_idx) const
Tries to extract actual type from row 0 value if it exists.
virtual wxString GetColumnName(int col_idx) const
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
virtual void x_FireStructureChanged()
virtual void x_FireRowsInserted(int first_row, int last_row=-1)
virtual void AddTMListener(IwxTableModelListener &aTMEar)
list< IwxTableModelListener * > m_ListenerList
List of TM Listeners Listeners are just stored, no deletion upon removal.
CwxAbstractTableModel()
CwxAbstractTableModel.
virtual void x_FireRowsDeleted(int first_row, int last_row=-1)
virtual int GetNumRows() const =0
Returns the number of rows in the model.
virtual void x_FireDataChanged()
CwxTableModelNotice(IwxTableModel &source)
CwxTableModelNotice.
static const int ALL_COLUMNS
static const int HEADER_ROW
static const struct name_t names[]
static const char * column
static const column_t columns[]
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const GenericPointer< typename T::ValueType > T2 value
const CharType(& source)[N]
#define row(bind, expected)