Version: 6.3.1
Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes

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.
QString selectedStudy ()
 Get selected study name.

Static Public Member Functions

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

Private Slots

void updateState ()
 Updates buttons state.

Private Member Functions

 SalomeApp_LoadStudiesDlg (QWidget *, const QStringList &)
 Constructor.

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

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

References myList.

void SalomeApp_LoadStudiesDlg::updateState ( ) [private, slot]

References myButtonOk, and myList.


Field Documentation

QPushButton* SalomeApp_LoadStudiesDlg.myButtonOk [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS