GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
workspace_model Class Reference

#include "workspace-model.h"

Inheritance diagram for workspace_model:
Collaboration diagram for workspace_model:

Public Slots

void clear_workspace (void)
 
void notice_settings (const gui_settings *)
 
void set_workspace (bool top_level, bool debug, const symbol_info_list &syminfo)
 

Signals

void model_changed (void)
 
void prompt_variable_editor (void)
 

Public Member Functions

 workspace_model (QObject *parent=nullptr)
 
 ~workspace_model (void)=default
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
symbol_info_list get_symbol_info (void) const
 
QStringList get_symbol_names (void) const
 
QStringList get_symbol_values (void) 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
 
QColor storage_class_color (int s_class)
 

Private Member Functions

void clear_data (void)
 
void update_table (void)
 

Private Attributes

QStringList m_class_names
 
QStringList m_columnNames
 
QIntList m_complex_flags
 
QStringList m_dimensions
 
bool m_enable_colors
 
QString m_scopes
 
QList< QColor > m_storage_class_colors
 
QStringList m_symbols
 
symbol_info_list m_syminfo_list
 
bool m_top_level
 
QStringList m_values
 

Detailed Description

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

Constructor & Destructor Documentation

◆ workspace_model()

workspace_model::workspace_model ( QObject parent = nullptr)

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

References ws_colors_count.

◆ ~workspace_model()

workspace_model::~workspace_model ( void  )
default

Member Function Documentation

◆ clear_data()

void workspace_model::clear_data ( void  )
private

◆ clear_workspace

void workspace_model::clear_workspace ( void  )
slot

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

References clear_data(), and update_table().

Referenced by base_qobject::workspace_widget().

◆ columnCount()

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

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

References m_columnNames.

◆ data()

QVariant workspace_model::data ( const QModelIndex &  index,
int  role 
) const

◆ flags()

Qt::ItemFlags workspace_model::flags ( const QModelIndex &  index) const

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

References m_top_level.

◆ get_symbol_info()

symbol_info_list workspace_model::get_symbol_info ( void  ) const
inline

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

◆ get_symbol_names()

QStringList workspace_model::get_symbol_names ( void  ) const
inline

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

Referenced by octave_qscintilla::event().

◆ get_symbol_values()

QStringList workspace_model::get_symbol_values ( void  ) const
inline

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

Referenced by octave_qscintilla::event().

◆ headerData()

QVariant workspace_model::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

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

References data(), m_columnNames, and Utils::toStdString().

◆ is_top_level()

bool workspace_model::is_top_level ( void  ) const
inline

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

Referenced by workspace_view::contextmenu_requested().

◆ model_changed

void workspace_model::model_changed ( void  )
signal

◆ notice_settings

void workspace_model::notice_settings ( const gui_settings settings)
slot

◆ prompt_variable_editor

void workspace_model::prompt_variable_editor ( void  )
signal

◆ rowCount()

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

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

References m_symbols.

◆ set_workspace

void workspace_model::set_workspace ( bool  top_level,
bool  debug,
const symbol_info_list syminfo 
)
slot

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

References clear_data(), m_syminfo_list, m_top_level, and update_table().

Referenced by base_qobject::workspace_widget().

◆ storage_class_color()

QColor workspace_model::storage_class_color ( int  s_class)
inline

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

Referenced by workspace_view::notice_settings().

◆ update_table()

Member Data Documentation

◆ m_class_names

QStringList workspace_model::m_class_names
private

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

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

◆ m_columnNames

QStringList workspace_model::m_columnNames
private

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

Referenced by columnCount(), and headerData().

◆ m_complex_flags

QIntList workspace_model::m_complex_flags
private

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

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

◆ m_dimensions

QStringList workspace_model::m_dimensions
private

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

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

◆ m_enable_colors

bool workspace_model::m_enable_colors
private

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

Referenced by data(), and notice_settings().

◆ m_scopes

QString workspace_model::m_scopes
private

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

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

◆ m_storage_class_colors

QList<QColor> workspace_model::m_storage_class_colors
private

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

Referenced by data(), and notice_settings().

◆ m_symbols

QStringList workspace_model::m_symbols
private

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

Referenced by clear_data(), data(), rowCount(), and update_table().

◆ m_syminfo_list

symbol_info_list workspace_model::m_syminfo_list
private

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

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

◆ m_top_level

bool workspace_model::m_top_level
private

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

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

◆ m_values

QStringList workspace_model::m_values
private

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

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


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