KDevelop API Documentation

parts/doctreeview/librarydocdlgbase.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 './librarydocdlgbase.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:49:46 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 "librarydocdlgbase.h" 00013 00014 #include <qvariant.h> 00015 #include <klineedit.h> 00016 #include <kurlrequester.h> 00017 #include <kdialog.h> 00018 #include <qlabel.h> 00019 #include <qpushbutton.h> 00020 #include <qlayout.h> 00021 #include <qtooltip.h> 00022 #include <qwhatsthis.h> 00023 00024 /* 00025 * Constructs a LibraryDocDlgBase 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 LibraryDocDlgBase::LibraryDocDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl ) 00032 : QDialog( parent, name, modal, fl ) 00033 { 00034 if ( !name ) 00035 setName( "LibraryDocDlgBase" ); 00036 setSizeGripEnabled( TRUE ); 00037 LibraryDocDlgBaseLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "LibraryDocDlgBaseLayout"); 00038 00039 TextLabel3 = new QLabel( this, "TextLabel3" ); 00040 00041 LibraryDocDlgBaseLayout->addWidget( TextLabel3, 2, 0 ); 00042 00043 layout3 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout3"); 00044 spacer3_2 = new QSpacerItem( 106, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00045 layout3->addItem( spacer3_2 ); 00046 00047 buttonOk = new QPushButton( this, "buttonOk" ); 00048 buttonOk->setAutoDefault( TRUE ); 00049 buttonOk->setDefault( TRUE ); 00050 layout3->addWidget( buttonOk ); 00051 00052 buttonDefault = new QPushButton( this, "buttonDefault" ); 00053 layout3->addWidget( buttonDefault ); 00054 00055 buttonCancel = new QPushButton( this, "buttonCancel" ); 00056 buttonCancel->setAutoDefault( TRUE ); 00057 layout3->addWidget( buttonCancel ); 00058 00059 LibraryDocDlgBaseLayout->addMultiCellLayout( layout3, 4, 4, 0, 1 ); 00060 Spacer7 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00061 LibraryDocDlgBaseLayout->addItem( Spacer7, 3, 1 ); 00062 00063 TextLabel1 = new QLabel( this, "TextLabel1" ); 00064 TextLabel1->setFrameShape( QLabel::MShape ); 00065 TextLabel1->setFrameShadow( QLabel::MShadow ); 00066 00067 LibraryDocDlgBaseLayout->addWidget( TextLabel1, 0, 0 ); 00068 00069 TextLabel2 = new QLabel( this, "TextLabel2" ); 00070 00071 LibraryDocDlgBaseLayout->addWidget( TextLabel2, 1, 0 ); 00072 00073 libName = new KLineEdit( this, "libName" ); 00074 libName->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, libName->sizePolicy().hasHeightForWidth() ) ); 00075 libName->setMinimumSize( QSize( 0, 20 ) ); 00076 libName->setFocusPolicy( KLineEdit::StrongFocus ); 00077 00078 LibraryDocDlgBaseLayout->addWidget( libName, 0, 1 ); 00079 00080 docLocal = new KURLRequester( this, "docLocal" ); 00081 docLocal->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, docLocal->sizePolicy().hasHeightForWidth() ) ); 00082 docLocal->setMinimumSize( QSize( 0, 26 ) ); 00083 docLocal->setFocusPolicy( KURLRequester::StrongFocus ); 00084 00085 LibraryDocDlgBaseLayout->addWidget( docLocal, 1, 1 ); 00086 00087 libSource = new KURLRequester( this, "libSource" ); 00088 libSource->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, libSource->sizePolicy().hasHeightForWidth() ) ); 00089 libSource->setMinimumSize( QSize( 0, 26 ) ); 00090 libSource->setFocusPolicy( KURLRequester::StrongFocus ); 00091 00092 LibraryDocDlgBaseLayout->addWidget( libSource, 2, 1 ); 00093 languageChange(); 00094 resize( QSize(462, 170).expandedTo(minimumSizeHint()) ); 00095 clearWState( WState_Polished ); 00096 00097 // signals and slots connections 00098 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00099 connect( buttonDefault, SIGNAL( clicked() ), this, SLOT( slotDefault() ) ); 00100 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00101 00102 // tab order 00103 setTabOrder( libName, docLocal ); 00104 setTabOrder( docLocal, libSource ); 00105 setTabOrder( libSource, buttonOk ); 00106 setTabOrder( buttonOk, buttonDefault ); 00107 setTabOrder( buttonDefault, buttonCancel ); 00108 00109 // buddies 00110 TextLabel3->setBuddy( libSource ); 00111 TextLabel1->setBuddy( libName ); 00112 TextLabel2->setBuddy( docLocal ); 00113 } 00114 00115 /* 00116 * Destroys the object and frees any allocated resources 00117 */ 00118 LibraryDocDlgBase::~LibraryDocDlgBase() 00119 { 00120 // no need to delete child widgets, Qt does it all for us 00121 } 00122 00123 /* 00124 * Sets the strings of the subwidgets using the current 00125 * language. 00126 */ 00127 void LibraryDocDlgBase::languageChange() 00128 { 00129 setCaption( tr2i18n( "Library Documentation" ) ); 00130 TextLabel3->setText( tr2i18n( "Library &source path:" ) ); 00131 buttonOk->setText( tr2i18n( "&OK" ) ); 00132 buttonDefault->setText( tr2i18n( "De&fault" ) ); 00133 buttonCancel->setText( tr2i18n( "&Cancel" ) ); 00134 TextLabel1->setText( tr2i18n( "&Library name:" ) ); 00135 TextLabel2->setText( tr2i18n( "&Documentation path:" ) ); 00136 } 00137 00138 QString LibraryDocDlgBase::url() 00139 { 00140 qWarning( "LibraryDocDlgBase::url(): Not implemented yet" ); 00141 return QString(); 00142 } 00143 00144 QString LibraryDocDlgBase::path() 00145 { 00146 qWarning( "LibraryDocDlgBase::path(): Not implemented yet" ); 00147 return QString(); 00148 } 00149 00150 #include "librarydocdlgbase.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:51 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003