#include <modeeditdlg.h>
Public Slots | |
void | accept () |
Public Member Functions | |
ModeEditDlg (QString &_modeName, int &_zoom, QWidget *parent, const QString &title) | |
~ModeEditDlg () | |
Protected Attributes | |
UI_ModeEditWidget * | uiWidget |
QString & | modeName |
int & | zoom |
Definition at line 15 of file modeeditdlg.h.
|
Definition at line 22 of file modeeditdlg.cpp. References accept(), modeName, uiWidget, and zoom. 00024 : QDialog( parent, NULL , TRUE /* modal */ ), modeName( _modeName ), 00025 zoom ( _zoom ) 00026 { 00027 uiWidget = new UI_ModeEditWidget( this ); 00028 setCaption( title ); 00029 QBoxLayout * l = new QVBoxLayout( this ); 00030 l->addWidget( uiWidget ); 00031 connect( uiWidget->buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00032 connect( uiWidget->buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00033 00034 int min = 1; 00035 int max = 1000; 00036 00037 uiWidget->spinBoxZoom->setRange( min, max ); 00038 00039 uiWidget->lineEditName->setText( modeName ); 00040 uiWidget->spinBoxZoom->setValue( zoom ); 00041 }
|
|
Definition at line 58 of file modeeditdlg.cpp.
|
|
Definition at line 43 of file modeeditdlg.cpp. References modeName, uiWidget, and zoom. Referenced by ModeEditDlg(). 00044 { 00045 QString nameGiven = uiWidget->lineEditName->text(); 00046 if ( nameGiven.isEmpty() ) 00047 { return; 00048 } 00049 else 00050 { 00051 zoom = uiWidget->spinBoxZoom->value(); 00052 modeName = nameGiven; 00053 QDialog::accept(); 00054 } 00055 }
|
|
Definition at line 29 of file modeeditdlg.h. Referenced by accept(), and ModeEditDlg(). |
|
Definition at line 28 of file modeeditdlg.h. Referenced by accept(), and ModeEditDlg(). |
|
Definition at line 30 of file modeeditdlg.h. Referenced by accept(), and ModeEditDlg(). |