#include "workspace-model.h"
Public Slots | |
void | clear_workspace (void) |
void | notice_settings (const gui_settings *) |
void | set_workspace (bool top_level, bool debug, const symbol_info_list &syminfo) |
Signals | |
void | model_changed (void) |
void | prompt_variable_editor (void) |
Public Member Functions | |
workspace_model (QObject *parent=nullptr) | |
~workspace_model (void)=default | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
symbol_info_list | get_symbol_info (void) const |
QStringList | get_symbol_names (void) const |
QStringList | get_symbol_values (void) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
bool | is_top_level (void) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
QColor | storage_class_color (int s_class) |
Private Member Functions | |
void | clear_data (void) |
void | update_table (void) |
Private Attributes | |
QStringList | m_class_names |
QStringList | m_columnNames |
QIntList | m_complex_flags |
QStringList | m_dimensions |
bool | m_enable_colors |
QString | m_scopes |
QList< QColor > | m_storage_class_colors |
QStringList | m_symbols |
symbol_info_list | m_syminfo_list |
bool | m_top_level |
QStringList | m_values |
Definition at line 46 of file workspace-model.h.
workspace_model::workspace_model | ( | QObject * | parent = nullptr | ) |
Definition at line 44 of file workspace-model.cc.
References ws_colors_count.
|
default |
|
private |
Definition at line 221 of file workspace-model.cc.
References m_class_names, m_complex_flags, m_dimensions, m_scopes, m_symbols, m_syminfo_list, m_top_level, and m_values.
Referenced by clear_workspace(), and set_workspace().
|
slot |
Definition at line 194 of file workspace-model.cc.
References clear_data(), and update_table().
Referenced by base_qobject::workspace_widget().
int workspace_model::columnCount | ( | const QModelIndex & | parent = QModelIndex () | ) | const |
Definition at line 71 of file workspace-model.cc.
References m_columnNames.
QVariant workspace_model::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 103 of file workspace-model.cc.
References m_class_names, m_complex_flags, m_dimensions, m_enable_colors, m_scopes, m_storage_class_colors, m_symbols, m_values, ws_class_chars(), ws_color_names, and ws_colors_count.
Referenced by headerData().
Qt::ItemFlags workspace_model::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 77 of file workspace-model.cc.
References m_top_level.
|
inline |
Definition at line 74 of file workspace-model.h.
|
inline |
Definition at line 76 of file workspace-model.h.
Referenced by octave_qscintilla::event().
|
inline |
Definition at line 77 of file workspace-model.h.
Referenced by octave_qscintilla::event().
QVariant workspace_model::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 93 of file workspace-model.cc.
References data(), m_columnNames, and Utils::toStdString().
|
inline |
Definition at line 67 of file workspace-model.h.
Referenced by workspace_view::contextmenu_requested().
|
signal |
Referenced by update_table(), and base_qobject::workspace_widget().
|
slot |
Definition at line 201 of file workspace-model.cc.
References m_enable_colors, m_storage_class_colors, ws_color_mode(), ws_colors, ws_colors_count, and ws_enable_colors().
Referenced by workspace_view::notice_settings().
|
signal |
int workspace_model::rowCount | ( | const QModelIndex & | parent = QModelIndex () | ) | const |
Definition at line 65 of file workspace-model.cc.
References m_symbols.
|
slot |
Definition at line 182 of file workspace-model.cc.
References clear_data(), m_syminfo_list, m_top_level, and update_table().
Referenced by base_qobject::workspace_widget().
|
inline |
Definition at line 69 of file workspace-model.h.
Referenced by workspace_view::notice_settings().
|
private |
Definition at line 234 of file workspace-model.cc.
References dim_vector::alloc(), octave_value::class_name(), Utils::fromStdString(), octave_value::iscomplex(), m_class_names, m_complex_flags, m_dimensions, m_scopes, m_symbols, m_syminfo_list, m_values, model_changed(), dim_vector::ndims(), Array< T, Alloc >::numel(), octave_value::short_disp(), octave_value::size(), and dim_vector::str().
Referenced by clear_workspace(), and set_workspace().
|
private |
Definition at line 102 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().
|
private |
Definition at line 107 of file workspace-model.h.
Referenced by columnCount(), and headerData().
|
private |
Definition at line 105 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().
|
private |
Definition at line 103 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().
|
private |
Definition at line 110 of file workspace-model.h.
Referenced by data(), and notice_settings().
|
private |
Definition at line 100 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().
|
private |
Definition at line 109 of file workspace-model.h.
Referenced by data(), and notice_settings().
|
private |
Definition at line 101 of file workspace-model.h.
Referenced by clear_data(), data(), rowCount(), and update_table().
|
private |
Definition at line 99 of file workspace-model.h.
Referenced by clear_data(), set_workspace(), and update_table().
|
private |
Definition at line 98 of file workspace-model.h.
Referenced by clear_data(), flags(), and set_workspace().
|
private |
Definition at line 104 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().