KDevelop API Documentation

parts/doctreeview/doctreeprojectconfigwidgetbase.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 './doctreeprojectconfigwidgetbase.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:21:24 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 "doctreeprojectconfigwidgetbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qlabel.h> 00017 #include <kurlrequester.h> 00018 #include <qheader.h> 00019 #include <klistview.h> 00020 #include <qlayout.h> 00021 #include <qtooltip.h> 00022 #include <qwhatsthis.h> 00023 00024 /* 00025 * Constructs a DocTreeProjectConfigWidgetBase as a child of 'parent', with the 00026 * name 'name' and widget flags set to 'f'. 00027 */ 00028 DocTreeProjectConfigWidgetBase::DocTreeProjectConfigWidgetBase( QWidget* parent, const char* name, WFlags fl ) 00029 : QWidget( parent, name, fl ) 00030 { 00031 if ( !name ) 00032 setName( "doctreeview_project_config_widget" ); 00033 doctreeview_project_config_widgetLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "doctreeview_project_config_widgetLayout"); 00034 00035 layout1 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "layout1"); 00036 00037 projectdocdirLabel = new QLabel( this, "projectdocdirLabel" ); 00038 layout1->addWidget( projectdocdirLabel ); 00039 00040 userdocdirEdit = new KURLRequester( this, "userdocdirEdit" ); 00041 layout1->addWidget( userdocdirEdit ); 00042 00043 userdocdirLabel = new QLabel( this, "userdocdirLabel" ); 00044 layout1->addWidget( userdocdirLabel ); 00045 00046 apidocdirEdit = new KURLRequester( this, "apidocdirEdit" ); 00047 layout1->addWidget( apidocdirEdit ); 00048 00049 doctreeview_project_config_widgetLayout->addLayout( layout1, 0, 0 ); 00050 00051 docListView = new KListView( this, "docListView" ); 00052 docListView->setMinimumSize( QSize( 320, 260 ) ); 00053 docListView->setFocusPolicy( KListView::WheelFocus ); 00054 00055 doctreeview_project_config_widgetLayout->addWidget( docListView, 2, 0 ); 00056 00057 displayedDocsLabel = new QLabel( this, "displayedDocsLabel" ); 00058 00059 doctreeview_project_config_widgetLayout->addWidget( displayedDocsLabel, 1, 0 ); 00060 languageChange(); 00061 resize( QSize(577, 430).expandedTo(minimumSizeHint()) ); 00062 clearWState( WState_Polished ); 00063 00064 // buddies 00065 projectdocdirLabel->setBuddy( userdocdirEdit ); 00066 userdocdirLabel->setBuddy( apidocdirEdit ); 00067 displayedDocsLabel->setBuddy( docListView ); 00068 } 00069 00070 /* 00071 * Destroys the object and frees any allocated resources 00072 */ 00073 DocTreeProjectConfigWidgetBase::~DocTreeProjectConfigWidgetBase() 00074 { 00075 // no need to delete child widgets, Qt does it all for us 00076 } 00077 00078 /* 00079 * Sets the strings of the subwidgets using the current 00080 * language. 00081 */ 00082 void DocTreeProjectConfigWidgetBase::languageChange() 00083 { 00084 setCaption( tr2i18n( "Form1" ) ); 00085 projectdocdirLabel->setText( tr2i18n( "Location of project &user documentation:" ) ); 00086 userdocdirLabel->setText( tr2i18n( "Location of project &API documentation:" ) ); 00087 QWhatsThis::add( docListView, tr2i18n( "This view shows all the globaly installed documentation. Use checkboxes to control the use of each documentation item in the current project. To add or remove documentation to this list, use Settings->Configure KDevelop...->Documentation Tree" ) ); 00088 displayedDocsLabel->setText( tr2i18n( "Displayed documents in documentation &browser:" ) ); 00089 } 00090 00091 #include "doctreeprojectconfigwidgetbase.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:39:11 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003