languages/cpp/pcsimporter/qtimporter/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 <qlabel.h>
00017
#include <kcombobox.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
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
00055 connect( qtListBox, SIGNAL( clicked(
QListBoxItem*) ),
this, SLOT(
slotSelectionChanged(
QListBoxItem*) ) );
00056 }
00057
00058
00059
00060
00061
SettingsDialogBase::~SettingsDialogBase()
00062 {
00063
00064 }
00065
00066
00067
00068
00069
00070
void SettingsDialogBase::languageChange()
00071 {
00072 setCaption( tr2i18n(
"Form1" ) );
00073
textLabel1->setText( tr2i18n(
"Configuration:" ) );
00074 }
00075
00076
void SettingsDialogBase::slotSelectionChanged(
QListBoxItem*)
00077 {
00078 qWarning(
"SettingsDialogBase::slotSelectionChanged(QListBoxItem*): Not implemented yet" );
00079 }
00080
00081
#include "settingsdialogbase.moc"
This file is part of the documentation for KDevelop Version 3.0.4.