24 #if !defined (octave_workspace_model_h)
25 #define octave_workspace_model_h 1
27 #include <QAbstractTableModel>
30 #include <QStringList>
54 QVariant
data (
const QModelIndex& index,
int role)
const;
56 bool setData (
const QModelIndex& index,
const QVariant& value,
57 int role = Qt::EditRole);
59 Qt::ItemFlags
flags (
const QModelIndex& index)
const;
61 QVariant
headerData (
int section, Qt::Orientation orientation,
62 int role = Qt::DisplayRole)
const;
64 int rowCount (
const QModelIndex& parent = QModelIndex ())
const;
66 int columnCount (
const QModelIndex& parent = QModelIndex ())
const;
77 const QString& scopes,
78 const QStringList& symbols,
79 const QStringList& class_names,
80 const QStringList& dimensions,
81 const QStringList& values,
92 void rename_variable (
const QString& old_name,
const QString& new_name);
static QStringList storage_class_names(void)
QList< QColor > _storage_class_colors
void rename_variable(const QString &old_name, const QString &new_name)
QColor storage_class_color(int s_class)
Qt::ItemFlags flags(const QModelIndex &index) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
static QList< QColor > storage_class_default_colors(void)
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
void notice_settings(const QSettings *)
void set_workspace(bool top_level, bool debug, const QString &scopes, const QStringList &symbols, const QStringList &class_names, const QStringList &dimensions, const QStringList &values, const QIntList &complex_flags)
workspace_model(QObject *parent=0)
QVariant data(const QModelIndex &index, int role) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
void clear_workspace(void)
bool is_top_level(void) const