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 Mar 22 23:53:00 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 <qpushbutton.h>
00017 #include <qgroupbox.h>
00018 #include <qcheckbox.h>
00019 #include <qlabel.h>
00020 #include <qslider.h>
00021 #include <qtextedit.h>
00022 #include <qlayout.h>
00023 #include <qtooltip.h>
00024 #include <qwhatsthis.h>
00025 #include "./configproblemreporter.ui.h"
00026 
00027 /*
00028  *  Constructs a ConfigureProblemReporter as a child of 'parent', with the
00029  *  name 'name' and widget flags set to 'f'.
00030  */
00031 ConfigureProblemReporter::ConfigureProblemReporter( QWidget* parent, const char* name, WFlags fl )
00032     : QWidget( parent, name, fl )
00033 {
00034     if ( !name )
00035     setName( "ConfigureProblemReporter" );
00036     ConfigureProblemReporterLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "ConfigureProblemReporterLayout"); 
00037 
00038     groupBox1 = new QGroupBox( this, "groupBox1" );
00039     groupBox1->setFrameShadow( QGroupBox::Sunken );
00040     groupBox1->setColumnLayout(0, Qt::Vertical );
00041     groupBox1->layout()->setSpacing( KDialog::spacingHint() );
00042     groupBox1->layout()->setMargin( KDialog::marginHint() );
00043     groupBox1Layout = new QVBoxLayout( groupBox1->layout() );
00044     groupBox1Layout->setAlignment( Qt::AlignTop );
00045 
00046     layout2 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout2"); 
00047 
00048     bgParserCheckbox = new QCheckBox( groupBox1, "bgParserCheckbox" );
00049     layout2->addWidget( bgParserCheckbox );
00050 
00051     delayLabel = new QLabel( groupBox1, "delayLabel" );
00052     delayLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, delayLabel->sizePolicy().hasHeightForWidth() ) );
00053     delayLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
00054     layout2->addWidget( delayLabel );
00055     groupBox1Layout->addLayout( layout2 );
00056 
00057     delaySlider = new QSlider( groupBox1, "delaySlider" );
00058     delaySlider->setMaxValue( 2000 );
00059     delaySlider->setLineStep( 250 );
00060     delaySlider->setPageStep( 500 );
00061     delaySlider->setOrientation( QSlider::Horizontal );
00062     delaySlider->setTickmarks( QSlider::NoMarks );
00063     delaySlider->setTickInterval( 250 );
00064     groupBox1Layout->addWidget( delaySlider );
00065     ConfigureProblemReporterLayout->addWidget( groupBox1 );
00066 
00067     groupBox3 = new QGroupBox( this, "groupBox3" );
00068     groupBox3->setColumnLayout(0, Qt::Vertical );
00069     groupBox3->layout()->setSpacing( KDialog::spacingHint() );
00070     groupBox3->layout()->setMargin( KDialog::marginHint() );
00071     groupBox3Layout = new QVBoxLayout( groupBox3->layout() );
00072     groupBox3Layout->setAlignment( Qt::AlignTop );
00073 
00074     specialHeader = new QTextEdit( groupBox3, "specialHeader" );
00075     groupBox3Layout->addWidget( specialHeader );
00076     ConfigureProblemReporterLayout->addWidget( groupBox3 );
00077     languageChange();
00078     resize( QSize(588, 492).expandedTo(minimumSizeHint()) );
00079     clearWState( WState_Polished );
00080 
00081     // signals and slots connections
00082     connect( delaySlider, SIGNAL( valueChanged(int) ), this, SLOT( setDelayLabel(int) ) );
00083     connect( bgParserCheckbox, SIGNAL( toggled(bool) ), this, SLOT( bgParserCheckbox_toggled(bool) ) );
00084 
00085     // tab order
00086     setTabOrder( bgParserCheckbox, delaySlider );
00087     init();
00088 }
00089 
00090 /*
00091  *  Destroys the object and frees any allocated resources
00092  */
00093 ConfigureProblemReporter::~ConfigureProblemReporter()
00094 {
00095     destroy();
00096     // no need to delete child widgets, Qt does it all for us
00097 }
00098 
00099 /*
00100  *  Sets the strings of the subwidgets using the current
00101  *  language.
00102  */
00103 void ConfigureProblemReporter::languageChange()
00104 {
00105     groupBox1->setTitle( tr2i18n( "Parsing" ) );
00106     bgParserCheckbox->setText( tr2i18n( "&Enable background parsing" ) );
00107     delayLabel->setText( tr2i18n( "msec" ) );
00108     groupBox3->setTitle( tr2i18n( "Special &Headers" ) );
00109 }
00110 
00111 #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 Wed Mar 23 00:03:45 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003