00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
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
00026
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
00079 init();
00080 }
00081
00082
00083
00084
00085 IndentConfigPage::~IndentConfigPage()
00086 {
00087 destroy();
00088
00089 }
00090
00091
00092
00093
00094
00095 void IndentConfigPage::languageChange()
00096 {
00097 TextLabel1->setText( tr2i18n( "Tab size:" ) );
00098 TextLabel2->setText( tr2i18n( "Indent size:" ) );
00099 TextLabel3->setText( tr2i18n( "Continuation size:" ) );
00100 TextLabel4->setText( tr2i18n( "Comment offset:" ) );
00101 }
00102
00103 #include "indentconfigpage.moc"