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

#include "dialog.h"

Inheritance diagram for ListDialog:
Collaboration diagram for 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)=default
 

Private Attributes

QAbstractItemModel * m_model
 
QItemSelectionModel * selector
 

Detailed Description

Definition at line 196 of file dialog.h.

Constructor & Destructor Documentation

◆ ListDialog()

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

ListDialog::~ListDialog ( void  )
default

Member Function Documentation

◆ buttonCancel_clicked

void ListDialog::buttonCancel_clicked ( void  )
slot

Definition at line 505 of file dialog.cc.

References finish_selection().

Referenced by ListDialog(), and reject().

◆ buttonOk_clicked

void ListDialog::buttonOk_clicked ( void  )
slot

Definition at line 489 of file dialog.cc.

References finish_selection(), and selector.

Referenced by ListDialog(), and item_double_clicked().

◆ finish_selection

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

◆ item_double_clicked

void ListDialog::item_double_clicked ( const QModelIndex &  )
slot

Definition at line 522 of file dialog.cc.

References buttonOk_clicked().

Referenced by ListDialog().

◆ reject

void ListDialog::reject ( void  )
slot

Definition at line 517 of file dialog.cc.

References buttonCancel_clicked().

Member Data Documentation

◆ m_model

QAbstractItemModel* ListDialog::m_model
private

Definition at line 228 of file dialog.h.

Referenced by ListDialog().

◆ selector

QItemSelectionModel* ListDialog::selector
private

Definition at line 200 of file dialog.h.

Referenced by ListDialog(), and buttonOk_clicked().


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