Public Member Functions | |
struct_model (const QString &expr, const octave_value &val) | |
struct_model (const struct_model &)=delete | |
~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) const |
QString | edit_display_sub (const octave_value &elt, int role) const |
virtual 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 |
void | maybe_resize_columns (int cols) |
void | maybe_resize_rows (int rows) |
std::string | name (void) const |
struct_model & | operator= (const 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 828 of file variable-editor-model.cc.
|
inline |
Definition at line 832 of file variable-editor-model.cc.
References base_ve_model::m_data_cols, base_ve_model::m_data_rows, maybe_resize_columns(), and maybe_resize_rows().
|
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(), scalar_struct_model::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(), scalar_struct_model::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 862 of file variable-editor-model.cc.
References octave_value::edit_display(), Utils::fromStdString(), base_ve_model::index_ok(), base_ve_model::m_display_fmt, and base_ve_model::m_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(), scalar_struct_model::edit_display(), and vector_struct_model::edit_display().
|
virtualinherited |
Reimplemented in vector_struct_model, and scalar_struct_model.
Definition at line 272 of file variable-editor-model.cc.
Referenced by variable_editor_model::headerData().
|
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(), scalar_struct_model::edit_display(), vector_struct_model::edit_display(), base_ve_model::edit_display(), edit_display(), cell_model::requires_sub_editor(), scalar_struct_model::requires_sub_editor(), vector_struct_model::requires_sub_editor(), requires_sub_editor(), scalar_struct_model::subscript_expression(), subscript_expression(), cell_model::value_at(), scalar_struct_model::value_at(), vector_struct_model::value_at(), and 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().
|
inlinevirtual |
Reimplemented from base_ve_model.
Definition at line 856 of file variable-editor-model.cc.
References base_ve_model::m_display_cols.
Referenced by struct_model().
|
inlinevirtual |
Reimplemented from base_ve_model.
Definition at line 850 of file variable-editor-model.cc.
References base_ve_model::m_display_rows.
Referenced by struct_model().
|
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 887 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 874 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::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 897 of file variable-editor-model.cc.
References base_ve_model::index_ok().
|
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 910 of file variable-editor-model.cc.
References base_ve_model::index_ok(), m, base_ve_model::m_value, octave_value::map_value(), and octave_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::scalar_struct_model(), string_model::string_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::scalar_struct_model(), string_model::string_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::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 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 edit_display().
|
protectedinherited |
Definition at line 125 of file variable-editor-model.h.
Referenced by display_only_model::display_only_model(), scalar_struct_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(), 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(), scalar_struct_model::edit_display(), vector_struct_model::edit_display(), base_ve_model::edit_display(), edit_display(), scalar_struct_model::header_data(), vector_struct_model::header_data(), base_ve_model::make_description_text(), string_model::quote_char(), cell_model::requires_sub_editor(), scalar_struct_model::requires_sub_editor(), vector_struct_model::requires_sub_editor(), requires_sub_editor(), scalar_struct_model::subscript_expression(), vector_struct_model::subscript_expression(), cell_model::value_at(), scalar_struct_model::value_at(), vector_struct_model::value_at(), and value_at().