#include <layereditdlg.h>
Public Slots | |
void | accept () |
Public Member Functions | |
LayerEditDlg (int &, QString &, QWidget *parent, const char *name) | |
~LayerEditDlg () | |
Protected Attributes | |
UI_LayerEditWidget * | uiWidget |
int & | height |
QString & | allowOverlapStr |
Erik Sjolund
Definition at line 14 of file layereditdlg.h.
|
Definition at line 24 of file layereditdlg.cpp. References accept(), allowOverlapStr, height, and uiWidget. 00026 : QDialog( parent, name, TRUE /* modal */ ), height( _height ), 00027 allowOverlapStr( _allowOverlapStr ) 00028 { 00029 uiWidget = new UI_LayerEditWidget( this ); 00030 setCaption("Edit show modes"); 00031 QBoxLayout * l = new QVBoxLayout( this ); 00032 l->addWidget( uiWidget ); 00033 connect( uiWidget->buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00034 connect( uiWidget->buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00035 const int minValue = 1; 00036 Q_ASSERT( height >= minValue ); 00037 uiWidget->spinBoxHeight->setMinValue( minValue ); 00038 uiWidget->spinBoxHeight->setValue( height ); 00039 00040 bool allowOverlap; 00041 if ( allowOverlapStr == "true" ) 00042 { 00043 allowOverlap = true; 00044 } 00045 else{ 00046 allowOverlap = false; 00047 } 00048 00049 00050 uiWidget->checkBoxAllowOverlap->setChecked( allowOverlap ); 00051 }
|
|
Definition at line 60 of file layereditdlg.cpp.
|
|
Definition at line 53 of file layereditdlg.cpp. References allowOverlapStr, height, and uiWidget. Referenced by LayerEditDlg(). 00054 { 00055 allowOverlapStr = uiWidget->checkBoxAllowOverlap->isChecked() ? "true" : "false"; 00056 height = uiWidget->spinBoxHeight->value(); 00057 QDialog::accept(); 00058 }
|
|
Definition at line 25 of file layereditdlg.h. Referenced by accept(), and LayerEditDlg(). |
|
Definition at line 24 of file layereditdlg.h. Referenced by accept(), and LayerEditDlg(). |
|
Definition at line 23 of file layereditdlg.h. Referenced by accept(), and LayerEditDlg(). |