26 #if ! defined (octave_workspace_model_h)
27 #define octave_workspace_model_h 1
29 #include <QAbstractTableModel>
34 #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;
Base class for Octave interfaces that use Qt.
QStringList m_columnNames
bool is_top_level(void) const
QList< QColor > m_storage_class_colors
int rowCount(const QModelIndex &parent=QModelIndex()) const
QColor storage_class_color(int s_class)
Qt::ItemFlags flags(const QModelIndex &index) const
void prompt_variable_editor(void)
~workspace_model(void)=default
QStringList m_class_names
void clear_workspace(void)
void notice_settings(const gui_settings *)
void set_workspace(bool top_level, bool debug, const symbol_info_list &syminfo)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
workspace_model(base_qobject &oct_qobj, QObject *parent=nullptr)
QVariant data(const QModelIndex &index, int role) const
symbol_info_list m_syminfo_list
base_qobject & m_octave_qobj
symbol_info_list get_symbol_info(void) const