// ------------------------------------------------------- // -------- WGDownloadOptionsDlg // ------------------------------------------------------- WGDownloadOptionsDlg::WGDownloadOptionsDlg( QWidget* parent, const char* name, bool modal, WFlags fl ): WGDownloadOptionsDlgBase( parent, name, modal, fl ) { QIconSet image_open( QPixmap((const char**)image_open_data) ); image_open.setPixmap( QPixmap((const char**)image_open_d_data), QIconSet::Automatic, QIconSet::Disabled ); DirectoryB->setIconSet( image_open ); LogDirectoryB->setIconSet( image_open ); RetriesNumberLE->setValidator( new WGIntValidator( RetriesNumberLE ) ); RetriesWaitLE->setValidator( new WGIntValidator( RetriesWaitLE ) ); connect( OkB , SIGNAL(clicked()) , this, SLOT(slot_ok()) ); connect( CancelB , SIGNAL(clicked()) , this, SLOT(slot_cancel()) ); connect( DirectoryB , SIGNAL(clicked()) , this, SLOT(slot_directory()) ); connect( RestartCB , SIGNAL(clicked()) , this, SLOT(slot_restart()) ); connect( PasswordCB , SIGNAL(clicked()) , this, SLOT(slot_password()) ); connect( LogCB , SIGNAL(clicked()) , this, SLOT(slot_log()) ); connect( LogDirectoryB , SIGNAL(clicked()) , this, SLOT(slot_log_directory()) ); connect( URLLE , SIGNAL(returnPressed()), this, SLOT(slot_ok()) ); connect( PasswordUsrLE , SIGNAL(returnPressed()), this, SLOT(slot_ok()) ); connect( PasswordPassLE , SIGNAL(returnPressed()), this, SLOT(slot_ok()) ); connect( RetriesNumberLE, SIGNAL(returnPressed()), this, SLOT(slot_ok()) ); connect( RetriesWaitLE , SIGNAL(returnPressed()), this, SLOT(slot_ok()) ); updateControls(); URLLE->setFocus(); }
/** add comments here */ AiInterface::AiInterface() { _socket = 0; iaLogLevel = LOG_VERBOSE; DataTheme.init(); _analyst = new Analyst(); setCaption( "Attal: IA client" ); initMenuBar(); initStatusBar(); _edit = new QMultiLineEdit( this ); _edit->setReadOnly( true ); screen = _edit; setCentralWidget( _edit ); connect( &aifLog, SIGNAL( sig_print( QString ) ), SLOT( slot_log( QString ) ) ); }
void WGDownloadOptionsDlg::updateControls() { slot_restart(); slot_password(); slot_log(); }