GNU Octave  4.4.1
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 (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 200 of file dialog.h.

Constructor & Destructor Documentation

◆ ListDialog()

octave::ListDialog::ListDialog ( 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 
)
explicit

◆ ~ListDialog()

octave::ListDialog::~ListDialog ( void  )

Definition at line 316 of file dialog.cc.

References m_model.

Member Function Documentation

◆ buttonCancel_clicked

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

Definition at line 336 of file dialog.cc.

References done, empty, and finish_selection().

Referenced by ListDialog(), and reject().

◆ buttonOk_clicked

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

Definition at line 321 of file dialog.cc.

References done, finish_selection(), i, and selector.

Referenced by item_double_clicked(), and ListDialog().

◆ 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 352 of file dialog.cc.

References buttonOk_clicked().

Referenced by ListDialog().

◆ reject

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

Definition at line 347 of file dialog.cc.

References buttonCancel_clicked().

Member Data Documentation

◆ m_model

QAbstractItemModel* octave::ListDialog::m_model
private

Definition at line 232 of file dialog.h.

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

◆ selector

QItemSelectionModel* octave::ListDialog::selector
private

Definition at line 204 of file dialog.h.

Referenced by buttonOk_clicked(), and ListDialog().


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