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

#include "dialog.h"

Inheritance diagram for octave::ListDialog:
Collaboration diagram for octave::ListDialog:

Public Slots

void buttonCancel_clicked (void)
 
void buttonOk_clicked (void)
 
void item_double_clicked (const QModelIndex &)
 
void reject (void)
 

Signals

void finish_selection (const QIntList &, int)
 

Public Member Functions

 ListDialog (base_qobject &oct_qobj, const QStringList &list, const QString &mode, int width, int height, const QList< int > &initial, const QString &name, const QStringList &prompt, const QString &ok_string, const QString &cancel_string)
 
 ~ListDialog (void)
 

Private Attributes

QAbstractItemModel * m_model
 
QItemSelectionModel * selector
 

Detailed Description

Definition at line 194 of file dialog.h.

Constructor & Destructor Documentation

◆ ListDialog()

octave::ListDialog::ListDialog ( base_qobject oct_qobj,
const QStringList &  list,
const QString &  mode,
int  width,
int  height,
const QList< int > &  initial,
const QString &  name,
const QStringList &  prompt,
const QString &  ok_string,
const QString &  cancel_string 
)

◆ ~ListDialog()

octave::ListDialog::~ListDialog ( void  )

Definition at line 519 of file dialog.cc.

References m_model.

Member Function Documentation

◆ buttonCancel_clicked

void octave::ListDialog::buttonCancel_clicked ( void  )
slot

Definition at line 540 of file dialog.cc.

References finish_selection().

Referenced by ListDialog(), and reject().

◆ buttonOk_clicked

void octave::ListDialog::buttonOk_clicked ( void  )
slot

Definition at line 524 of file dialog.cc.

References finish_selection(), and selector.

Referenced by ListDialog(), and item_double_clicked().

◆ finish_selection

void octave::ListDialog::finish_selection ( const QIntList ,
int   
)
signal

◆ item_double_clicked

void octave::ListDialog::item_double_clicked ( const QModelIndex &  )
slot

Definition at line 557 of file dialog.cc.

References buttonOk_clicked().

Referenced by ListDialog().

◆ reject

void octave::ListDialog::reject ( void  )
slot

Definition at line 552 of file dialog.cc.

References buttonCancel_clicked().

Member Data Documentation

◆ m_model

QAbstractItemModel* octave::ListDialog::m_model
private

Definition at line 226 of file dialog.h.

Referenced by ListDialog(), and ~ListDialog().

◆ selector

QItemSelectionModel* octave::ListDialog::selector
private

Definition at line 198 of file dialog.h.

Referenced by ListDialog(), and buttonOk_clicked().


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