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

#include "variable-editor-model.h"

Inheritance diagram for octave::base_ve_model:
Collaboration diagram for octave::base_ve_model:

Public Member Functions

 base_ve_model (const base_ve_model &)=delete
 
 base_ve_model (const QString &expr, const octave_value &val)
 
virtual ~base_ve_model (void)=default
 
void clear_update_pending (void)
 
int column_width (void) const
 
int columnCount (const QModelIndex &=QModelIndex()) const
 
QVariant data (const QModelIndex &idx, int role=Qt::DisplayRole) const
 
octave_idx_type data_columns (void) const
 
octave_idx_type data_rows (void) const
 
int display_columns (void) const
 
int display_rows (void) const
 
virtual QVariant edit_display (const QModelIndex &idx, int role) const
 
QString edit_display_sub (const octave_value &elt, int role) const
 
virtual QVariant header_data (int section, Qt::Orientation orientation, int role) const
 
bool index_ok (const QModelIndex &idx, int &row, int &col) const
 
virtual bool is_editable (void) const
 
bool is_valid (void) const
 
virtual QString make_description_text (void) const
 
virtual void maybe_resize_columns (int)
 
virtual void maybe_resize_rows (int)
 
std::string name (void) const
 
base_ve_modeloperator= (const base_ve_model &)=delete
 
virtual char quote_char (const QModelIndex &idx) const
 
virtual bool requires_sub_editor (const QModelIndex &idx) const
 
void reset (const octave_value &val)
 
int rowCount (const QModelIndex &=QModelIndex()) const
 
void set_update_pending (const QModelIndex &idx, const QString &str)
 
virtual QString subscript_expression (const QModelIndex &idx) const
 
bool update_pending (const QModelIndex &idx) const
 
QString update_pending_data (const QModelIndex &idx) const
 
virtual octave_value value_at (const QModelIndex &idx) const
 

Protected Attributes

octave_idx_type m_data_cols
 
octave_idx_type m_data_rows
 
int m_display_cols
 
float_display_format m_display_fmt
 
int m_display_rows
 
std::string m_name
 
QMap< QModelIndex, QString > m_update_pending
 
bool m_valid
 
octave_value m_value
 

Detailed Description

Definition at line 42 of file variable-editor-model.h.

Constructor & Destructor Documentation

◆ base_ve_model() [1/2]

octave::base_ve_model::base_ve_model ( const QString &  expr,
const octave_value val 
)

Definition at line 93 of file variable-editor-model.cc.

◆ ~base_ve_model()

virtual octave::base_ve_model::~base_ve_model ( void  )
virtualdefault

◆ base_ve_model() [2/2]

octave::base_ve_model::base_ve_model ( const base_ve_model )
delete

Member Function Documentation

◆ clear_update_pending()

void octave::base_ve_model::clear_update_pending ( void  )

◆ column_width()

◆ columnCount()

int octave::base_ve_model::columnCount ( const QModelIndex &  = QModelIndex ()) const

Definition at line 158 of file variable-editor-model.cc.

References m_display_cols, and m_valid.

Referenced by octave::variable_editor_model::columnCount().

◆ data()

QVariant octave::base_ve_model::data ( const QModelIndex &  idx,
int  role = Qt::DisplayRole 
) const

◆ data_columns()

octave_idx_type octave::base_ve_model::data_columns ( void  ) const
inline

◆ data_rows()

octave_idx_type octave::base_ve_model::data_rows ( void  ) const
inline

◆ display_columns()

int octave::base_ve_model::display_columns ( void  ) const
inline

Definition at line 109 of file variable-editor-model.h.

References m_display_cols.

Referenced by octave::variable_editor_model::display_columns().

◆ display_rows()

int octave::base_ve_model::display_rows ( void  ) const
inline

Definition at line 107 of file variable-editor-model.h.

References m_display_rows.

Referenced by octave::variable_editor_model::display_rows().

◆ edit_display()

◆ edit_display_sub()

◆ header_data()

QVariant octave::base_ve_model::header_data ( int  section,
Qt::Orientation  orientation,
int  role 
) const
virtual

◆ index_ok()

◆ is_editable()

virtual bool octave::base_ve_model::is_editable ( void  ) const
inlinevirtual

Reimplemented in octave::display_only_model.

Definition at line 64 of file variable-editor-model.h.

Referenced by octave::variable_editor_model::is_editable().

◆ is_valid()

bool octave::base_ve_model::is_valid ( void  ) const
inline

Definition at line 101 of file variable-editor-model.h.

References m_valid.

Referenced by octave::variable_editor_model::is_valid().

◆ make_description_text()

◆ maybe_resize_columns()

virtual void octave::base_ve_model::maybe_resize_columns ( int  )
inlinevirtual

◆ maybe_resize_rows()

virtual void octave::base_ve_model::maybe_resize_rows ( int  )
inlinevirtual

◆ name()

std::string octave::base_ve_model::name ( void  ) const

◆ operator=()

base_ve_model& octave::base_ve_model::operator= ( const base_ve_model )
delete

◆ quote_char()

char octave::base_ve_model::quote_char ( const QModelIndex &  idx) const
virtual

◆ requires_sub_editor()

bool octave::base_ve_model::requires_sub_editor ( const QModelIndex &  idx) const
virtual

◆ reset()

void octave::base_ve_model::reset ( const octave_value val)

◆ rowCount()

int octave::base_ve_model::rowCount ( const QModelIndex &  = QModelIndex ()) const

Definition at line 152 of file variable-editor-model.cc.

References m_display_rows, and m_valid.

Referenced by octave::variable_editor_model::rowCount().

◆ set_update_pending()

void octave::base_ve_model::set_update_pending ( const QModelIndex &  idx,
const QString &  str 
)

◆ subscript_expression()

QString octave::base_ve_model::subscript_expression ( const QModelIndex &  idx) const
virtual

◆ update_pending()

bool octave::base_ve_model::update_pending ( const QModelIndex &  idx) const

Definition at line 247 of file variable-editor-model.cc.

References m_update_pending.

Referenced by data(), and octave::variable_editor_model::update_pending().

◆ update_pending_data()

QString octave::base_ve_model::update_pending_data ( const QModelIndex &  idx) const

◆ value_at()

octave_value octave::base_ve_model::value_at ( const QModelIndex &  idx) const
virtual

Member Data Documentation

◆ m_data_cols

◆ m_data_rows

◆ m_display_cols

◆ m_display_fmt

float_display_format octave::base_ve_model::m_display_fmt
protected

◆ m_display_rows

◆ m_name

std::string octave::base_ve_model::m_name
protected

◆ m_update_pending

QMap<QModelIndex, QString> octave::base_ve_model::m_update_pending
protected

◆ m_valid

bool octave::base_ve_model::m_valid
protected

Definition at line 130 of file variable-editor-model.h.

Referenced by columnCount(), data(), is_valid(), and rowCount().

◆ m_value


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