AiConfig::AiConfig ( QWidget *  parent = 0  ) 

contructor with optional parent

Parameters:
parent : a widget parent ( default = 0 )

Definition at line 46 of file aiconfig.cpp.

00047         :QDialog( parent )
00048 {
00049     //~ create a tab widget and add a tools tabs
00050 
00051     m_tabs = new QTabWidget(this);
00052     m_tabs->setTabPosition(QTabWidget::West);
00053 
00054     AiConfigTools * tools = new AiConfigTools(m_tabs) ;
00055     AiConfigFractals * fractals = new AiConfigFractals(m_tabs);
00056     AiConfigZone * zone = new AiConfigZone(m_tabs);
00057     AiConfigGenerator * generator = new AiConfigGenerator(m_tabs);
00058 
00059     //~ tools tab
00060     tools->setObjectName( "tools" );
00061     fractals->setObjectName( "fractals" );
00062     zone->setObjectName( "zone" );
00063     generator->setObjectName( "generator" );
00064 
00065     this->connect( tools, SIGNAL(zoomIn()), this, SIGNAL(zoomIn()) );
00066     this->connect( tools, SIGNAL(zoomOut()), this, SIGNAL(zoomOut()) );
00067     this->connect( tools, SIGNAL(zoomArea(bool)), this, SIGNAL(zoomArea(bool)) );
00068     this->connect( tools, SIGNAL(horizontalMirror()), this, SIGNAL(horizontalMirror()) );
00069     this->connect( tools, SIGNAL(verticalMirror()), this, SIGNAL(verticalMirror()) );
00070     this->connect( tools, SIGNAL(clear()), this, SIGNAL(clear()) );
00071     this->connect( tools, SIGNAL(rotation(int)), this, SIGNAL(rotation(int)) );
00072 
00073     this->connect( fractals, SIGNAL(refreshItems()),this,SIGNAL(refreshItems()));
00074     this->connect( fractals, SIGNAL(debugFractal()),this,SIGNAL(debugFractal()));
00075     this->connect( fractals, SIGNAL(currentIndexChanged(int)),this,SIGNAL(currentIndexChanged(int)));
00076 
00077     this->connect( generator, SIGNAL(currentThreads(int)), this, SIGNAL(currentThreads(int)) );
00078     this->connect( generator, SIGNAL(firstCompositionMode(int)), this, SIGNAL(firstCompositionMode(int)) );
00079     this->connect( generator, SIGNAL(othersCompositionMode(int)), this, SIGNAL(othersCompositionMode(int)) );
00080     this->connect( generator, SIGNAL(runGenerator()), this, SIGNAL(runGenerator()) );
00081     this->connect( generator, SIGNAL(stopGenerator()), this, SIGNAL(stopGenerator()) );
00082 
00083 
00084     m_tabs->addTab( tools, tr("Tools") );
00085 
00086     //~ fractals tab
00087     m_tabs->addTab( fractals , tr("Fractals") );
00088 
00089     //~ complex zone tab
00090     m_tabs->addTab( zone , tr("Complex Zone") );
00091 
00092     //~ generator tab
00093     m_tabs->addTab( generator , tr("Generator") );
00094     
00095     QHBoxLayout * layout = new QHBoxLayout();
00096     layout->addWidget( m_tabs );
00097     this->setLayout( layout );
00098 }

 All Classes Namespaces Files Functions Variables Typedefs

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