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:52:05 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 <qcombobox.h>
00017 #include <qlabel.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     kdeListBox = new KListBox( this, "kdeListBox" );
00034 
00035     SettingsDialogBaseLayout->addMultiCellWidget( kdeListBox, 0, 0, 0, 2 );
00036 
00037     cbParsingScope = new QComboBox( FALSE, this, "cbParsingScope" );
00038 
00039     SettingsDialogBaseLayout->addWidget( cbParsingScope, 1, 2 );
00040     spacer1 = new QSpacerItem( 120, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00041     SettingsDialogBaseLayout->addItem( spacer1, 1, 0 );
00042 
00043     textLabel1 = new QLabel( this, "textLabel1" );
00044 
00045     SettingsDialogBaseLayout->addWidget( textLabel1, 1, 1 );
00046     languageChange();
00047     resize( QSize(394, 342).expandedTo(minimumSizeHint()) );
00048     clearWState( WState_Polished );
00049 
00050     // signals and slots connections
00051     connect( kdeListBox, SIGNAL( clicked(QListBoxItem*) ), this, SLOT( slotSelectionChanged(QListBoxItem*) ) );
00052 }
00053 
00054 /*
00055  *  Destroys the object and frees any allocated resources
00056  */
00057 SettingsDialogBase::~SettingsDialogBase()
00058 {
00059     // no need to delete child widgets, Qt does it all for us
00060 }
00061 
00062 /*
00063  *  Sets the strings of the subwidgets using the current
00064  *  language.
00065  */
00066 void SettingsDialogBase::languageChange()
00067 {
00068     cbParsingScope->clear();
00069     cbParsingScope->insertItem( tr2i18n( "KDE Libs Headers" ) );
00070     cbParsingScope->insertItem( tr2i18n( "All KDE Headers" ) );
00071     textLabel1->setText( tr2i18n( "Parse:" ) );
00072 }
00073 
00074 void SettingsDialogBase::slotSelectionChanged(QListBoxItem*)
00075 {
00076     qWarning( "SettingsDialogBase::slotSelectionChanged(QListBoxItem*): Not implemented yet" );
00077 }
00078 
00079 #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