GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "workspace-model.h"
Public Slots | |
void | clear_workspace (void) |
void | notice_settings (const QSettings *) |
void | set_workspace (bool top_level, const QString &scopes, const QStringList &symbols, const QStringList &class_names, const QStringList &dimensions, const QStringList &values, const QIntList &complex_flags) |
Signals | |
void | model_changed (void) |
void | rename_variable (const QString &old_name, const QString &new_name) |
Public Member Functions | |
workspace_model (QObject *parent=0) | |
~workspace_model (void) | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) 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 |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
QColor | storage_class_color (int s_class) |
Static Public Member Functions | |
static QList< QColor > | storage_class_default_colors (void) |
static QStringList | storage_class_names (void) |
Private Member Functions | |
void | clear_data (void) |
void | update_table (void) |
Private Attributes | |
QStringList | _class_names |
QStringList | _columnNames |
QIntList | _complex_flags |
QStringList | _dimensions |
QString | _scopes |
QList< QColor > | _storage_class_colors |
QStringList | _symbols |
bool | _top_level |
QStringList | _values |
Definition at line 39 of file workspace-model.h.
workspace_model::workspace_model | ( | QObject * | parent = 0 | ) |
Definition at line 35 of file workspace-model.cc.
References _columnNames, _storage_class_colors, and resource_manager::storage_class_chars().
|
inline |
Definition at line 48 of file workspace-model.h.
Definition at line 261 of file workspace-model.cc.
References _class_names, _complex_flags, _dimensions, _scopes, _symbols, _top_level, and _values.
Referenced by clear_workspace().
Definition at line 252 of file workspace-model.cc.
References clear_data(), model_changed(), and update_table().
int workspace_model::columnCount | ( | const QModelIndex & | parent = QModelIndex () | ) | const |
Definition at line 93 of file workspace-model.cc.
References _columnNames.
QVariant workspace_model::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 125 of file workspace-model.cc.
References _class_names, _complex_flags, _dimensions, _scopes, _storage_class_colors, _symbols, _values, resource_manager::storage_class_chars(), and storage_class_names().
Qt::ItemFlags workspace_model::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 99 of file workspace-model.cc.
References _top_level.
QVariant workspace_model::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 115 of file workspace-model.cc.
References _columnNames.
Definition at line 68 of file workspace-model.h.
References _top_level.
Referenced by workspace_view::contextmenu_requested().
Referenced by clear_workspace(), set_workspace(), and update_table().
|
slot |
Definition at line 285 of file workspace-model.cc.
References _storage_class_colors, resource_manager::storage_class_chars(), and storage_class_default_colors().
Referenced by workspace_view::notice_settings().
|
signal |
Referenced by setData().
int workspace_model::rowCount | ( | const QModelIndex & | parent = QModelIndex () | ) | const |
Definition at line 87 of file workspace-model.cc.
References _symbols.
|
slot |
Definition at line 230 of file workspace-model.cc.
References _class_names, _complex_flags, _dimensions, _scopes, _symbols, _top_level, _values, model_changed(), and update_table().
bool workspace_model::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Definition at line 204 of file workspace-model.cc.
References _symbols, rename_variable(), and valid_identifier().
|
inline |
Definition at line 70 of file workspace-model.h.
References _storage_class_colors.
Referenced by workspace_view::notice_settings().
Definition at line 50 of file workspace-model.cc.
Referenced by notice_settings().
|
static |
Definition at line 273 of file workspace-model.cc.
References model_changed().
Referenced by clear_workspace(), and set_workspace().
|
private |
Definition at line 101 of file workspace-model.h.
Referenced by clear_data(), data(), and set_workspace().
|
private |
Definition at line 106 of file workspace-model.h.
Referenced by columnCount(), headerData(), and workspace_model().
|
private |
Definition at line 104 of file workspace-model.h.
Referenced by clear_data(), data(), and set_workspace().
|
private |
Definition at line 102 of file workspace-model.h.
Referenced by clear_data(), data(), and set_workspace().
|
private |
Definition at line 99 of file workspace-model.h.
Referenced by clear_data(), data(), and set_workspace().
|
private |
Definition at line 108 of file workspace-model.h.
Referenced by data(), notice_settings(), storage_class_color(), and workspace_model().
|
private |
Definition at line 100 of file workspace-model.h.
Referenced by clear_data(), data(), rowCount(), set_workspace(), and setData().
|
private |
Definition at line 98 of file workspace-model.h.
Referenced by clear_data(), flags(), is_top_level(), and set_workspace().
|
private |
Definition at line 103 of file workspace-model.h.
Referenced by clear_data(), data(), and set_workspace().