Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SalomeApp_LoadStudiesDlg Class Reference

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

#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
 

Constructor & Destructor Documentation

SalomeApp_LoadStudiesDlg::SalomeApp_LoadStudiesDlg ( QWidget parent,
const QStringList &  studies 
)
private
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 ( )

Member Function Documentation

QString SalomeApp_LoadStudiesDlg::selectedStudy ( )
Returns
selected study name or null string if study is not selected

References myList.

QString SalomeApp_LoadStudiesDlg::selectStudy ( QWidget parent,
const QStringList &  studies 
)
static
Parameters
parentparent widget
studieslist of study names
Returns
select study (or null string if dialog box is rejected)

References selectedStudy().

void SalomeApp_LoadStudiesDlg::updateState ( )
privateslot

References myButtonOk, and myList.

Member Data Documentation

QPushButton* SalomeApp_LoadStudiesDlg::myButtonOk
private
QListWidget* SalomeApp_LoadStudiesDlg::myList
private

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