KDevelop API Documentation

editors/qeditor/gotolinedialog.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 './gotolinedialog.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:59:49 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 "gotolinedialog.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qpushbutton.h> 00017 #include <qlabel.h> 00018 #include <qspinbox.h> 00019 #include <qlayout.h> 00020 #include <qtooltip.h> 00021 #include <qwhatsthis.h> 00022 #include "./gotolinedialog.ui.h" 00023 00024 /* 00025 * Constructs a GotoLineDialog as a child of 'parent', with the 00026 * name 'name' and widget flags set to 'f'. 00027 * 00028 * The dialog will by default be modeless, unless you set 'modal' to 00029 * TRUE to construct a modal dialog. 00030 */ 00031 GotoLineDialog::GotoLineDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) 00032 : QDialog( parent, name, modal, fl ) 00033 { 00034 if ( !name ) 00035 setName( "GotoLineDialog" ); 00036 setSizeGripEnabled( TRUE ); 00037 GotoLineDialogLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "GotoLineDialogLayout"); 00038 00039 Layout3 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout3"); 00040 00041 TextLabel2 = new QLabel( this, "TextLabel2" ); 00042 Layout3->addWidget( TextLabel2 ); 00043 00044 spinLineNumber = new QSpinBox( this, "spinLineNumber" ); 00045 spinLineNumber->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, spinLineNumber->sizePolicy().hasHeightForWidth() ) ); 00046 Layout3->addWidget( spinLineNumber ); 00047 GotoLineDialogLayout->addLayout( Layout3 ); 00048 Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00049 GotoLineDialogLayout->addItem( Spacer2 ); 00050 00051 Layout1 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout1"); 00052 Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00053 Layout1->addItem( Horizontal_Spacing2 ); 00054 00055 buttonOk = new QPushButton( this, "buttonOk" ); 00056 buttonOk->setAutoDefault( TRUE ); 00057 buttonOk->setDefault( TRUE ); 00058 Layout1->addWidget( buttonOk ); 00059 00060 buttonCancel = new QPushButton( this, "buttonCancel" ); 00061 buttonCancel->setAutoDefault( TRUE ); 00062 Layout1->addWidget( buttonCancel ); 00063 GotoLineDialogLayout->addLayout( Layout1 ); 00064 languageChange(); 00065 resize( QSize(216, 105).expandedTo(minimumSizeHint()) ); 00066 clearWState( WState_Polished ); 00067 00068 // signals and slots connections 00069 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00070 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00071 init(); 00072 } 00073 00074 /* 00075 * Destroys the object and frees any allocated resources 00076 */ 00077 GotoLineDialog::~GotoLineDialog() 00078 { 00079 destroy(); 00080 // no need to delete child widgets, Qt does it all for us 00081 } 00082 00083 /* 00084 * Sets the strings of the subwidgets using the current 00085 * language. 00086 */ 00087 void GotoLineDialog::languageChange() 00088 { 00089 setCaption( tr2i18n( "Go to Line" ) ); 00090 TextLabel2->setText( tr2i18n( "Line number:" ) ); 00091 buttonOk->setText( tr2i18n( "&OK" ) ); 00092 buttonCancel->setText( tr2i18n( "&Cancel" ) ); 00093 } 00094 00095 #include "gotolinedialog.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:38 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003