KDevelop API Documentation

buildtools/custommakefiles/custommakeconfigwidgetbase.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 './custommakeconfigwidgetbase.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:58:16 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 "custommakeconfigwidgetbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qlabel.h> 00017 #include <qlineedit.h> 00018 #include <qspinbox.h> 00019 #include <qcheckbox.h> 00020 #include <qgroupbox.h> 00021 #include <qcombobox.h> 00022 #include <qpushbutton.h> 00023 #include <qlayout.h> 00024 #include <qtooltip.h> 00025 #include <qwhatsthis.h> 00026 00027 /* 00028 * Constructs a CustomMakeConfigWidgetBase as a child of 'parent', with the 00029 * name 'name' and widget flags set to 'f'. 00030 */ 00031 CustomMakeConfigWidgetBase::CustomMakeConfigWidgetBase( QWidget* parent, const char* name, WFlags fl ) 00032 : QWidget( parent, name, fl ) 00033 { 00034 if ( !name ) 00035 setName( "CustomMakeConfigWidgetBase" ); 00036 CustomMakeConfigWidgetBaseLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "CustomMakeConfigWidgetBaseLayout"); 00037 00038 jobs_label = new QLabel( this, "jobs_label" ); 00039 00040 CustomMakeConfigWidgetBaseLayout->addWidget( jobs_label, 3, 0 ); 00041 00042 makebin_label = new QLabel( this, "makebin_label" ); 00043 00044 CustomMakeConfigWidgetBaseLayout->addWidget( makebin_label, 2, 0 ); 00045 00046 makebin_edit = new QLineEdit( this, "makebin_edit" ); 00047 00048 CustomMakeConfigWidgetBaseLayout->addWidget( makebin_edit, 2, 1 ); 00049 00050 jobs_box = new QSpinBox( this, "jobs_box" ); 00051 jobs_box->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, jobs_box->sizePolicy().hasHeightForWidth() ) ); 00052 jobs_box->setMaxValue( 30 ); 00053 jobs_box->setMinValue( 1 ); 00054 00055 CustomMakeConfigWidgetBaseLayout->addWidget( jobs_box, 3, 1 ); 00056 00057 abort_box = new QCheckBox( this, "abort_box" ); 00058 00059 CustomMakeConfigWidgetBaseLayout->addMultiCellWidget( abort_box, 0, 0, 0, 1 ); 00060 00061 dontact_box = new QCheckBox( this, "dontact_box" ); 00062 00063 CustomMakeConfigWidgetBaseLayout->addMultiCellWidget( dontact_box, 1, 1, 0, 1 ); 00064 00065 env_var_group = new QGroupBox( this, "env_var_group" ); 00066 00067 CustomMakeConfigWidgetBaseLayout->addMultiCellWidget( env_var_group, 5, 5, 0, 1 ); 00068 00069 layout3 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout3"); 00070 00071 envs_label = new QLabel( this, "envs_label" ); 00072 envs_label->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, envs_label->sizePolicy().hasHeightForWidth() ) ); 00073 layout3->addWidget( envs_label ); 00074 00075 envs_combo = new QComboBox( FALSE, this, "envs_combo" ); 00076 envs_combo->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, envs_combo->sizePolicy().hasHeightForWidth() ) ); 00077 envs_combo->setEditable( TRUE ); 00078 layout3->addWidget( envs_combo ); 00079 00080 addenvs_button = new QPushButton( this, "addenvs_button" ); 00081 addenvs_button->setAutoDefault( FALSE ); 00082 layout3->addWidget( addenvs_button ); 00083 00084 copyenvs_button = new QPushButton( this, "copyenvs_button" ); 00085 copyenvs_button->setAutoDefault( FALSE ); 00086 layout3->addWidget( copyenvs_button ); 00087 00088 removeenvs_button = new QPushButton( this, "removeenvs_button" ); 00089 removeenvs_button->setAutoDefault( FALSE ); 00090 layout3->addWidget( removeenvs_button ); 00091 00092 CustomMakeConfigWidgetBaseLayout->addMultiCellLayout( layout3, 4, 4, 0, 1 ); 00093 languageChange(); 00094 resize( QSize(626, 460).expandedTo(minimumSizeHint()) ); 00095 clearWState( WState_Polished ); 00096 00097 // signals and slots connections 00098 connect( envs_combo, SIGNAL( textChanged(const QString&) ), this, SLOT( envNameChanged(const QString&) ) ); 00099 connect( envs_combo, SIGNAL( activated(const QString&) ), this, SLOT( envChanged(const QString&) ) ); 00100 connect( copyenvs_button, SIGNAL( clicked() ), this, SLOT( envCopied() ) ); 00101 connect( addenvs_button, SIGNAL( clicked() ), this, SLOT( envAdded() ) ); 00102 connect( removeenvs_button, SIGNAL( clicked() ), this, SLOT( envRemoved() ) ); 00103 00104 // tab order 00105 setTabOrder( abort_box, dontact_box ); 00106 setTabOrder( dontact_box, makebin_edit ); 00107 setTabOrder( makebin_edit, jobs_box ); 00108 00109 // buddies 00110 jobs_label->setBuddy( jobs_box ); 00111 makebin_label->setBuddy( makebin_edit ); 00112 envs_label->setBuddy( envs_combo ); 00113 } 00114 00115 /* 00116 * Destroys the object and frees any allocated resources 00117 */ 00118 CustomMakeConfigWidgetBase::~CustomMakeConfigWidgetBase() 00119 { 00120 // no need to delete child widgets, Qt does it all for us 00121 } 00122 00123 /* 00124 * Sets the strings of the subwidgets using the current 00125 * language. 00126 */ 00127 void CustomMakeConfigWidgetBase::languageChange() 00128 { 00129 setCaption( tr2i18n( "Make Options" ) ); 00130 jobs_label->setText( tr2i18n( "Number of simultaneous &jobs:" ) ); 00131 makebin_label->setText( tr2i18n( "Name of make e&xecutable:" ) ); 00132 abort_box->setText( tr2i18n( "A&bort on first error" ) ); 00133 dontact_box->setText( tr2i18n( "Only di&splay commands without actually executing them" ) ); 00134 env_var_group->setTitle( tr2i18n( "Environment &Variables" ) ); 00135 envs_label->setText( tr2i18n( "E&nvironment:" ) ); 00136 addenvs_button->setText( tr2i18n( "&Add" ) ); 00137 copyenvs_button->setText( tr2i18n( "Co&py" ) ); 00138 removeenvs_button->setText( tr2i18n( "Re&move" ) ); 00139 } 00140 00141 void CustomMakeConfigWidgetBase::envNameChanged(const QString&) 00142 { 00143 qWarning( "CustomMakeConfigWidgetBase::envNameChanged(const QString&): Not implemented yet" ); 00144 } 00145 00146 void CustomMakeConfigWidgetBase::envChanged(const QString&) 00147 { 00148 qWarning( "CustomMakeConfigWidgetBase::envChanged(const QString&): Not implemented yet" ); 00149 } 00150 00151 void CustomMakeConfigWidgetBase::envAdded() 00152 { 00153 qWarning( "CustomMakeConfigWidgetBase::envAdded(): Not implemented yet" ); 00154 } 00155 00156 void CustomMakeConfigWidgetBase::envRemoved() 00157 { 00158 qWarning( "CustomMakeConfigWidgetBase::envRemoved(): Not implemented yet" ); 00159 } 00160 00161 void CustomMakeConfigWidgetBase::envCopied() 00162 { 00163 qWarning( "CustomMakeConfigWidgetBase::envCopied(): Not implemented yet" ); 00164 } 00165 00166 #include "custommakeconfigwidgetbase.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 Tue Oct 19 08:01:36 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003