KDevelop API Documentation

ccconfigwidgetbase.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 './ccconfigwidgetbase.ui'
00005 **
00006 ** Created: Tue Feb 22 09:06:07 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 "ccconfigwidgetbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <kurlrequester.h>
00016 #include <kdialog.h>
00017 #include <qpushbutton.h>
00018 #include <qtabwidget.h>
00019 #include <qgroupbox.h>
00020 #include <qlineedit.h>
00021 #include <qlabel.h>
00022 #include <qcheckbox.h>
00023 #include <knuminput.h>
00024 #include <qheader.h>
00025 #include <qlistview.h>
00026 #include <qlayout.h>
00027 #include <qtooltip.h>
00028 #include <qwhatsthis.h>
00029 
00030 /*
00031  *  Constructs a CCConfigWidgetBase as a child of 'parent', with the
00032  *  name 'name' and widget flags set to 'f'.
00033  */
00034 CCConfigWidgetBase::CCConfigWidgetBase( QWidget* parent, const char* name, WFlags fl )
00035     : QWidget( parent, name, fl )
00036 {
00037     if ( !name )
00038     setName( "CCConfigWidgetBase" );
00039     CCConfigWidgetBaseLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "CCConfigWidgetBaseLayout"); 
00040 
00041     codecompletion_tab = new QTabWidget( this, "codecompletion_tab" );
00042 
00043     fileTemplatesPage = new QWidget( codecompletion_tab, "fileTemplatesPage" );
00044     fileTemplatesPageLayout = new QGridLayout( fileTemplatesPage, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "fileTemplatesPageLayout"); 
00045 
00046     options = new QGroupBox( fileTemplatesPage, "options" );
00047     options->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, options->sizePolicy().hasHeightForWidth() ) );
00048     options->setColumnLayout(0, Qt::Vertical );
00049     options->layout()->setSpacing( KDialog::spacingHint() );
00050     options->layout()->setMargin( KDialog::marginHint() );
00051     optionsLayout = new QGridLayout( options->layout() );
00052     optionsLayout->setAlignment( Qt::AlignTop );
00053 
00054     interface_suffix = new QLineEdit( options, "interface_suffix" );
00055 
00056     optionsLayout->addWidget( interface_suffix, 0, 1 );
00057 
00058     implementation_suffix = new QLineEdit( options, "implementation_suffix" );
00059 
00060     optionsLayout->addWidget( implementation_suffix, 1, 1 );
00061 
00062     TextLabel3 = new QLabel( options, "TextLabel3" );
00063 
00064     optionsLayout->addWidget( TextLabel3, 0, 0 );
00065 
00066     TextLabel4 = new QLabel( options, "TextLabel4" );
00067 
00068     optionsLayout->addWidget( TextLabel4, 1, 0 );
00069 
00070     fileTemplatesPageLayout->addWidget( options, 0, 0 );
00071     spacer2 = new QSpacerItem( 20, 310, QSizePolicy::Minimum, QSizePolicy::Expanding );
00072     fileTemplatesPageLayout->addItem( spacer2, 1, 0 );
00073     codecompletion_tab->insertTab( fileTemplatesPage, QString::fromLatin1("") );
00074 
00075     codeCompletionPage = new QWidget( codecompletion_tab, "codeCompletionPage" );
00076     codeCompletionPageLayout = new QGridLayout( codeCompletionPage, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "codeCompletionPageLayout"); 
00077 
00078     layout2 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "layout2"); 
00079 
00080     checkAutomaticCodeCompletion = new QCheckBox( codeCompletionPage, "checkAutomaticCodeCompletion" );
00081     layout2->addWidget( checkAutomaticCodeCompletion );
00082 
00083     inputCodeCompletion = new KIntNumInput( codeCompletionPage, "inputCodeCompletion" );
00084     layout2->addWidget( inputCodeCompletion );
00085 
00086     checkAutomaticArgumentsHint = new QCheckBox( codeCompletionPage, "checkAutomaticArgumentsHint" );
00087     layout2->addWidget( checkAutomaticArgumentsHint );
00088 
00089     inputArgumentsHint = new KIntNumInput( codeCompletionPage, "inputArgumentsHint" );
00090     layout2->addWidget( inputArgumentsHint );
00091 
00092     codeCompletionPageLayout->addMultiCellLayout( layout2, 0, 0, 0, 1 );
00093 
00094     advancedOptions = new QListView( codeCompletionPage, "advancedOptions" );
00095     advancedOptions->addColumn( tr2i18n( "Column 1" ) );
00096     advancedOptions->setRootIsDecorated( TRUE );
00097     advancedOptions->setResizeMode( QListView::LastColumn );
00098 
00099     codeCompletionPageLayout->addMultiCellWidget( advancedOptions, 3, 3, 0, 1 );
00100     spacer1 = new QSpacerItem( 31, 18, QSizePolicy::Minimum, QSizePolicy::Minimum );
00101     codeCompletionPageLayout->addItem( spacer1, 2, 0 );
00102 
00103     layout2_2 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout2_2"); 
00104     spacer3 = new QSpacerItem( 81, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00105     layout2_2->addItem( spacer3 );
00106 
00107     newPCSButton = new QPushButton( codeCompletionPage, "newPCSButton" );
00108     layout2_2->addWidget( newPCSButton );
00109 
00110     codeCompletionPageLayout->addLayout( layout2_2, 1, 1 );
00111     codecompletion_tab->insertTab( codeCompletionPage, QString::fromLatin1("") );
00112     CCConfigWidgetBaseLayout->addWidget( codecompletion_tab );
00113     languageChange();
00114     resize( QSize(551, 501).expandedTo(minimumSizeHint()) );
00115     clearWState( WState_Polished );
00116 
00117     // signals and slots connections
00118     connect( newPCSButton, SIGNAL( clicked() ), this, SLOT( slotNewPCS() ) );
00119 
00120     // tab order
00121     setTabOrder( interface_suffix, implementation_suffix );
00122     setTabOrder( implementation_suffix, codecompletion_tab );
00123     setTabOrder( codecompletion_tab, checkAutomaticCodeCompletion );
00124     setTabOrder( checkAutomaticCodeCompletion, inputCodeCompletion );
00125     setTabOrder( inputCodeCompletion, checkAutomaticArgumentsHint );
00126     setTabOrder( checkAutomaticArgumentsHint, inputArgumentsHint );
00127     setTabOrder( inputArgumentsHint, newPCSButton );
00128     setTabOrder( newPCSButton, advancedOptions );
00129 
00130     // buddies
00131     TextLabel3->setBuddy( interface_suffix );
00132     TextLabel4->setBuddy( implementation_suffix );
00133 }
00134 
00135 /*
00136  *  Destroys the object and frees any allocated resources
00137  */
00138 CCConfigWidgetBase::~CCConfigWidgetBase()
00139 {
00140     // no need to delete child widgets, Qt does it all for us
00141 }
00142 
00143 /*
00144  *  Sets the strings of the subwidgets using the current
00145  *  language.
00146  */
00147 void CCConfigWidgetBase::languageChange()
00148 {
00149     setCaption( tr2i18n( "C++ Options" ) );
00150     options->setTitle( tr2i18n( "File Options" ) );
00151     TextLabel3->setText( tr2i18n( "&Interface suffix:" ) );
00152     TextLabel4->setText( tr2i18n( "I&mplementation suffix:" ) );
00153     codecompletion_tab->changeTab( fileTemplatesPage, tr2i18n( "&General" ) );
00154     checkAutomaticCodeCompletion->setText( tr2i18n( "Automatic c&ode completion" ) );
00155     checkAutomaticArgumentsHint->setText( tr2i18n( "Automatic &arguments hint" ) );
00156     advancedOptions->header()->setLabel( 0, tr2i18n( "Column 1" ) );
00157     newPCSButton->setText( tr2i18n( "Add &Persistant Class Store..." ) );
00158     codecompletion_tab->changeTab( codeCompletionPage, tr2i18n( "Code Comp&letion" ) );
00159 }
00160 
00161 void CCConfigWidgetBase::implementationFile()
00162 {
00163     qWarning( "CCConfigWidgetBase::implementationFile(): Not implemented yet" );
00164 }
00165 
00166 void CCConfigWidgetBase::interfaceFile()
00167 {
00168     qWarning( "CCConfigWidgetBase::interfaceFile(): Not implemented yet" );
00169 }
00170 
00171 void CCConfigWidgetBase::slotAddPPPath()
00172 {
00173     qWarning( "CCConfigWidgetBase::slotAddPPPath(): Not implemented yet" );
00174 }
00175 
00176 void CCConfigWidgetBase::slotEnableCC()
00177 {
00178     qWarning( "CCConfigWidgetBase::slotEnableCC(): Not implemented yet" );
00179 }
00180 
00181 void CCConfigWidgetBase::slotEnableCH()
00182 {
00183     qWarning( "CCConfigWidgetBase::slotEnableCH(): Not implemented yet" );
00184 }
00185 
00186 void CCConfigWidgetBase::slotEnableChooseFiles(bool)
00187 {
00188     qWarning( "CCConfigWidgetBase::slotEnableChooseFiles(bool): Not implemented yet" );
00189 }
00190 
00191 void CCConfigWidgetBase::slotEnablePCS()
00192 {
00193     qWarning( "CCConfigWidgetBase::slotEnablePCS(): Not implemented yet" );
00194 }
00195 
00196 void CCConfigWidgetBase::slotEnablePP()
00197 {
00198     qWarning( "CCConfigWidgetBase::slotEnablePP(): Not implemented yet" );
00199 }
00200 
00201 void CCConfigWidgetBase::slotRemovePPPath()
00202 {
00203     qWarning( "CCConfigWidgetBase::slotRemovePPPath(): Not implemented yet" );
00204 }
00205 
00206 void CCConfigWidgetBase::slotSelectTemplateGroup(const QString&)
00207 {
00208     qWarning( "CCConfigWidgetBase::slotSelectTemplateGroup(const QString&): Not implemented yet" );
00209 }
00210 
00211 void CCConfigWidgetBase::slotSetCHWindow()
00212 {
00213     qWarning( "CCConfigWidgetBase::slotSetCHWindow(): Not implemented yet" );
00214 }
00215 
00216 void CCConfigWidgetBase::slotNewPCS()
00217 {
00218     qWarning( "CCConfigWidgetBase::slotNewPCS(): Not implemented yet" );
00219 }
00220 
00221 #include "ccconfigwidgetbase.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:28 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003