#include <layereditdlg.h>
Inheritance diagram for LayerEditDlg:
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(), QBoxLayout::addWidget(), allowOverlapStr, height, QDialog::reject(), 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 }
LayerEditDlg::~LayerEditDlg | ( | ) |
void LayerEditDlg::accept | ( | ) | [slot] |
Reimplemented from QDialog.
Definition at line 53 of file layereditdlg.cpp.
References QDialog::accept(), allowOverlapStr, height, and uiWidget.
Referenced by LayerEditDlg().
00054 { 00055 allowOverlapStr = uiWidget->checkBoxAllowOverlap->isChecked() ? "true" : "false"; 00056 height = uiWidget->spinBoxHeight->value(); 00057 QDialog::accept(); 00058 }
UI_LayerEditWidget* LayerEditDlg::uiWidget [protected] |
int& LayerEditDlg::height [protected] |
QString& LayerEditDlg::allowOverlapStr [protected] |