24 #if ! defined (octave_workspace_model_h) 25 #define octave_workspace_model_h 1 27 #include <QAbstractTableModel> 30 #include <QStringList> 58 int rowCount (
const QModelIndex& parent = QModelIndex ())
const;
60 int columnCount (
const QModelIndex& parent = QModelIndex ())
const;
62 Qt::ItemFlags
flags (
const QModelIndex& index)
const;
64 QVariant
headerData (
int section, Qt::Orientation orientation,
65 int role = Qt::DisplayRole)
const;
67 QVariant
data (
const QModelIndex& index,
int role)
const;
69 bool setData (
const QModelIndex& index,
const QVariant&
value,
70 int role = Qt::EditRole);
95 void rename_variable (
const QString& old_name,
const QString& new_name);
QStringList m_class_names
QStringList m_columnNames
symbol_scope scope(void) const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QList< QColor > m_storage_class_colors
workspace_model(QObject *parent=nullptr)
void prompt_variable_editor(void)
QColor storage_class_color(int s_class)
int columnCount(const QModelIndex &parent=QModelIndex()) const
void set_workspace(bool top_level, bool debug, const symbol_scope &scope)
Qt::ItemFlags flags(const QModelIndex &index) const
void rename_variable(const QString &old_name, const QString &new_name)
bool is_top_level(void) const
void clear_workspace(void)
QVariant data(const QModelIndex &index, int role) const
static QList< QColor > storage_class_default_colors(void)
~workspace_model(void)=default
static QStringList storage_class_names(void)
nd group nd example For each display the value
int rowCount(const QModelIndex &parent=QModelIndex()) const
void notice_settings(const QSettings *)