parts/uimode/uichooser.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 "uichooser.h"
00013
00014
#include <qvariant.h>
00015
#include <kdialog.h>
00016
#include <qpushbutton.h>
00017
#include <qbuttongroup.h>
00018
#include <qradiobutton.h>
00019
#include <qlayout.h>
00020
#include <qtooltip.h>
00021
#include <qwhatsthis.h>
00022
00023
00024
00025
00026
00027 UIChooser::UIChooser(
QWidget* parent,
const char* name, WFlags fl )
00028 :
QWidget( parent, name, fl )
00029 {
00030
if ( !name )
00031 setName(
"UIChooser" );
00032
UIChooserLayout =
new QVBoxLayout(
this, KDialog::marginHint(), KDialog::spacingHint(),
"UIChooserLayout");
00033
00034
ButtonGroup1 =
new QButtonGroup(
this,
"ButtonGroup1" );
00035
ButtonGroup1->setColumnLayout(0, Qt::Vertical );
00036
ButtonGroup1->layout()->setSpacing( KDialog::spacingHint() );
00037
ButtonGroup1->layout()->setMargin( KDialog::marginHint() );
00038
ButtonGroup1Layout =
new QVBoxLayout(
ButtonGroup1->layout() );
00039
ButtonGroup1Layout->setAlignment( Qt::AlignTop );
00040
00041
modeIDEAl =
new QRadioButton(
ButtonGroup1,
"modeIDEAl" );
00042
ButtonGroup1Layout->addWidget(
modeIDEAl );
00043
00044
modeMDI =
new QRadioButton(
ButtonGroup1,
"modeMDI" );
00045
ButtonGroup1Layout->addWidget(
modeMDI );
00046
00047
modeTab =
new QRadioButton(
ButtonGroup1,
"modeTab" );
00048
ButtonGroup1Layout->addWidget(
modeTab );
00049
00050
modeToplevel =
new QRadioButton(
ButtonGroup1,
"modeToplevel" );
00051
ButtonGroup1Layout->addWidget(
modeToplevel );
00052
UIChooserLayout->addWidget(
ButtonGroup1 );
00053
Spacer2 =
new QSpacerItem( 0, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00054
UIChooserLayout->addItem(
Spacer2 );
00055
languageChange();
00056 resize(
QSize(467, 448).expandedTo(minimumSizeHint()) );
00057 clearWState( WState_Polished );
00058 }
00059
00060
00061
00062
00063 UIChooser::~UIChooser()
00064 {
00065
00066 }
00067
00068
00069
00070
00071
00072 void UIChooser::languageChange()
00073 {
00074 setCaption( tr2i18n(
"Form1" ) );
00075
ButtonGroup1->setTitle( tr2i18n(
"Major &User-Interface Mode" ) );
00076
modeIDEAl->setText( tr2i18n(
"I&DEAl window mode" ) );
00077 QWhatsThis::add(
modeIDEAl, tr2i18n(
"This is a clone of the IDEA user interface, similar to the Tabbed pages mode." ) );
00078
modeMDI->setText( tr2i18n(
"C&hildframe window mode" ) );
00079 QWhatsThis::add(
modeMDI, tr2i18n(
"All tool views are initially docked to the mainframe.\n"
00080
"Editor and browser views will live like toplevel windows within a view area of the mainframe.\n"
00081
"A typical example of this user interface mode is MS Visual Studio 6.0." ) );
00082
modeTab->setText( tr2i18n(
"&Tabbed pages mode" ) );
00083 QWhatsThis::add(
modeTab, tr2i18n(
"All tool views are initially docked to the mainframe.\n"
00084
"Editor and browser views will be stacked in a tab window.\n"
00085
"A typical example of this user interface mode is KDEStudio, our friend C++-IDE in the world of KDE." ) );
00086
modeToplevel->setText( tr2i18n(
"To&plevel window mode" ) );
00087 QWhatsThis::add(
modeToplevel, tr2i18n(
"All editor, browser and tool views will be toplevel windows (directly on desktop).\n"
00088
"The main widget contains the menu, toolbars and statusbar, only.\n"
00089
"A typical example of this user interface mode is Borland Delphi 6.0." ) );
00090 }
00091
00092
#include "uichooser.moc"
This file is part of the documentation for KDevelop Version 3.0.4.