Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

LayerEditDlg Class Reference

Used in view modes edit dialog. A dialog window for that uses the ui file ui_layereditwidget.ui. More...

#include <layereditdlg.h>

List of all members.

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


Detailed Description

Used in view modes edit dialog. A dialog window for that uses the ui file ui_layereditwidget.ui.

Erik Sjolund

Definition at line 14 of file layereditdlg.h.


Constructor & Destructor Documentation

LayerEditDlg::LayerEditDlg int &  ,
QString &  ,
QWidget *  parent,
const char *  name
 

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 }

LayerEditDlg::~LayerEditDlg  ) 
 

Definition at line 60 of file layereditdlg.cpp.

00061 {
00062 }


Member Function Documentation

void LayerEditDlg::accept  )  [slot]
 

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 }


Member Data Documentation

QString& LayerEditDlg::allowOverlapStr [protected]
 

Definition at line 25 of file layereditdlg.h.

Referenced by accept(), and LayerEditDlg().

int& LayerEditDlg::height [protected]
 

Definition at line 24 of file layereditdlg.h.

Referenced by accept(), and LayerEditDlg().

UI_LayerEditWidget* LayerEditDlg::uiWidget [protected]
 

Definition at line 23 of file layereditdlg.h.

Referenced by accept(), and LayerEditDlg().


The documentation for this class was generated from the following files:
Generated on Fri Mar 17 17:44:59 2006 for trapper by  doxygen 1.4.4