#include <LightApp_NameDlg.h>
Public Member Functions | |
LightApp_NameDlg (QWidget *parent=0) | |
~LightApp_NameDlg () | |
void | setName (const QString &name) |
QString | name () |
Static Public Member Functions | |
static QString | getName (QWidget *parent=0, const QString &oldName=QString()) |
Protected Slots | |
void | accept () |
Private Attributes | |
QPushButton * | myButtonOk |
QPushButton * | myButtonCancel |
QLineEdit * | myLineEdit |
Common <Rename> dialog box class
LightApp_NameDlg::LightApp_NameDlg | ( | QWidget * | parent = 0 | ) |
Constructor
References accept(), SUIT_Tools::centerWidget(), myButtonCancel, myButtonOk, and myLineEdit.
LightApp_NameDlg::~LightApp_NameDlg | ( | ) |
Destructor
|
protectedslot |
Accepts if name isn't empty
References name().
|
static |
Creates modal <Rename> dialog and returns name entered [ static ]
References LightApp_NameDlg(), name(), and setName().
QString LightApp_NameDlg::name | ( | ) |
Returns name entered by user
References myLineEdit.
void LightApp_NameDlg::setName | ( | const QString & | name | ) |
Sets name
References myLineEdit.
|
private |
|
private |
|
private |