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

#include "variable-editor-model.h"

Inheritance diagram for base_ve_model:
Collaboration diagram for 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]

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

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

◆ ~base_ve_model()

virtual base_ve_model::~base_ve_model ( void  )
virtualdefault

◆ base_ve_model() [2/2]

base_ve_model::base_ve_model ( const base_ve_model )
delete

Member Function Documentation

◆ clear_update_pending()

void base_ve_model::clear_update_pending ( void  )

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

References m_update_pending.

Referenced by variable_editor_model::clear_update_pending().

◆ column_width()

◆ columnCount()

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

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

References m_display_cols, and m_valid.

Referenced by variable_editor_model::columnCount().

◆ data()

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

◆ data_columns()

octave_idx_type base_ve_model::data_columns ( void  ) const
inline

◆ data_rows()

octave_idx_type base_ve_model::data_rows ( void  ) const
inline

◆ display_columns()

int base_ve_model::display_columns ( void  ) const
inline

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

References m_display_cols.

Referenced by variable_editor_model::display_columns().

◆ display_rows()

int base_ve_model::display_rows ( void  ) const
inline

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

References m_display_rows.

Referenced by variable_editor_model::display_rows().

◆ edit_display()

QVariant base_ve_model::edit_display ( const QModelIndex &  idx,
int  role 
) const
virtual

◆ edit_display_sub()

◆ header_data()

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

Reimplemented in vector_struct_model, and scalar_struct_model.

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

Referenced by variable_editor_model::headerData().

◆ index_ok()

◆ is_editable()

virtual bool base_ve_model::is_editable ( void  ) const
inlinevirtual

Reimplemented in display_only_model.

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

Referenced by variable_editor_model::is_editable().

◆ is_valid()

bool base_ve_model::is_valid ( void  ) const
inline

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

References m_valid.

Referenced by variable_editor_model::is_valid().

◆ make_description_text()

◆ maybe_resize_columns()

virtual void base_ve_model::maybe_resize_columns ( int  )
inlinevirtual

Reimplemented in struct_model, cell_model, and numeric_model.

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

Referenced by variable_editor_model::maybe_resize_columns().

◆ maybe_resize_rows()

virtual void base_ve_model::maybe_resize_rows ( int  )
inlinevirtual

◆ name()

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

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

References m_name.

Referenced by variable_editor_model::double_click(), and variable_editor_model::name().

◆ operator=()

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

◆ quote_char()

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

◆ requires_sub_editor()

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

◆ reset()

void base_ve_model::reset ( const octave_value val)

◆ rowCount()

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

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

References m_display_rows, and m_valid.

Referenced by variable_editor_model::rowCount().

◆ set_update_pending()

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

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

References m_update_pending.

Referenced by variable_editor_model::set_update_pending().

◆ subscript_expression()

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

◆ update_pending()

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

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

References m_update_pending.

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

◆ update_pending_data()

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

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

References m_update_pending.

Referenced by data(), and variable_editor_model::update_pending_data().

◆ value_at()

octave_value 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 base_ve_model::m_display_fmt
protected

◆ m_display_rows

◆ m_name

std::string base_ve_model::m_name
protected

◆ m_update_pending

QMap<QModelIndex, QString> base_ve_model::m_update_pending
protected

◆ m_valid

bool 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: