GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
vector_struct_model Class Reference
Inheritance diagram for vector_struct_model:
Collaboration diagram for vector_struct_model:

Public Member Functions

 vector_struct_model (const QString &expr, const octave_value &val)
 
 vector_struct_model (const vector_struct_model &)=delete
 
 ~vector_struct_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
 
QVariant edit_display (const QModelIndex &idx, int role) const
 
QString edit_display_sub (const octave_value &elt, int role) const
 
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)
 
void maybe_resize_rows (int rows)
 
std::string name (void) const
 
vector_struct_modeloperator= (const vector_struct_model &)=delete
 
char quote_char (const QModelIndex &idx) const
 
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)
 
QString subscript_expression (const QModelIndex &idx) const
 
bool update_pending (const QModelIndex &idx) const
 
QString update_pending_data (const QModelIndex &idx) const
 
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 691 of file variable-editor-model.cc.

Constructor & Destructor Documentation

◆ vector_struct_model() [1/2]

vector_struct_model::vector_struct_model ( const QString &  expr,
const octave_value val 
)
inline

◆ ~vector_struct_model()

vector_struct_model::~vector_struct_model ( void  )
default

◆ vector_struct_model() [2/2]

vector_struct_model::vector_struct_model ( const vector_struct_model )
delete

Member Function Documentation

◆ clear_update_pending()

void base_ve_model::clear_update_pending ( void  )
inherited

◆ column_width()

◆ columnCount()

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

◆ data()

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

◆ data_columns()

octave_idx_type base_ve_model::data_columns ( void  ) const
inlineinherited

◆ data_rows()

octave_idx_type base_ve_model::data_rows ( void  ) const
inlineinherited

◆ display_columns()

int base_ve_model::display_columns ( void  ) const
inlineinherited

◆ display_rows()

int base_ve_model::display_rows ( void  ) const
inlineinherited

◆ edit_display()

QVariant vector_struct_model::edit_display ( const QModelIndex &  idx,
int  role 
) const
inlinevirtual

◆ edit_display_sub()

◆ header_data()

QVariant vector_struct_model::header_data ( int  section,
Qt::Orientation  orientation,
int  role 
) const
inlinevirtual

◆ index_ok()

◆ is_editable()

virtual bool base_ve_model::is_editable ( void  ) const
inlinevirtualinherited

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
inlineinherited

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

References base_ve_model::m_valid.

Referenced by variable_editor_model::is_valid().

◆ make_description_text()

◆ maybe_resize_columns()

virtual void base_ve_model::maybe_resize_columns ( int  )
inlinevirtualinherited

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()

void vector_struct_model::maybe_resize_rows ( int  rows)
inlinevirtual

Reimplemented from base_ve_model.

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

References base_ve_model::m_display_rows.

Referenced by vector_struct_model().

◆ name()

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

◆ operator=()

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

◆ quote_char()

char vector_struct_model::quote_char ( const QModelIndex &  idx) const
inlinevirtual

Reimplemented from base_ve_model.

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

References get_quote_char(), octave_value::is_string(), and value_at().

◆ requires_sub_editor()

bool vector_struct_model::requires_sub_editor ( const QModelIndex &  idx) const
inlinevirtual

◆ reset()

void base_ve_model::reset ( const octave_value val)
inherited

◆ rowCount()

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

◆ set_update_pending()

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

◆ subscript_expression()

QString vector_struct_model::subscript_expression ( const QModelIndex &  idx) const
inlinevirtual

Reimplemented from base_ve_model.

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

References Utils::fromStdString(), m, base_ve_model::m_value, and octave_value::map_value().

◆ update_pending()

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

◆ update_pending_data()

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

◆ value_at()

octave_value vector_struct_model::value_at ( const QModelIndex &  idx) const
inlinevirtual

Reimplemented from base_ve_model.

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

References base_ve_model::index_ok(), m, base_ve_model::m_value, octave_value::map_value(), and octave_value().

Referenced by quote_char().

Member Data Documentation

◆ m_data_cols

◆ m_data_rows

◆ m_display_cols

◆ m_display_fmt

◆ m_display_rows

◆ m_name

std::string base_ve_model::m_name
protectedinherited

◆ m_update_pending

QMap<QModelIndex, QString> base_ve_model::m_update_pending
protectedinherited

◆ m_valid

bool base_ve_model::m_valid
protectedinherited

◆ m_value


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