KDevelop API Documentation

parts/uimode/uichooser.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 './uichooser.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:51:52 2004 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $) 00008 ** 00009 ** WARNING! All changes made in this file will be lost! 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 * Constructs a UIChooser as a child of 'parent', with the 00025 * name 'name' and widget flags set to 'f'. 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 * Destroys the object and frees any allocated resources 00062 */ 00063 UIChooser::~UIChooser() 00064 { 00065 // no need to delete child widgets, Qt does it all for us 00066 } 00067 00068 /* 00069 * Sets the strings of the subwidgets using the current 00070 * language. 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"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:52 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003