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

void Kcpreferences::setPage_Misc (  )  [private]

Set the misc options Page of the preferences dialog

Set the Misc options Page of the preferences dialog

Definition at line 152 of file kcpreferences.cpp.

References compress_dir, slotDirCompressCheck(), and slotLogCheck().

{
      QVBox *mainFrame = addVBoxPage( i18n("Miscellaneous"), i18n("Various settings"), DesktopIcon("misc"));

      QButtonGroup *ButtonGroup1 = new QButtonGroup( mainFrame, "ButtonGroup1" );
      ButtonGroup1->setTitle( i18n( "Compress Sources" ) );
      ButtonGroup1->setColumnLayout(0, Qt::Vertical );
      ButtonGroup1->layout()->setSpacing( 0 );
      ButtonGroup1->layout()->setMargin( 0 );
      QVBoxLayout *ButtonGroup1Layout = new QVBoxLayout( ButtonGroup1->layout() );
      ButtonGroup1Layout->setAlignment( Qt::AlignTop );
      ButtonGroup1Layout->setSpacing( 6 );
      ButtonGroup1Layout->setMargin( 11 );
      
      compress_dir = new QCheckBox( ButtonGroup1, "compress_dir" );
      compress_dir->setText( i18n( "Save sources in a personal directory" ) );
            connect( compress_dir, SIGNAL( clicked() ), this, SLOT( slotDirCompressCheck() ) );
      ButtonGroup1Layout->addWidget( compress_dir );
      
      kurlcompress = new KURLRequester( ButtonGroup1, "url_compress" );
      (kurlcompress->fileDialog())->setMode(  (KFile::Mode)(KFile::Directory|KFile::LocalOnly) );
      ButtonGroup1Layout->addWidget( kurlcompress );
            
      QButtonGroup *ButtonGroup2 = new QButtonGroup( mainFrame, "ButtonGroup2" );
      ButtonGroup2->setTitle( i18n( "Logs" ) );
      ButtonGroup2->setColumnLayout(0, Qt::Vertical );
      ButtonGroup2->layout()->setSpacing( 0 );
      ButtonGroup2->layout()->setMargin( 0 );
      QVBoxLayout *ButtonGroup2Layout = new QVBoxLayout( ButtonGroup2->layout() );
      ButtonGroup2Layout->setAlignment( Qt::AlignTop );
      ButtonGroup2Layout->setSpacing( 6 );
      ButtonGroup2Layout->setMargin( 11 );
      
      logs_start = new QCheckBox( ButtonGroup2, "logs_start" );
      logs_start->setText( i18n( "Start kconfigure with log enabled" ) );
      ButtonGroup2Layout->addWidget( logs_start );
      
      logs_sources = new QRadioButton( ButtonGroup2, "logs_sources" );
      logs_sources->setText( i18n( "Save logs in the directory sources" ) );
            connect( logs_sources, SIGNAL( clicked() ), this, SLOT( slotLogCheck() ) );
      ButtonGroup2Layout->addWidget( logs_sources );
      
      logs_personal = new QRadioButton( ButtonGroup2, "logs_personal" );
      logs_personal->setText( i18n( "Save logs in a personal directory" ) );
            connect( logs_personal, SIGNAL( clicked() ), this, SLOT( slotLogCheck() ) );
      ButtonGroup2Layout->addWidget( logs_personal );
      
      kurlrequest = new KURLRequester( ButtonGroup2, "openurl" );
      (kurlrequest->fileDialog())->setMode(  (KFile::Mode)(KFile::Directory|KFile::LocalOnly) );
      ButtonGroup2Layout->addWidget( kurlrequest );
            
      logs_html = new QCheckBox( ButtonGroup2, "logs_html" );
      logs_html->setText( i18n( "Logs in HTML format" ) );
      ButtonGroup2Layout->addWidget( logs_html );
}


Generated by  Doxygen 1.6.0   Back to index