KDevelop API Documentation

configproblemreporter.cpp

Go to the documentation of this file.
00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './configproblemreporter.ui'
00005 **
00006 ** Created: Tue Feb 22 09:09:29 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "configproblemreporter.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qcheckbox.h>
00017 #include <qslider.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a ConfigureProblemReporter as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 ConfigureProblemReporter::ConfigureProblemReporter( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "ConfigureProblemReporter" );
00031     ConfigureProblemReporterLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "ConfigureProblemReporterLayout"); 
00032 
00033     bgParserCheckbox = new QCheckBox( this, "bgParserCheckbox" );
00034     ConfigureProblemReporterLayout->addWidget( bgParserCheckbox );
00035 
00036     delaySlider = new QSlider( this, "delaySlider" );
00037     delaySlider->setMaxValue( 2000 );
00038     delaySlider->setLineStep( 250 );
00039     delaySlider->setPageStep( 500 );
00040     delaySlider->setOrientation( QSlider::Horizontal );
00041     delaySlider->setTickmarks( QSlider::NoMarks );
00042     delaySlider->setTickInterval( 250 );
00043     ConfigureProblemReporterLayout->addWidget( delaySlider );
00044     Spacer1 = new QSpacerItem( 0, 101, QSizePolicy::Minimum, QSizePolicy::Expanding );
00045     ConfigureProblemReporterLayout->addItem( Spacer1 );
00046     languageChange();
00047     resize( QSize(390, 306).expandedTo(minimumSizeHint()) );
00048     clearWState( WState_Polished );
00049 
00050     // signals and slots connections
00051     connect( bgParserCheckbox, SIGNAL( toggled(bool) ), this, SLOT( bgParserCheckbox_toggled(bool) ) );
00052     init();
00053 }
00054 
00055 /*
00056  *  Destroys the object and frees any allocated resources
00057  */
00058 ConfigureProblemReporter::~ConfigureProblemReporter()
00059 {
00060     destroy();
00061     // no need to delete child widgets, Qt does it all for us
00062 }
00063 
00064 /*
00065  *  Sets the strings of the subwidgets using the current
00066  *  language.
00067  */
00068 void ConfigureProblemReporter::languageChange()
00069 {
00070     bgParserCheckbox->setText( tr2i18n( "&Enable background parsing" ) );
00071 }
00072 
00073 void ConfigureProblemReporter::init()
00074 {
00075 }
00076 
00077 void ConfigureProblemReporter::destroy()
00078 {
00079 }
00080 
00081 void ConfigureProblemReporter::accept()
00082 {
00083     qWarning( "ConfigureProblemReporter::accept(): Not implemented yet" );
00084 }
00085 
00086 void ConfigureProblemReporter::bgParserCheckbox_toggled(bool)
00087 {
00088     qWarning( "ConfigureProblemReporter::bgParserCheckbox_toggled(bool): Not implemented yet" );
00089 }
00090 
00091 #include "configproblemreporter.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:27 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003