Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCOptions::SetValues (  ) 

Definition at line 1107 of file dcoptions.cpp.

References DC_AutoResponseObject::m_bCaseSensitive, DC_UserMenuCommand::m_nContext, DC_UserChatCommand::m_sCommand, DC_UserMenuCommand::m_sCommand, DC_UserChatCommand::m_sName, DC_UserMenuCommand::m_sName, DC_AutoResponseObject::m_sResponse, DC_AutoResponseObject::m_sTrigger, SetUserPhoto(), slotAutoAwayMode(), slotDisableSound(), slotEnableShowJoinsParts(), slotINTERFACEChange(), slotIPHOSTNAMEChange(), slotLogChatEnableLogging(), and slotModeActiveChange().

Referenced by DCGuiApp::slotFileOptions().

{
      int i;
      CList<DCConfigShareFolder> list;
      CList<DC_UserMenuCommand> umclist;
      DCConfigShareFolder * csf;
      DC_UserMenuCommand * umc;
      QListViewItem * qlvitem;
      CList<DC_UserChatCommand> ucclist;
      DC_UserChatCommand * ucc;
      CList<DC_AutoResponseObject> arlist;
      DC_AutoResponseObject * aro = 0;

      // identify
      LineEdit_NICK->setText(g_pConfig->GetNick().Data());
      LineEdit_SEARCHNICK->setText(g_pConfig->GetSearchNick().Data());
      LineEdit_EMAIL->setText(g_pConfig->GetEMail(TRUE).Data());
      CheckBox_ANTISPAM->setChecked(g_pConfig->GetAntiSpam());
      LineEdit_DESCRIPTION->setText(g_pConfig->GetDescription(TRUE).Data());
      CheckBox_DESCRIPTION_TAG->setChecked(g_pConfig->GetDescriptionTag());
      CheckBox_EXT_HUB_COUNT->setChecked(g_pConfig->GetUseExtendedHubCount());
      LineEdit_AWAYPREFIX->setText(g_pConfig->GetAwayPrefix().Data());

      SetUserPhoto(g_pConfig->GetUserPhotoFileName().Data());

      for(i=0;i<ComboBox_SPEED->count();i++)
      {
            if ( ComboBox_SPEED->text(i) == g_pConfig->GetSpeed() )
            {
                  ComboBox_SPEED->setCurrentItem(i);
                  break;
            }
      }
      
      for(i=0;i<ComboBox_DEFAULTRENCODING->count();i++)
      {
            if ( ComboBox_DEFAULTRENCODING->text(i) == g_pConfig->GetDefaultFBRemoteEncoding() )
            {
                  ComboBox_DEFAULTRENCODING->setCurrentItem(i);
                  break;
            }
      }
      
      for(i=0;i<ComboBox_APPLICATION_ICONS->count();i++)
      {
            if ( ComboBox_APPLICATION_ICONS->text(i) == g_pConfig->GetApplicationIconTheme() )
            {
                  ComboBox_APPLICATION_ICONS->setCurrentItem(i);
                  break;
            }
      }
      
      for(i=0;i<ComboBox_EMOTICONS->count();i++)
      {
            if ( ComboBox_EMOTICONS->text(i) == g_pConfig->GetEmoticonTheme() )
            {
                  ComboBox_EMOTICONS->setCurrentItem(i);
                  break;
            }
      }
      
      for(i=0;i<ComboBox_USERLIST_ICONS->count();i++)
      {
            if ( ComboBox_USERLIST_ICONS->text(i) == g_pConfig->GetUserListIconTheme() )
            {
                  ComboBox_USERLIST_ICONS->setCurrentItem(i);
                  break;
            }
      }
      

      TextEdit_AWAYMESSAGE->setText(QString(g_pConfig->GetAwayMessage().Data()).replace( QRegExp("\\r"), "" ));

      // transfer->folder
      LineEdit_DOWNLOADFOLDER->setText(g_pConfig->GetDownloadFolder().Data());
      LineEdit_DOWNLOADFINISHEDFOLDER->setText(g_pConfig->GetDownloadFinishedFolder().Data());

      // save shared folders
      ListView_SHAREDFOLDERS->clear();

      g_pConfig->GetSharedFolders(&list);

      csf = 0;
      while( (csf=list.Next(csf)) != 0 )  
      {
            new QListViewItem( ListView_SHAREDFOLDERS, csf->m_sPath.Data(), csf->m_sAlias.Data() );
      }
      
      g_pConfig->GetUserMenuCommands(&umclist);
      umc = 0;
      while( (umc=umclist.Next(umc)) != 0 )
      {
            qlvitem = new QListViewItem( listView_MENU_COMMANDS, umc->m_sName.Data(), QString().setNum(umc->m_nContext), umc->m_sCommand.Data());
            qlvitem->setRenameEnabled(0, TRUE);
            qlvitem->setRenameEnabled(1, TRUE);
            qlvitem->setRenameEnabled(2, TRUE);
      }
      
      g_pConfig->GetUserChatCommands(&ucclist);
      ucc = 0;
      while( (ucc=ucclist.Next(ucc)) != 0 )
      {
            qlvitem = new QListViewItem( listView_CHAT_COMMANDS, ucc->m_sName.Data(), ucc->m_sCommand.Data() );
            qlvitem->setRenameEnabled(0, TRUE);
            qlvitem->setRenameEnabled(1, TRUE);
      }
      
      CheckBox_AUTORECREATESHARELIST->setChecked(g_pConfig->GetAutoRecreateShareList());
      CheckBox_DONTSHAREDOTFILES->setChecked(g_pConfig->GetDontShareDotFiles());

      // transfer->settings
      SpinBox_SAVEDOWNLOADQUEUETIME->setValue( g_pConfig->GetDownloadQueueTime() );
      SpinBox_USERUPLOADSLOTS->setValue(g_pConfig->GetUserUploadSlots());
      CheckBox_DYNAMICUPLOADRATE->setChecked(g_pConfig->GetDynamicUploadRate());
      SpinBox_MAXUPLOADRATE->setValue( floor(((10.0*g_pConfig->GetMaxUploadRate())/1024)+0.5) );
      SpinBox_MAXDOWNLOADRATE->setValue( floor(((10.0*g_pConfig->GetMaxDownloadRate())/1024)+0.5) );
      SpinBox_MAXSIMULTANEOUSUPLOADS->setValue( g_pConfig->GetMaxUpload() );
      SpinBox_TRANSFERRESENDTIMEOUT->setValue(g_pConfig->GetTransferResendTimeout());
      SpinBox_TRANSFERRESPONSETIMEOUT->setValue(g_pConfig->GetTransferResponseTimeout());
      SpinBox_AUTOSEARCHINTERVAL->setValue(g_pConfig->GetAutoSearchInterval());
      SpinBox_SMALLFILESIZE->setValue(g_pConfig->GetSmallFileSize());

      switch ( g_pConfig->GetHubOfflineTransferClose() )
      {
            case ectNONE:
                  RadioButton_NONE->setChecked(TRUE);
                  break;
            case ectUPLD:
                  RadioButton_UPLOAD->setChecked(TRUE);
                  break;
            case ectDLD:
                  RadioButton_DOWNLOAD->setChecked(TRUE);
                  break;
            case ectBOTH:
                  RadioButton_BOTH->setChecked(TRUE);
                  break;
      }

      CheckBox_TRANSFERAUTOSEARCH->setChecked(g_pConfig->GetTransferAutoSearch());
      CheckBox_DISABLEHASHLIST->setChecked(g_pConfig->GetDisableHashList());
      CheckBox_COMPRESSEDTRANSFERS->setChecked(g_pConfig->GetCompressedTransfers());
      SpinBox_RECREATESHARELISTTIME->setValue(g_pConfig->GetRecreateShareListTime());

      // connection->mode
      if ( g_pConfig->GetMode(TRUE) == ecmPASSIVE )
      {
            RadioButton_PASSIVEMODE->setChecked(TRUE);
            slotModeActiveChange(FALSE);
      }
      else
      {
            RadioButton_ACTIVEMODE->setChecked(TRUE);
            slotModeActiveChange(TRUE);
      }

      if ( g_pConfig->GetExternalIP() == TRUE )
      {
            RadioButton_IPHOSTNAME->setChecked(TRUE);
            slotIPHOSTNAMEChange(TRUE);
      }
      else
      {
            RadioButton_INTERFACE->setChecked(TRUE);
            slotINTERFACEChange(TRUE);
      }

      LineEdit_IP->setText(g_pConfig->GetHost().Data());
      LineEdit_LISTENIP->setText(g_pConfig->GetListenHost().Data());
      LineEdit_TCPLISTENPORT->setText( QString().setNum(g_pConfig->GetTCPListenPort()) );
      LineEdit_UDPLISTENPORT->setText( QString().setNum(g_pConfig->GetUDPListenPort()) );
      CheckBox_SENDMESSAGEONACTIVEMODEREQUEST->setChecked( g_pConfig->GetSendMessageOnActiveModeRequest() );

      // connection->settings
      SpinBox_RECONNECTCOUNT->setValue(g_pConfig->GetReconnectCount());
      SpinBox_RECONNECTTIMEOUT->setValue(g_pConfig->GetReconnectTimeout());
      CheckBox_FORCEMOVEENABLED->setChecked(g_pConfig->GetForceMoveEnabled());
      CheckBox_CHECKPRIVATEADDRESSSPACE->setChecked(g_pConfig->GetCheckPrivateAddressSpace());

      // gui->general
      LineEdit_LANGUAGEFILE->setText( g_pConfig->GetLanguageFile().Data() );

      for(i=0;i<ComboBox_THEME->count();i++)
      {
            if ( g_pConfig->GetTheme() == CString(ComboBox_THEME->text(i).ascii()) )
            {
                  ComboBox_THEME->setCurrentItem(i);
                  break;
            }
      }

      switch(g_pConfig->GetUnit())
      {
            case euBYTE:
                  RadioButton_UNITBYTE->setChecked(TRUE);
                  break;
            case euKBYTE:
                  RadioButton_UNITKBYTE->setChecked(TRUE);
                  break;
            case euMBYTE:
                  RadioButton_UNITMBYTE->setChecked(TRUE);
                  break;
            case euGBYTE:
                  RadioButton_UNITGBYTE->setChecked(TRUE);
                  break;
            default:
                  RadioButton_UNITAUTO->setChecked(TRUE);
                  break;
      }

      LineEdit_APPFONT->setText( g_pConfig->GetAppFont().Data() );
      LineEdit_DATAFOLDER->setText(g_pConfig->GetValknutDataPath());
      CheckBox_SHOWSTATUSMESSAGE->setChecked( g_pConfig->GetShowStatusMessage() );
      CheckBox_QUERYONEXIT->setChecked( g_pConfig->GetQueryOnExit() );
      CheckBox_QUERYONFILEDELETE->setChecked( g_pConfig->GetQueryOnFileDelete() );

      // gui->transfer
      CheckBox_TV_PERCENTCHUNK->setChecked(g_pConfig->GetTransferViewOptions(etvoCHUNKPERCENT));
      CheckBox_TV_PERCENTFILE->setChecked(g_pConfig->GetTransferViewOptions(etvoFILEPERCENT));
      CheckBox_TV_CHUNKSIZE->setChecked(g_pConfig->GetTransferViewOptions(etvoCHUNKSIZE));
      CheckBox_TV_FILESIZE->setChecked(g_pConfig->GetTransferViewOptions(etvoFILESIZE));
      CheckBox_TV_DOWNLOADRATESINGLE->setChecked(g_pConfig->GetTransferViewOptions(etvoDOWNLOADRATESINGLE));
      CheckBox_TV_ELAPSEDTIMESINGLE->setChecked(g_pConfig->GetTransferViewOptions(etvoELAPSEDTIMESINGLE));
      CheckBox_TV_DOWNLOADRATEMULTI->setChecked(g_pConfig->GetTransferViewOptions(etvoDOWNLOADRATEMULTI));
      CheckBox_TV_ELAPSEDTIMEMULTI->setChecked(g_pConfig->GetTransferViewOptions(etvoELAPSEDTIMEMULTI));

      // gui->chat
      CheckBox_OPENPRIVATECHATWINDOW->setChecked(g_pConfig->GetOpenPrivateChatWindow());
      CheckBox_SHOWCHATINTAB->setChecked(g_pConfig->GetShowChatInTab());
      CheckBox_SENDHIDEPRIVATECHATTOPUBLICCHAT->setChecked( g_pConfig->GetSendHidePrivateChatToPublicChat());
      CheckBox_EMOTICONS->setChecked(g_pConfig->GetEnableEmoticons());
      CheckBox_SHOWCHATSENDBUTTON->setChecked(g_pConfig->GetShowChatSendButton());
      CheckBox_CHATSHOWJOINSANDPARTS->setChecked(g_pConfig->GetChatShowJoinsAndParts());
      CheckBox_CHATSHOWJOINSANDPARTSONLYFAV->setChecked(g_pConfig->GetChatShowJoinsAndPartsOnlyFav());
      CheckBox_CHATRECVOFFLINEMESSAGES->setChecked(g_pConfig->GetChatRecvOfflineMessages());
      CheckBox_CHATSENDOFFLINEMESSAGES->setChecked(g_pConfig->GetChatSendOfflineMessages());
      SpinBox_CHATMAXPARAGRAPH->setValue(g_pConfig->GetChatMaxParagraph());
      SpinBox_CHATMESSAGEMAXLINES->setValue( g_pConfig->GetChatMessageMaxLines() );
      LineEdit_SUPPRESS_NICKS->setText( g_pConfig->GetSuppressedNicks() );
      
      for(i=0;i<ComboBox_SENDCHAT->count();i++)
      {
            if ( g_pConfig->GetSendChat() == CString(ComboBox_SENDCHAT->text(i).ascii()) )
            {
                  ComboBox_SENDCHAT->setCurrentItem(i);
                  break;
            }
      }

      LineEdit_BROWSER->setText(g_pConfig->GetBrowser().Data());

      QColor c;
      QPixmap p(10,10);

      c.setNamedColor(g_pConfig->GetChatColor(eccCHATTIMESTAMP).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Chat Timestamp"));
      c.setNamedColor(g_pConfig->GetChatColor(eccCHATLOCALNICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Chat Local Nick"));
      c.setNamedColor(g_pConfig->GetChatColor(eccCHATLOCALTEXT).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Chat Local Text"));
      c.setNamedColor(g_pConfig->GetChatColor(eccCHATREMOTENICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Chat Remote Nick"));
      c.setNamedColor(g_pConfig->GetChatColor(eccCHATREMOTETEXT).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Chat Remote Text"));
      c.setNamedColor(g_pConfig->GetChatColor(eccCHATSTATUSNICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Chat Status Nick"));
      c.setNamedColor(g_pConfig->GetChatColor(eccCHATSTATUSTEXT).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Chat Status Text"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICCHATTIMESTAMP).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Chat Timestamp"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICCHATLOCALNICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Chat Local Nick"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICCHATLOCALTEXT).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Chat Local Text"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICCHATREMOTENICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Chat Remote Nick"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICCHATREMOTETEXT).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Chat Remote Text"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICCHATSTATUSNICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Chat Status Nick"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICCHATSTATUSTEXT).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Chat Status Text"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICPRIVATECHATNICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Private Chat Nick"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICPRIVATECHATTEXT).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Private Chat Text"));
      c.setNamedColor(g_pConfig->GetChatColor(eccCHATSAY).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Chat Say"));
      c.setNamedColor(g_pConfig->GetChatColor(eccPUBLICCHATMENICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Public Chat ME Nick"));
      c.setNamedColor(g_pConfig->GetChatColor(eccOPNICK).Data());
      p.fill(c);
      ListBox_CHATCOLOR->insertItem(p,tr("Operator Nick"));
      
      // gui->client
      CheckBox_CLIENTWINDOWSMINIMIZED->setChecked(g_pConfig->GetOpenClientWindowsMinimized());
      CheckBox_USERLISTRIGHTALIGNMENT->setChecked(g_pConfig->GetUserListRightAlignment());
      CheckBox_AUTOAWAYMODE->setChecked(g_pConfig->GetAutoAwayMode());
      SpinBox_AUTOAWAYTIME->setValue(g_pConfig->GetAutoAwayTime());
      CheckBox_CLIENTCOLUMNS_COMMENT->setChecked(g_pConfig->GetClientColumn(eclcCOMMENT));
      CheckBox_CLIENTCOLUMNS_TAG->setChecked(g_pConfig->GetClientColumn(eclcTAG));
      CheckBox_CLIENTCOLUMNS_SPEED->setChecked(g_pConfig->GetClientColumn(eclcSPEED));
      CheckBox_CLIENTCOLUMNS_EMAIL->setChecked(g_pConfig->GetClientColumn(eclcEMAIL));
      CheckBox_CLIENTCOLUMNS_SHARE->setChecked(g_pConfig->GetClientColumn(eclcSHARE));
      CheckBox_CLIENTCOLUMNS_IP->setChecked(g_pConfig->GetClientColumn(eclcIP));
      CheckBox_CLIENTCOLUMNS_LOCKPK->setChecked(g_pConfig->GetClientColumn(eclcLOCKPK));
      CheckBox_CLIENTCOLUMNS_SUPPORTS->setChecked(g_pConfig->GetClientColumn(eclcSUPPORTS));
      
      if ( g_pConfig->GetDoubleClickAction() == ComboBox_DOUBLECLICK->text(1) )
      {
            ComboBox_DOUBLECLICK->setCurrentItem(1);
      }
      else
      {
            ComboBox_DOUBLECLICK->setCurrentItem(0);
      }
      
      // sound
      CheckBox_SOUNDDISABLED->setChecked(g_pConfig->GetSoundDisabled());
      CheckBox_SOUNDDISABLEDAWAY->setChecked(g_pConfig->GetSoundDisabledAway());
      CheckBox_EXTERNALPLAYER->setChecked(g_pConfig->GetExternalSoundPlayer());
      LineEdit_EXTERNALPLAYER->setText( g_pConfig->GetExternalPlayer().Data() );
      LineEdit_SOUNDFILECONNECT->setText( g_pConfig->GetSoundFile(eusCONNECT).Data() );
      LineEdit_SOUNDFILEDISCONNECT->setText( g_pConfig->GetSoundFile(eusDISCONNECT).Data() );
      LineEdit_SOUNDFILESEND->setText( g_pConfig->GetSoundFile(eusSEND).Data() );
      LineEdit_SOUNDFILERECEIVE->setText( g_pConfig->GetSoundFile(eusRECEIVE).Data() );
      LineEdit_SOUNDFILEFIRSTRECEIVE->setText( g_pConfig->GetSoundFile(eusFIRSTRECEIVE).Data() );
      CheckBox_SOUNDPLAYCONNECT->setChecked(g_pConfig->GetSoundEnabled(eusCONNECT));
      CheckBox_SOUNDPLAYDISCONNECT->setChecked(g_pConfig->GetSoundEnabled(eusDISCONNECT));
      CheckBox_SOUNDPLAYSEND->setChecked(g_pConfig->GetSoundEnabled(eusSEND));
      CheckBox_SOUNDPLAYRECEIVE->setChecked(g_pConfig->GetSoundEnabled(eusRECEIVE));
      CheckBox_SOUNDPLAYFIRSTRECEIVE->setChecked(g_pConfig->GetSoundEnabled(eusFIRSTRECEIVE));

      // log
      CheckBox_LOGFILE->setChecked(g_pConfig->GetLogFile());
      CheckBox_LOGDOWNLOADS->setChecked(g_pConfig->GetLogFinishedDownloads());
      CheckBox_LOGUPLOADS->setChecked(g_pConfig->GetLogFinishedUploads());
      CheckBox_LOGDETAILS->setChecked(g_pConfig->GetLogDetails());
      LineEdit_LOGFILENAME->setText( g_pConfig->GetLogFileName().Data() );
      CheckBox_TIMESTAMPPRIVATECHAT->setChecked(g_pConfig->GetTimeStamp(etsPRIVATECHAT));
      CheckBox_TIMESTAMPHUBCHAT->setChecked(g_pConfig->GetTimeStamp(etsHUBCHAT));

      CheckBox_LOGCHAT_ENABLELOGGING->setChecked( g_pConfig->GetLogChatOption(elcoENABLELOGGING) );
      CheckBox_LOGCHAT_APPENDDATE->setChecked( g_pConfig->GetLogChatOption(elcoAPPENDDATE) );
      CheckBox_LOGCHAT_APPENDHUBNAME->setChecked( g_pConfig->GetLogChatOption(elcoAPPENDHUBNAME) );
      CheckBox_LOGCHAT_APPENDHUBHOST->setChecked( g_pConfig->GetLogChatOption(elcoAPPENDHUBHOST) );
      CheckBox_LOGCHAT_DISABLEPUBLICCHAT->setChecked( g_pConfig->GetLogChatOption(elcoDISABLEPUBLICCHAT) );
      CheckBox_LOGCHAT_ENABLENICKNAMEFILTER->setChecked( g_pConfig->GetLogChatOption(elcoENABLENICKNAMEFILTER) );
      CheckBox_LOGCHAT_NICKNAMEFILTER_ENABLELOGGING->setChecked( g_pConfig->GetLogChatOption(elcoNICKNAMEFILTER_ENABLELOGGING) );

      CList<CString> nnflist;
      CString * ps = 0;
      g_pConfig->GetLogChatNickNameFilter( &nnflist );

      ListBox_LOGCHAT_NICKNAMEFILTER_LIST->clear();

      while( (ps=nnflist.Next(ps)) != 0 )
      {
            ListBox_LOGCHAT_NICKNAMEFILTER_LIST->insertItem(ps->Data());
      }

      // other
      CheckBox_HUBLISTSTORELOCAL->setChecked(g_pConfig->GetHubListStoreLocal());
      SpinBox_RELOADHUBLISTTIME->setValue(g_pConfig->GetReloadHubListTime());

      DCConfigHubListUrl * hublisturl = 0;

      CList<DCConfigHubListUrl> hublisturllist;
      g_pConfig->GetHubListUrlList(&hublisturllist);

      while( (hublisturl=hublisturllist.Next(hublisturl)) != 0 )
      {
            QCheckListItem * cli = new QCheckListItem( ListView_HUBLISTURL, hublisturl->sUrl.Data(), QCheckListItem::CheckBox );
            cli->setOn(hublisturl->bEnabled);
      }

      // security
      SpinBox_FLOODCOUNT->setValue(g_pConfig->GetFloodCount());
      CheckBox_FLOODOPKICK->setChecked(g_pConfig->GetFloodOpKick());
      LineEdit_FLOODOPKICKMESSAGE->setText(QString(g_pConfig->GetFloodOpKickMessage().Data()).replace( QRegExp("\\r"), "" ));
      LineEdit_TRANSFERCERT->setText(g_pConfig->GetTransferCert().Data());
      LineEdit_TRANSFERKEY->setText(g_pConfig->GetTransferKey().Data());

      // init the sound tab
      slotDisableSound();
      // init log tab
      slotLogChatEnableLogging();
      // init away
      slotAutoAwayMode();
      // init show joins parts only fav enabled/disabled
      slotEnableShowJoinsParts();
      
      // auto response settings
      CheckBox_ENABLE_AUTO_RESPONDER->setChecked(g_pConfig->GetAutoResponderEnabled());
      CheckBox_ENABLE_AUTO_RESPONDER_FOR_PM->setChecked(g_pConfig->GetAutoResponderEnabledForPM());
      SpinBox_AUTORESPONSEDELAY->setValue(g_pConfig->GetAutoResponseDelay());
      LineEdit_AUTO_RESPONSE_IGNORE->setText(g_pConfig->GetAutoResponseIgnores().Data());
      
      // fill auto response list box
      g_pConfig->GetAutoResponses(&arlist);
      aro = 0;
      while( (aro=arlist.Next(aro)) != 0)
      {
            QString cs;
            if (aro->m_bCaseSensitive == TRUE)
            {
                  cs = tr("Yes");
            }
            else
            {
                  cs = tr("No");
            }
            qlvitem = new QListViewItem( listView_AUTO_RESPONSES, aro->m_sTrigger.Data(), cs, aro->m_sResponse.Data() );
            qlvitem->setRenameEnabled(0, TRUE);
            qlvitem->setRenameEnabled(2, TRUE);
      }
      
      ComboBox_REMOTE_ENCODING->setCurrentText( g_pConfig->GetRemoteEncoding().Data() );
      
      CheckBox_FOLDERS_RIGHT_PANE->setChecked(g_pConfig->GetFoldersInRightPane());
      CheckBox_SIZES_LEFT_PANE->setChecked(g_pConfig->GetFolderSizesInLeftPane());
}


Generated by  Doxygen 1.6.0   Back to index