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

Public Member Functions

 struct_model (const QString &expr, const octave_value &val)
 
 struct_model (const struct_model &)=delete
 
 ~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) 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
 
void maybe_resize_columns (int cols)
 
void maybe_resize_rows (int rows)
 
std::string name (void) const
 
struct_modeloperator= (const 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 827 of file variable-editor-model.cc.

Constructor & Destructor Documentation

◆ struct_model() [1/2]

octave::struct_model::struct_model ( const QString &  expr,
const octave_value val 
)
inline

◆ ~struct_model()

octave::struct_model::~struct_model ( void  )
default

◆ struct_model() [2/2]

octave::struct_model::struct_model ( const struct_model )
delete

Member Function Documentation

◆ clear_update_pending()

void octave::base_ve_model::clear_update_pending ( void  )
inherited

◆ column_width()

◆ columnCount()

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

◆ data()

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

◆ data_columns()

◆ data_rows()

◆ display_columns()

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

◆ display_rows()

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

◆ edit_display()

QVariant octave::struct_model::edit_display ( const QModelIndex &  idx,
int   
) const
inlinevirtual

◆ edit_display_sub()

◆ header_data()

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

◆ index_ok()

◆ is_editable()

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

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
inlineinherited

◆ make_description_text()

◆ maybe_resize_columns()

void octave::struct_model::maybe_resize_columns ( int  cols)
inlinevirtual

Reimplemented from octave::base_ve_model.

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

References octave::base_ve_model::m_display_cols.

Referenced by struct_model().

◆ maybe_resize_rows()

void octave::struct_model::maybe_resize_rows ( int  rows)
inlinevirtual

Reimplemented from octave::base_ve_model.

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

References octave::base_ve_model::m_display_rows.

Referenced by struct_model().

◆ name()

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

◆ operator=()

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

◆ quote_char()

char octave::struct_model::quote_char ( const QModelIndex &  idx) const
inlinevirtual

Reimplemented from octave::base_ve_model.

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

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

◆ requires_sub_editor()

bool octave::struct_model::requires_sub_editor ( const QModelIndex &  idx) const
inlinevirtual

◆ reset()

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

◆ rowCount()

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

◆ set_update_pending()

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

◆ subscript_expression()

QString octave::struct_model::subscript_expression ( const QModelIndex &  idx) const
inlinevirtual

Reimplemented from octave::base_ve_model.

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

References octave::base_ve_model::index_ok().

◆ update_pending()

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

◆ update_pending_data()

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

◆ value_at()

octave_value octave::struct_model::value_at ( const QModelIndex &  idx) const
inlinevirtual

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
protectedinherited

◆ m_display_rows

◆ m_name

std::string octave::base_ve_model::m_name
protectedinherited

◆ m_update_pending

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

◆ m_valid

bool octave::base_ve_model::m_valid
protectedinherited

◆ m_value


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