KDevelop API Documentation

parts/valgrind/dialog_widget.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 './dialog_widget.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:23: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 "dialog_widget.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qpushbutton.h> 00017 #include <qgroupbox.h> 00018 #include <kurlrequester.h> 00019 #include <qlabel.h> 00020 #include <klineedit.h> 00021 #include <qcheckbox.h> 00022 #include <qlayout.h> 00023 #include <qtooltip.h> 00024 #include <qwhatsthis.h> 00025 #include "./dialog_widget.ui.h" 00026 00027 /* 00028 * Constructs a DialogWidget as a child of 'parent', with the 00029 * name 'name' and widget flags set to 'f'. 00030 */ 00031 DialogWidget::DialogWidget( QWidget* parent, const char* name, WFlags fl ) 00032 : QWidget( parent, name, fl ) 00033 { 00034 if ( !name ) 00035 setName( "DialogWidget" ); 00036 DialogWidgetLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "DialogWidgetLayout"); 00037 00038 groupBox1 = new QGroupBox( this, "groupBox1" ); 00039 groupBox1->setColumnLayout(0, Qt::Vertical ); 00040 groupBox1->layout()->setSpacing( KDialog::spacingHint() ); 00041 groupBox1->layout()->setMargin( KDialog::marginHint() ); 00042 groupBox1Layout = new QGridLayout( groupBox1->layout() ); 00043 groupBox1Layout->setAlignment( Qt::AlignTop ); 00044 00045 executableEdit = new KURLRequester( groupBox1, "executableEdit" ); 00046 00047 groupBox1Layout->addWidget( executableEdit, 0, 1 ); 00048 00049 textLabel3 = new QLabel( groupBox1, "textLabel3" ); 00050 00051 groupBox1Layout->addWidget( textLabel3, 1, 0 ); 00052 00053 textLabel2 = new QLabel( groupBox1, "textLabel2" ); 00054 00055 groupBox1Layout->addWidget( textLabel2, 0, 0 ); 00056 00057 paramEdit = new KLineEdit( groupBox1, "paramEdit" ); 00058 00059 groupBox1Layout->addWidget( paramEdit, 1, 1 ); 00060 DialogWidgetLayout->addWidget( groupBox1 ); 00061 00062 groupBox2 = new QGroupBox( this, "groupBox2" ); 00063 groupBox2->setColumnLayout(0, Qt::Vertical ); 00064 groupBox2->layout()->setSpacing( KDialog::spacingHint() ); 00065 groupBox2->layout()->setMargin( KDialog::marginHint() ); 00066 groupBox2Layout = new QVBoxLayout( groupBox2->layout() ); 00067 groupBox2Layout->setAlignment( Qt::AlignTop ); 00068 00069 memleakBox = new QCheckBox( groupBox2, "memleakBox" ); 00070 groupBox2Layout->addWidget( memleakBox ); 00071 00072 layout2 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout2"); 00073 spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum ); 00074 layout2->addItem( spacer1 ); 00075 00076 reachableBox = new QCheckBox( groupBox2, "reachableBox" ); 00077 layout2->addWidget( reachableBox ); 00078 groupBox2Layout->addLayout( layout2 ); 00079 00080 childrenBox = new QCheckBox( groupBox2, "childrenBox" ); 00081 groupBox2Layout->addWidget( childrenBox ); 00082 00083 layout3 = new QGridLayout( 0, 1, 1, 0, KDialog::spacingHint(), "layout3"); 00084 00085 textLabel5 = new QLabel( groupBox2, "textLabel5" ); 00086 00087 layout3->addWidget( textLabel5, 1, 0 ); 00088 00089 valParamEdit = new KLineEdit( groupBox2, "valParamEdit" ); 00090 00091 layout3->addWidget( valParamEdit, 1, 1 ); 00092 00093 valExecutableEdit = new KURLRequester( groupBox2, "valExecutableEdit" ); 00094 00095 layout3->addWidget( valExecutableEdit, 0, 1 ); 00096 00097 textLabel4 = new QLabel( groupBox2, "textLabel4" ); 00098 00099 layout3->addWidget( textLabel4, 0, 0 ); 00100 groupBox2Layout->addLayout( layout3 ); 00101 DialogWidgetLayout->addWidget( groupBox2 ); 00102 languageChange(); 00103 resize( QSize(318, 270).expandedTo(minimumSizeHint()) ); 00104 clearWState( WState_Polished ); 00105 00106 // signals and slots connections 00107 connect( memleakBox, SIGNAL( toggled(bool) ), this, SLOT( checkBoxToggled() ) ); 00108 00109 // tab order 00110 setTabOrder( executableEdit, paramEdit ); 00111 setTabOrder( paramEdit, memleakBox ); 00112 setTabOrder( memleakBox, reachableBox ); 00113 setTabOrder( reachableBox, childrenBox ); 00114 setTabOrder( childrenBox, valExecutableEdit ); 00115 setTabOrder( valExecutableEdit, valParamEdit ); 00116 00117 // buddies 00118 textLabel3->setBuddy( paramEdit ); 00119 textLabel2->setBuddy( executableEdit ); 00120 textLabel5->setBuddy( valParamEdit ); 00121 textLabel4->setBuddy( valExecutableEdit ); 00122 init(); 00123 } 00124 00125 /* 00126 * Destroys the object and frees any allocated resources 00127 */ 00128 DialogWidget::~DialogWidget() 00129 { 00130 // no need to delete child widgets, Qt does it all for us 00131 } 00132 00133 /* 00134 * Sets the strings of the subwidgets using the current 00135 * language. 00136 */ 00137 void DialogWidget::languageChange() 00138 { 00139 setCaption( tr2i18n( "Form1" ) ); 00140 groupBox1->setTitle( tr2i18n( "Application" ) ); 00141 textLabel3->setText( tr2i18n( "&Parameters:" ) ); 00142 textLabel2->setText( tr2i18n( "&Executable:" ) ); 00143 groupBox2->setTitle( tr2i18n( "Valgrind" ) ); 00144 memleakBox->setText( tr2i18n( "Memory &leak check" ) ); 00145 reachableBox->setText( tr2i18n( "&Show still reachable blocks" ) ); 00146 childrenBox->setText( tr2i18n( "&Trace children" ) ); 00147 textLabel5->setText( tr2i18n( "Additional p&arameters:" ) ); 00148 textLabel4->setText( tr2i18n( "E&xecutable:" ) ); 00149 } 00150 00151 #include "dialog_widget.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:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003