Version: 9.12.0
SalomeApp_LoadStudiesDlg Class Reference

Dialog box which allows selecting study to be loaded from the list. More...

#include <SalomeApp_LoadStudiesDlg.h>

Inheritance diagram for SalomeApp_LoadStudiesDlg:
Inheritance graph

Public Member Functions

 ~SalomeApp_LoadStudiesDlg ()
 Destructor. More...
 
QString selectedStudy ()
 Get selected study name. More...
 

Static Public Member Functions

static QString selectStudy (QWidget *, const QStringList &)
 Executes dialog box to select study from the list and returns the study selected. More...
 

Private Slots

void updateState ()
 Updates buttons state. More...
 

Private Member Functions

 SalomeApp_LoadStudiesDlg (QWidget *, const QStringList &)
 Constructor. More...
 

Private Attributes

QListWidgetmyList
 
QPushButton * myButtonOk
 

Detailed Description

Dialog box which allows selecting study to be loaded from the list.

Constructor & Destructor Documentation

◆ SalomeApp_LoadStudiesDlg()

SalomeApp_LoadStudiesDlg::SalomeApp_LoadStudiesDlg ( QWidget parent,
const QStringList &  studies 
)
private

Constructor.

Parameters
parenta parent widget
studieslist of study names

References MARGIN_SIZE, MIN_LISTBOX_HEIGHT, MIN_LISTBOX_WIDTH, myButtonOk, myList, SPACING_SIZE, and updateState().

◆ ~SalomeApp_LoadStudiesDlg()

SalomeApp_LoadStudiesDlg::~SalomeApp_LoadStudiesDlg ( )

Destructor.

Member Function Documentation

◆ selectedStudy()

QString SalomeApp_LoadStudiesDlg::selectedStudy ( )

Get selected study name.

Returns
selected study name or null string if study is not selected

References myList.

◆ selectStudy()

QString SalomeApp_LoadStudiesDlg::selectStudy ( QWidget parent,
const QStringList &  studies 
)
static

Executes dialog box to select study from the list and returns the study selected.

Parameters
parentparent widget
studieslist of study names
Returns
select study (or null string if dialog box is rejected)

References selectedStudy().

◆ updateState

void SalomeApp_LoadStudiesDlg::updateState ( )
privateslot

Updates buttons state.

References myButtonOk, and myList.

Member Data Documentation

◆ myButtonOk

QPushButton* SalomeApp_LoadStudiesDlg::myButtonOk
private

◆ myList

QListWidget* SalomeApp_LoadStudiesDlg::myList
private

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