#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 (base_qobject &oct_qobj, 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 |
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 |
base_qobject & | m_octave_qobj |
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 48 of file workspace-model.h.
octave::workspace_model::workspace_model | ( | base_qobject & | oct_qobj, |
QObject * | parent = nullptr |
||
) |
Definition at line 44 of file workspace-model.cc.
References m_columnNames, m_storage_class_colors, and ws_colors_count.
|
default |
|
private |
Definition at line 218 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 192 of file workspace-model.cc.
References clear_data(), and update_table().
int octave::workspace_model::columnCount | ( | const QModelIndex & | parent = QModelIndex () | ) | const |
Definition at line 69 of file workspace-model.cc.
References m_columnNames.
QVariant octave::workspace_model::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 101 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, retval, ws_class_chars(), ws_color_names(), and ws_colors_count.
Qt::ItemFlags octave::workspace_model::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 75 of file workspace-model.cc.
References m_top_level, and retval.
|
inline |
Definition at line 76 of file workspace-model.h.
References m_syminfo_list.
Referenced by octave::workspace_view::handle_contextmenu_edit().
QVariant octave::workspace_model::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 91 of file workspace-model.cc.
References m_columnNames.
|
inline |
Definition at line 69 of file workspace-model.h.
References m_top_level.
Referenced by octave::workspace_view::contextmenu_requested().
|
signal |
Referenced by update_table().
|
slot |
Definition at line 199 of file workspace-model.cc.
References m_enable_colors, m_storage_class_colors, ws_colors, ws_colors_count, and ws_enable_colors().
Referenced by octave::workspace_view::notice_settings().
|
signal |
int octave::workspace_model::rowCount | ( | const QModelIndex & | parent = QModelIndex () | ) | const |
Definition at line 63 of file workspace-model.cc.
References m_symbols.
|
slot |
Definition at line 180 of file workspace-model.cc.
References clear_data(), m_syminfo_list, m_top_level, and update_table().
|
inline |
Definition at line 71 of file workspace-model.h.
References m_storage_class_colors.
Referenced by octave::workspace_view::notice_settings().
|
private |
Definition at line 231 of file workspace-model.cc.
References dim_vector::alloc(), octave_value::class_name(), QtHandles::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 >::numel(), octave_value::short_disp(), octave_value::size(), and dim_vector::str().
Referenced by clear_workspace(), and set_workspace().
|
private |
Definition at line 103 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().
|
private |
Definition at line 108 of file workspace-model.h.
Referenced by workspace_model(), columnCount(), and headerData().
|
private |
Definition at line 106 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().
|
private |
Definition at line 104 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().
|
private |
Definition at line 111 of file workspace-model.h.
Referenced by data(), and notice_settings().
|
private |
Definition at line 97 of file workspace-model.h.
|
private |
Definition at line 101 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 workspace_model(), data(), notice_settings(), and storage_class_color().
|
private |
Definition at line 102 of file workspace-model.h.
Referenced by clear_data(), data(), rowCount(), and update_table().
|
private |
Definition at line 100 of file workspace-model.h.
Referenced by clear_data(), get_symbol_info(), set_workspace(), and update_table().
|
private |
Definition at line 99 of file workspace-model.h.
Referenced by clear_data(), flags(), is_top_level(), and set_workspace().
|
private |
Definition at line 105 of file workspace-model.h.
Referenced by clear_data(), data(), and update_table().