Public Member Functions | |
scalar_struct_model (const QString &expr, const octave_value &val) | |
scalar_struct_model (const scalar_struct_model &)=delete | |
~scalar_struct_model (void)=default | |
void | clear_update_pending (void) |
int | column_width (void) const |
int | columnCount (const QModelIndex &=QModelIndex()) const |
QVariant | data (const QModelIndex &idx, int role=Qt::DisplayRole) const |
octave_idx_type | data_columns (void) const |
octave_idx_type | data_rows (void) const |
int | display_columns (void) const |
int | display_rows (void) const |
QVariant | edit_display (const QModelIndex &idx, int role) const |
QString | edit_display_sub (const octave_value &elt, int role) const |
QVariant | header_data (int section, Qt::Orientation orientation, int role) const |
bool | index_ok (const QModelIndex &idx, int &row, int &col) const |
virtual bool | is_editable (void) const |
bool | is_valid (void) const |
virtual QString | make_description_text (void) const |
virtual void | maybe_resize_columns (int) |
virtual void | maybe_resize_rows (int) |
std::string | name (void) const |
scalar_struct_model & | operator= (const scalar_struct_model &)=delete |
char | quote_char (const QModelIndex &idx) const |
bool | requires_sub_editor (const QModelIndex &idx) const |
void | reset (const octave_value &val) |
int | rowCount (const QModelIndex &=QModelIndex()) const |
void | set_update_pending (const QModelIndex &idx, const QString &str) |
QString | subscript_expression (const QModelIndex &idx) const |
bool | update_pending (const QModelIndex &idx) const |
QString | update_pending_data (const QModelIndex &idx) const |
octave_value | value_at (const QModelIndex &idx) const |
Protected Attributes | |
octave_idx_type | m_data_cols |
octave_idx_type | m_data_rows |
int | m_display_cols |
float_display_format | m_display_fmt |
int | m_display_rows |
std::string | m_name |
QMap< QModelIndex, QString > | m_update_pending |
bool | m_valid |
octave_value | m_value |
Definition at line 516 of file variable-editor-model.cc.
|
inline |
Definition at line 520 of file variable-editor-model.cc.
References base_ve_model::m_data_cols, base_ve_model::m_data_rows, base_ve_model::m_display_cols, base_ve_model::m_display_rows, and octave_value::nfields().
|
default |
|
delete |
|
inherited |
Definition at line 260 of file variable-editor-model.cc.
References base_ve_model::m_update_pending.
Referenced by variable_editor_model::clear_update_pending().
|
inherited |
Definition at line 128 of file variable-editor-model.cc.
References float_display_format::imag_format(), octave_value::iscomplex(), base_ve_model::m_display_fmt, base_ve_model::m_value, float_display_format::real_format(), and float_format::width().
Referenced by variable_editor_model::column_width().
|
inherited |
Definition at line 159 of file variable-editor-model.cc.
References base_ve_model::m_display_cols, and base_ve_model::m_valid.
Referenced by variable_editor_model::columnCount().
|
inherited |
Definition at line 210 of file variable-editor-model.cc.
References base_ve_model::edit_display(), Utils::fromStdString(), base_ve_model::m_name, base_ve_model::m_valid, base_ve_model::update_pending(), and base_ve_model::update_pending_data().
Referenced by variable_editor_model::data().
|
inlineinherited |
Definition at line 105 of file variable-editor-model.h.
References base_ve_model::m_data_cols.
Referenced by variable_editor_model::data_columns(), header_data(), vector_struct_model::header_data(), and base_ve_model::index_ok().
|
inlineinherited |
Definition at line 103 of file variable-editor-model.h.
References base_ve_model::m_data_rows.
Referenced by variable_editor_model::data_rows(), header_data(), vector_struct_model::header_data(), and base_ve_model::index_ok().
|
inlineinherited |
Definition at line 109 of file variable-editor-model.h.
References base_ve_model::m_display_cols.
Referenced by variable_editor_model::display_columns().
|
inlineinherited |
Definition at line 107 of file variable-editor-model.h.
References base_ve_model::m_display_rows.
Referenced by variable_editor_model::display_rows().
|
inlinevirtual |
Reimplemented from base_ve_model.
Definition at line 543 of file variable-editor-model.cc.
References base_ve_model::edit_display_sub(), base_ve_model::index_ok(), m, base_ve_model::m_value, and octave_value::scalar_map_value().
|
inherited |
Definition at line 165 of file variable-editor-model.cc.
References cell_is_editable(), octave_value::class_name(), octave_value::dims(), octave_value::edit_display(), Utils::fromStdString(), get_edit_display_format(), octave_value::is_single_type(), float_display_format::set_precision(), and dim_vector::str().
Referenced by cell_model::edit_display(), edit_display(), and vector_struct_model::edit_display().
|
inlinevirtual |
Reimplemented from base_ve_model.
Definition at line 579 of file variable-editor-model.cc.
References base_ve_model::data_columns(), base_ve_model::data_rows(), Utils::fromStdString(), m, base_ve_model::m_value, and octave_value::scalar_map_value().
|
inherited |
Definition at line 113 of file variable-editor-model.cc.
References base_ve_model::data_columns(), and base_ve_model::data_rows().
Referenced by numeric_model::edit_display(), cell_model::edit_display(), edit_display(), vector_struct_model::edit_display(), base_ve_model::edit_display(), struct_model::edit_display(), cell_model::requires_sub_editor(), requires_sub_editor(), vector_struct_model::requires_sub_editor(), struct_model::requires_sub_editor(), subscript_expression(), struct_model::subscript_expression(), cell_model::value_at(), value_at(), vector_struct_model::value_at(), and struct_model::value_at().
|
inlinevirtualinherited |
Reimplemented in display_only_model.
Definition at line 64 of file variable-editor-model.h.
Referenced by variable_editor_model::is_editable().
|
inlineinherited |
Definition at line 101 of file variable-editor-model.h.
References base_ve_model::m_valid.
Referenced by variable_editor_model::is_valid().
|
virtualinherited |
Reimplemented in display_only_model.
Definition at line 288 of file variable-editor-model.cc.
References octave_value::class_name(), octave_value::dims(), Utils::fromStdString(), octave_value::is_defined(), base_ve_model::m_name, base_ve_model::m_value, and dim_vector::str().
Referenced by display_only_model::make_description_text(), and variable_editor_model::make_description_text().
|
inlinevirtualinherited |
Reimplemented in struct_model, cell_model, and numeric_model.
Definition at line 58 of file variable-editor-model.h.
Referenced by variable_editor_model::maybe_resize_columns().
|
inlinevirtualinherited |
Reimplemented in struct_model, vector_struct_model, cell_model, and numeric_model.
Definition at line 56 of file variable-editor-model.h.
Referenced by variable_editor_model::maybe_resize_rows().
|
inherited |
Definition at line 107 of file variable-editor-model.cc.
References base_ve_model::m_name.
Referenced by variable_editor_model::double_click(), and variable_editor_model::name().
|
delete |
|
inlinevirtual |
Reimplemented from base_ve_model.
Definition at line 569 of file variable-editor-model.cc.
References get_quote_char(), octave_value::is_string(), and value_at().
|
inlinevirtual |
Reimplemented from base_ve_model.
Definition at line 556 of file variable-editor-model.cc.
References do_requires_sub_editor_sub(), base_ve_model::index_ok(), m, base_ve_model::m_value, and octave_value::scalar_map_value().
|
inherited |
|
inherited |
Definition at line 153 of file variable-editor-model.cc.
References base_ve_model::m_display_rows, and base_ve_model::m_valid.
Referenced by variable_editor_model::rowCount().
|
inherited |
Definition at line 242 of file variable-editor-model.cc.
References base_ve_model::m_update_pending.
Referenced by variable_editor_model::set_update_pending().
|
inlinevirtual |
Reimplemented from base_ve_model.
Definition at line 612 of file variable-editor-model.cc.
References Utils::fromStdString(), base_ve_model::index_ok(), m, base_ve_model::m_value, and octave_value::scalar_map_value().
|
inherited |
Definition at line 248 of file variable-editor-model.cc.
References base_ve_model::m_update_pending.
Referenced by base_ve_model::data(), and variable_editor_model::update_pending().
|
inherited |
Definition at line 254 of file variable-editor-model.cc.
References base_ve_model::m_update_pending.
Referenced by base_ve_model::data(), and variable_editor_model::update_pending_data().
|
inlinevirtual |
Reimplemented from base_ve_model.
Definition at line 630 of file variable-editor-model.cc.
References base_ve_model::index_ok(), m, base_ve_model::m_value, octave_value(), and octave_value::scalar_map_value().
Referenced by quote_char().
|
protectedinherited |
Definition at line 122 of file variable-editor-model.h.
Referenced by cell_model::cell_model(), display_only_model::display_only_model(), numeric_model::numeric_model(), scalar_struct_model(), string_model::string_model(), struct_model::struct_model(), vector_struct_model::vector_struct_model(), and base_ve_model::data_columns().
|
protectedinherited |
Definition at line 121 of file variable-editor-model.h.
Referenced by cell_model::cell_model(), display_only_model::display_only_model(), numeric_model::numeric_model(), scalar_struct_model(), string_model::string_model(), struct_model::struct_model(), vector_struct_model::vector_struct_model(), and base_ve_model::data_rows().
|
protectedinherited |
Definition at line 126 of file variable-editor-model.h.
Referenced by display_only_model::display_only_model(), scalar_struct_model(), string_model::string_model(), vector_struct_model::vector_struct_model(), base_ve_model::columnCount(), base_ve_model::display_columns(), numeric_model::maybe_resize_columns(), cell_model::maybe_resize_columns(), and struct_model::maybe_resize_columns().
|
protectedinherited |
Definition at line 132 of file variable-editor-model.h.
Referenced by base_ve_model::column_width(), numeric_model::edit_display(), base_ve_model::edit_display(), and struct_model::edit_display().
|
protectedinherited |
Definition at line 125 of file variable-editor-model.h.
Referenced by display_only_model::display_only_model(), scalar_struct_model(), string_model::string_model(), base_ve_model::display_rows(), numeric_model::maybe_resize_rows(), cell_model::maybe_resize_rows(), vector_struct_model::maybe_resize_rows(), struct_model::maybe_resize_rows(), and base_ve_model::rowCount().
|
protectedinherited |
Definition at line 117 of file variable-editor-model.h.
Referenced by base_ve_model::data(), display_only_model::edit_display(), base_ve_model::make_description_text(), and base_ve_model::name().
|
protectedinherited |
Definition at line 128 of file variable-editor-model.h.
Referenced by base_ve_model::clear_update_pending(), base_ve_model::set_update_pending(), base_ve_model::update_pending(), and base_ve_model::update_pending_data().
|
protectedinherited |
Definition at line 130 of file variable-editor-model.h.
Referenced by base_ve_model::columnCount(), base_ve_model::data(), base_ve_model::is_valid(), and base_ve_model::rowCount().
|
protectedinherited |
Definition at line 119 of file variable-editor-model.h.
Referenced by base_ve_model::column_width(), string_model::edit_display(), display_only_model::edit_display(), numeric_model::edit_display(), cell_model::edit_display(), edit_display(), vector_struct_model::edit_display(), base_ve_model::edit_display(), struct_model::edit_display(), header_data(), vector_struct_model::header_data(), base_ve_model::make_description_text(), string_model::quote_char(), cell_model::requires_sub_editor(), requires_sub_editor(), vector_struct_model::requires_sub_editor(), struct_model::requires_sub_editor(), subscript_expression(), vector_struct_model::subscript_expression(), cell_model::value_at(), value_at(), vector_struct_model::value_at(), and struct_model::value_at().