contructor with optional parent
Definition at line 46 of file aiconfigfractals.cpp. 00047 :QWidget( parent ) 00048 { 00049 //~ init 00050 QLabel * label = new QLabel( tr("Fractals List (chose one)!") ); 00051 m_fractalsList = new QComboBox(); 00052 QPushButton * refresh = new QPushButton( tr("Refresh") ); 00053 QPushButton * debug = new QPushButton( tr("Debug Fractal") ); 00054 QVBoxLayout * layout= new QVBoxLayout(); 00055 00056 //~ setup 00057 m_fractalsList->setEditable( false ); 00058 this->connect(m_fractalsList,SIGNAL(currentIndexChanged(int)),this,SIGNAL(currentIndexChanged(int))); 00059 this->connect(refresh,SIGNAL(clicked()),this,SIGNAL(refreshItems())); 00060 this->connect(debug,SIGNAL(clicked()),this,SIGNAL(debugFractal())); 00061 00062 refresh->setIcon( QIcon( tr(":/png/refresh") ) ); 00063 debug->setIcon( QIcon( tr(":/png/debug") ) ); 00064 00065 layout->addWidget( label,0,Qt::AlignTop ); 00066 layout->addWidget( m_fractalsList,1,Qt::AlignTop ); 00067 layout->addWidget( refresh,2,Qt::AlignTop ); 00068 layout->addWidget( debug,60,Qt::AlignTop ); 00069 00070 this->setLayout( layout ); 00071 00072 } |