KDevelop API Documentation

editors/qeditor/indentconfigpage.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 './indentconfigpage.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:36:33 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 "indentconfigpage.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qpushbutton.h> 00017 #include <qspinbox.h> 00018 #include <qlabel.h> 00019 #include <qlayout.h> 00020 #include <qtooltip.h> 00021 #include <qwhatsthis.h> 00022 #include "./indentconfigpage.ui.h" 00023 00024 /* 00025 * Constructs a IndentConfigPage as a child of 'parent', with the 00026 * name 'name' and widget flags set to 'f'. 00027 */ 00028 IndentConfigPage::IndentConfigPage( QWidget* parent, const char* name, WFlags fl ) 00029 : QWidget( parent, name, fl ) 00030 { 00031 if ( !name ) 00032 setName( "IndentConfigPage" ); 00033 IndentConfigPageLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "IndentConfigPageLayout"); 00034 00035 Layout1 = new QGridLayout( 0, 1, 1, 0, KDialog::spacingHint(), "Layout1"); 00036 00037 spinCommentOffset = new QSpinBox( this, "spinCommentOffset" ); 00038 00039 Layout1->addWidget( spinCommentOffset, 3, 1 ); 00040 00041 spinIndentSize = new QSpinBox( this, "spinIndentSize" ); 00042 00043 Layout1->addWidget( spinIndentSize, 1, 1 ); 00044 00045 TextLabel1 = new QLabel( this, "TextLabel1" ); 00046 00047 Layout1->addWidget( TextLabel1, 0, 0 ); 00048 00049 TextLabel2 = new QLabel( this, "TextLabel2" ); 00050 00051 Layout1->addWidget( TextLabel2, 1, 0 ); 00052 00053 TextLabel3 = new QLabel( this, "TextLabel3" ); 00054 00055 Layout1->addWidget( TextLabel3, 2, 0 ); 00056 00057 spinTabSize = new QSpinBox( this, "spinTabSize" ); 00058 00059 Layout1->addWidget( spinTabSize, 0, 1 ); 00060 00061 spinContinuationSize = new QSpinBox( this, "spinContinuationSize" ); 00062 00063 Layout1->addWidget( spinContinuationSize, 2, 1 ); 00064 00065 TextLabel4 = new QLabel( this, "TextLabel4" ); 00066 00067 Layout1->addWidget( TextLabel4, 3, 0 ); 00068 00069 IndentConfigPageLayout->addLayout( Layout1, 0, 0 ); 00070 Spacer1 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00071 IndentConfigPageLayout->addItem( Spacer1, 0, 1 ); 00072 Spacer2 = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00073 IndentConfigPageLayout->addItem( Spacer2, 1, 0 ); 00074 languageChange(); 00075 resize( QSize(369, 310).expandedTo(minimumSizeHint()) ); 00076 clearWState( WState_Polished ); 00077 00078 // signals and slots connections 00079 init(); 00080 } 00081 00082 /* 00083 * Destroys the object and frees any allocated resources 00084 */ 00085 IndentConfigPage::~IndentConfigPage() 00086 { 00087 destroy(); 00088 // no need to delete child widgets, Qt does it all for us 00089 } 00090 00091 /* 00092 * Sets the strings of the subwidgets using the current 00093 * language. 00094 */ 00095 void IndentConfigPage::languageChange() 00096 { 00097 setCaption( tr2i18n( "Form1" ) ); 00098 TextLabel1->setText( tr2i18n( "Tab size:" ) ); 00099 TextLabel2->setText( tr2i18n( "Indent size:" ) ); 00100 TextLabel3->setText( tr2i18n( "Continuation size:" ) ); 00101 TextLabel4->setText( tr2i18n( "Comment offset:" ) ); 00102 } 00103 00104 #include "indentconfigpage.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 Wed Oct 6 17:38:55 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003