KDevelop API Documentation

settingsdialogbase.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 './settingsdialogbase.ui'
00005 **
00006 ** Created: Tue Mar 22 23:51:59 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 "settingsdialogbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <klistbox.h>
00016 #include <qlabel.h>
00017 #include <kcombobox.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a SettingsDialogBase as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 SettingsDialogBase::SettingsDialogBase( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "SettingsDialogBase" );
00031     SettingsDialogBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "SettingsDialogBaseLayout"); 
00032 
00033     qtListBox = new KListBox( this, "qtListBox" );
00034 
00035     SettingsDialogBaseLayout->addMultiCellWidget( qtListBox, 0, 0, 0, 1 );
00036     spacer2 = new QSpacerItem( 41, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00037     SettingsDialogBaseLayout->addItem( spacer2, 1, 0 );
00038 
00039     layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); 
00040 
00041     textLabel1 = new QLabel( this, "textLabel1" );
00042     textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
00043     layout2->addWidget( textLabel1 );
00044 
00045     qtConfiguration = new KComboBox( FALSE, this, "qtConfiguration" );
00046     qtConfiguration->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, qtConfiguration->sizePolicy().hasHeightForWidth() ) );
00047     layout2->addWidget( qtConfiguration );
00048 
00049     SettingsDialogBaseLayout->addLayout( layout2, 1, 1 );
00050     languageChange();
00051     resize( QSize(394, 340).expandedTo(minimumSizeHint()) );
00052     clearWState( WState_Polished );
00053 
00054     // signals and slots connections
00055     connect( qtListBox, SIGNAL( clicked(QListBoxItem*) ), this, SLOT( slotSelectionChanged(QListBoxItem*) ) );
00056 }
00057 
00058 /*
00059  *  Destroys the object and frees any allocated resources
00060  */
00061 SettingsDialogBase::~SettingsDialogBase()
00062 {
00063     // no need to delete child widgets, Qt does it all for us
00064 }
00065 
00066 /*
00067  *  Sets the strings of the subwidgets using the current
00068  *  language.
00069  */
00070 void SettingsDialogBase::languageChange()
00071 {
00072     textLabel1->setText( tr2i18n( "Configuration:" ) );
00073 }
00074 
00075 void SettingsDialogBase::slotSelectionChanged(QListBoxItem*)
00076 {
00077     qWarning( "SettingsDialogBase::slotSelectionChanged(QListBoxItem*): Not implemented yet" );
00078 }
00079 
00080 #include "settingsdialogbase.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:47 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003