KDevelop API Documentation

languages/ada/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: Wed Oct 6 17:26:05 2004 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 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 #include "./configproblemreporter.ui.h" 00022 00023 /* 00024 * Constructs a ConfigureProblemReporter as a child of 'parent', with the 00025 * name 'name' and widget flags set to 'f'. 00026 */ 00027 ConfigureProblemReporter::ConfigureProblemReporter( QWidget* parent, const char* name, WFlags fl ) 00028 : QWidget( parent, name, fl ) 00029 { 00030 if ( !name ) 00031 setName( "ConfigureProblemReporter" ); 00032 ConfigureProblemReporterLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "ConfigureProblemReporterLayout"); 00033 00034 bgParserCheckbox = new QCheckBox( this, "bgParserCheckbox" ); 00035 ConfigureProblemReporterLayout->addWidget( bgParserCheckbox ); 00036 00037 delaySlider = new QSlider( this, "delaySlider" ); 00038 delaySlider->setMaxValue( 2000 ); 00039 delaySlider->setLineStep( 250 ); 00040 delaySlider->setPageStep( 500 ); 00041 delaySlider->setOrientation( QSlider::Horizontal ); 00042 delaySlider->setTickmarks( QSlider::Right ); 00043 delaySlider->setTickInterval( 250 ); 00044 ConfigureProblemReporterLayout->addWidget( delaySlider ); 00045 Spacer1 = new QSpacerItem( 0, 101, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00046 ConfigureProblemReporterLayout->addItem( Spacer1 ); 00047 languageChange(); 00048 resize( QSize(390, 304).expandedTo(minimumSizeHint()) ); 00049 clearWState( WState_Polished ); 00050 00051 // signals and slots connections 00052 connect( bgParserCheckbox, SIGNAL( toggled(bool) ), this, SLOT( bgParserCheckbox_toggled(bool) ) ); 00053 init(); 00054 } 00055 00056 /* 00057 * Destroys the object and frees any allocated resources 00058 */ 00059 ConfigureProblemReporter::~ConfigureProblemReporter() 00060 { 00061 destroy(); 00062 // no need to delete child widgets, Qt does it all for us 00063 } 00064 00065 /* 00066 * Sets the strings of the subwidgets using the current 00067 * language. 00068 */ 00069 void ConfigureProblemReporter::languageChange() 00070 { 00071 setCaption( tr2i18n( "Form1" ) ); 00072 bgParserCheckbox->setText( tr2i18n( "&Enable background parsing" ) ); 00073 } 00074 00075 #include "configproblemreporter.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:00 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003