GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
workspace_model Class Reference

#include "workspace-model.h"

Inheritance diagram for workspace_model:
Inheritance graph
[legend]
Collaboration diagram for workspace_model:
Collaboration graph
[legend]

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

Detailed Description

Definition at line 39 of file workspace-model.h.

Constructor & Destructor Documentation

workspace_model::workspace_model ( QObject parent = 0)
workspace_model::~workspace_model ( void  )
inline

Definition at line 48 of file workspace-model.h.

Member Function Documentation

void workspace_model::clear_data ( void  )
private

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().

void workspace_model::clear_workspace ( void  )
slot

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
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.

bool workspace_model::is_top_level ( void  ) const
inline

Definition at line 68 of file workspace-model.h.

References _top_level.

Referenced by workspace_view::contextmenu_requested().

void workspace_model::model_changed ( void  )
signal
void workspace_model::notice_settings ( const QSettings *  settings)
slot
void workspace_model::rename_variable ( const QString &  old_name,
const QString &  new_name 
)
signal

Referenced by setData().

int workspace_model::rowCount ( const QModelIndex &  parent = QModelIndex ()) const

Definition at line 87 of file workspace-model.cc.

References _symbols.

void workspace_model::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 
)
slot
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().

QColor workspace_model::storage_class_color ( int  s_class)
inline

Definition at line 70 of file workspace-model.h.

References _storage_class_colors.

Referenced by workspace_view::notice_settings().

QList< QColor > workspace_model::storage_class_default_colors ( void  )
static

Definition at line 50 of file workspace-model.cc.

Referenced by notice_settings().

QStringList workspace_model::storage_class_names ( void  )
static

Definition at line 69 of file workspace-model.cc.

References names().

Referenced by data().

void workspace_model::update_table ( void  )
private

Definition at line 273 of file workspace-model.cc.

References model_changed().

Referenced by clear_workspace(), and set_workspace().

Member Data Documentation

QStringList workspace_model::_class_names
private

Definition at line 101 of file workspace-model.h.

Referenced by clear_data(), data(), and set_workspace().

QStringList workspace_model::_columnNames
private

Definition at line 106 of file workspace-model.h.

Referenced by columnCount(), headerData(), and workspace_model().

QIntList workspace_model::_complex_flags
private

Definition at line 104 of file workspace-model.h.

Referenced by clear_data(), data(), and set_workspace().

QStringList workspace_model::_dimensions
private

Definition at line 102 of file workspace-model.h.

Referenced by clear_data(), data(), and set_workspace().

QString workspace_model::_scopes
private

Definition at line 99 of file workspace-model.h.

Referenced by clear_data(), data(), and set_workspace().

QList<QColor> workspace_model::_storage_class_colors
private

Definition at line 108 of file workspace-model.h.

Referenced by data(), notice_settings(), storage_class_color(), and workspace_model().

QStringList workspace_model::_symbols
private

Definition at line 100 of file workspace-model.h.

Referenced by clear_data(), data(), rowCount(), set_workspace(), and setData().

bool workspace_model::_top_level
private

Definition at line 98 of file workspace-model.h.

Referenced by clear_data(), flags(), is_top_level(), and set_workspace().

QStringList workspace_model::_values
private

Definition at line 103 of file workspace-model.h.

Referenced by clear_data(), data(), and set_workspace().


The documentation for this class was generated from the following files: