AiConfigZone::AiConfigZone ( QWidget *  parent = 0  ) 

contructor with optional parent

Definition at line 46 of file aiconfigzone.cpp.

00047         :QWidget( parent )
00048 {
00049     //~ init
00050     QLabel * lblZoneWidth   = new QLabel( tr("Zone Width :") );
00051     QLabel * lblZoneHeight  = new QLabel( tr("Zone Height :") );
00052     QLabel * lblZoneMinX    = new QLabel( tr("Zone Min X :") );
00053     QLabel * lblZoneMinY    = new QLabel( tr("Zone Min Y :") );
00054     QLabel * lblImageWidth  = new QLabel( tr("Image Width (px) :") );
00055     QLabel * lblImageHeight = new QLabel( tr("Image Height (px) :") );
00056     QLabel * lblIterations  = new QLabel( tr("Iterations :") );
00057 
00058     m_zoneWidth             = new QDoubleSpinBox();
00059     m_zoneHeight            = new QDoubleSpinBox();
00060     m_zoneMinX              = new QDoubleSpinBox();
00061     m_zoneMinY              = new QDoubleSpinBox();
00062     m_imageWidth            = new QSpinBox();
00063     m_imageHeight           = new QSpinBox();
00064     m_iterations            = new QSpinBox();
00065     QVBoxLayout * layout = new QVBoxLayout();
00066 
00067     //~setup
00068     m_zoneWidth->setDecimals(9);
00069     m_zoneHeight->setDecimals(9);
00070     m_zoneMinX->setDecimals(9);
00071     m_zoneMinY->setDecimals(9);
00072 
00073     m_zoneWidth->setRange(-9999.,9999.);
00074     m_zoneHeight->setRange(-9999.,9999.);
00075     m_zoneMinX->setRange(-9999.,9999.);
00076     m_zoneMinY->setRange(-9999.,9999.);
00077     m_imageWidth->setRange(-9999,9999);
00078     m_imageHeight->setRange(-9999,9999);
00079     m_iterations->setRange(1,99);
00080     m_iterations->setMinimum( 1 );
00081 
00082     layout->addWidget( lblZoneWidth );
00083     layout->addWidget( m_zoneWidth );
00084     layout->addWidget( lblZoneHeight );
00085     layout->addWidget( m_zoneHeight );
00086     layout->addWidget( lblZoneMinX );
00087     layout->addWidget( m_zoneMinX );
00088     layout->addWidget( lblZoneMinY );
00089     layout->addWidget( m_zoneMinY );
00090     layout->addWidget( lblImageWidth );
00091     layout->addWidget( m_imageWidth );
00092     layout->addWidget( lblImageHeight );
00093     layout->addWidget( m_imageHeight );
00094     layout->addWidget( lblIterations );
00095     layout->addWidget( m_iterations );
00096 
00097     this->setLayout( layout );
00098 
00099 }

 All Classes Namespaces Files Functions Variables Typedefs

Generated on Sat Feb 27 08:33:13 2010 for AiFractals by  doxygen 1.6.1