settingsdialogbase.cpp
Go to the documentation of this file.00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
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
00024
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
00051 connect( kdeListBox, SIGNAL( clicked(QListBoxItem*) ), this, SLOT( slotSelectionChanged(QListBoxItem*) ) );
00052 }
00053
00054
00055
00056
00057 SettingsDialogBase::~SettingsDialogBase()
00058 {
00059
00060 }
00061
00062
00063
00064
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"
This file is part of the documentation for KDevelop Version 3.1.2.