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

#include "workspace-model.h"

Inheritance diagram for octave::workspace_model:
Collaboration diagram for octave::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 (base_qobject &oct_qobj, 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
 
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
 
base_qobjectm_octave_qobj
 
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 48 of file workspace-model.h.

Constructor & Destructor Documentation

◆ workspace_model()

octave::workspace_model::workspace_model ( base_qobject oct_qobj,
QObject parent = nullptr 
)

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

References m_columnNames, m_storage_class_colors, and ws_colors_count.

◆ ~workspace_model()

octave::workspace_model::~workspace_model ( void  )
default

Member Function Documentation

◆ clear_data()

void octave::workspace_model::clear_data ( void  )
private

◆ clear_workspace

void octave::workspace_model::clear_workspace ( void  )
slot

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

References clear_data(), and update_table().

◆ columnCount()

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

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

References m_columnNames.

◆ data()

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

◆ flags()

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

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

References m_top_level, and retval.

◆ get_symbol_info()

symbol_info_list octave::workspace_model::get_symbol_info ( void  ) const
inline

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

References m_syminfo_list.

Referenced by octave::workspace_view::handle_contextmenu_edit().

◆ headerData()

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

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

References m_columnNames.

◆ is_top_level()

bool octave::workspace_model::is_top_level ( void  ) const
inline

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

References m_top_level.

Referenced by octave::workspace_view::contextmenu_requested().

◆ model_changed

void octave::workspace_model::model_changed ( void  )
signal

Referenced by update_table().

◆ notice_settings

void octave::workspace_model::notice_settings ( const gui_settings settings)
slot

◆ prompt_variable_editor

void octave::workspace_model::prompt_variable_editor ( void  )
signal

◆ rowCount()

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

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

References m_symbols.

◆ set_workspace

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

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

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

◆ storage_class_color()

QColor octave::workspace_model::storage_class_color ( int  s_class)
inline

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

References m_storage_class_colors.

Referenced by octave::workspace_view::notice_settings().

◆ update_table()

Member Data Documentation

◆ m_class_names

QStringList octave::workspace_model::m_class_names
private

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

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

◆ m_columnNames

QStringList octave::workspace_model::m_columnNames
private

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

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

◆ m_complex_flags

QIntList octave::workspace_model::m_complex_flags
private

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

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

◆ m_dimensions

QStringList octave::workspace_model::m_dimensions
private

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

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

◆ m_enable_colors

bool octave::workspace_model::m_enable_colors
private

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

Referenced by data(), and notice_settings().

◆ m_octave_qobj

base_qobject& octave::workspace_model::m_octave_qobj
private

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

◆ m_scopes

QString octave::workspace_model::m_scopes
private

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

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

◆ m_storage_class_colors

QList<QColor> octave::workspace_model::m_storage_class_colors
private

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

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

◆ m_symbols

QStringList octave::workspace_model::m_symbols
private

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

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

◆ m_syminfo_list

symbol_info_list octave::workspace_model::m_syminfo_list
private

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

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

◆ m_top_level

bool octave::workspace_model::m_top_level
private

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

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

◆ m_values

QStringList octave::workspace_model::m_values
private

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

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


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