GNU Octave  4.4.1
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 QString &expr, const octave_value &val)
 base_ve_model (const base_ve_model &)=delete
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 37 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 89 of file

◆ ~base_ve_model()

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

◆ base_ve_model() [2/2]

octave::base_ve_model::base_ve_model ( const base_ve_model )

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 154 of file

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

◆ data_rows()

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

◆ display_columns()

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

Definition at line 104 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

Definition at line 102 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

◆ index_ok()

◆ is_editable()

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

Reimplemented in octave::display_only_model.

Definition at line 59 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

Definition at line 96 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  )

◆ maybe_resize_rows()

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

◆ name()

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

◆ operator=()

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

◆ quote_char()

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

◆ requires_sub_editor()

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

◆ 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 148 of file

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 

Definition at line 249 of file

References m_update_pending, and str.

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

◆ subscript_expression()

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

◆ update_pending()

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

Definition at line 255 of file

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

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

◆ m_display_rows

◆ m_name

std::string octave::base_ve_model::m_name

◆ m_update_pending

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

◆ m_valid

bool octave::base_ve_model::m_valid

Definition at line 125 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: