KDevelop API Documentation

filepropspagebase.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 './filepropspagebase.ui'
00005 **
00006 ** Created: Tue Mar 22 23:45:33 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "filepropspagebase.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qpushbutton.h>
00017 #include <qgroupbox.h>
00018 #include <qlabel.h>
00019 #include <qlineedit.h>
00020 #include <qlistbox.h>
00021 #include <qmultilineedit.h>
00022 #include <qlayout.h>
00023 #include <qtooltip.h>
00024 #include <qwhatsthis.h>
00025 
00026 /*
00027  *  Constructs a FilePropsPageBase as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 FilePropsPageBase::FilePropsPageBase( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034     setName( "Form1" );
00035     Form1Layout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "Form1Layout"); 
00036 
00037     GroupBox7 = new QGroupBox( this, "GroupBox7" );
00038     GroupBox7->setColumnLayout(0, Qt::Vertical );
00039     GroupBox7->layout()->setSpacing( KDialog::spacingHint() );
00040     GroupBox7->layout()->setMargin( KDialog::marginHint() );
00041     GroupBox7Layout = new QGridLayout( GroupBox7->layout() );
00042     GroupBox7Layout->setAlignment( Qt::AlignTop );
00043 
00044     TextLabel1_2 = new QLabel( GroupBox7, "TextLabel1_2" );
00045 
00046     GroupBox7Layout->addWidget( TextLabel1_2, 0, 0 );
00047 
00048     classname_edit = new QLineEdit( GroupBox7, "classname_edit" );
00049 
00050     GroupBox7Layout->addWidget( classname_edit, 1, 0 );
00051 
00052     TextLabel2_2 = new QLabel( GroupBox7, "TextLabel2_2" );
00053 
00054     GroupBox7Layout->addWidget( TextLabel2_2, 2, 0 );
00055 
00056     baseclass_edit = new QLineEdit( GroupBox7, "baseclass_edit" );
00057 
00058     GroupBox7Layout->addWidget( baseclass_edit, 3, 0 );
00059 
00060     headerfile_edit = new QLineEdit( GroupBox7, "headerfile_edit" );
00061 
00062     GroupBox7Layout->addWidget( headerfile_edit, 1, 1 );
00063 
00064     implfile_label = new QLabel( GroupBox7, "implfile_label" );
00065 
00066     GroupBox7Layout->addWidget( implfile_label, 2, 1 );
00067 
00068     headerfile_label = new QLabel( GroupBox7, "headerfile_label" );
00069 
00070     GroupBox7Layout->addWidget( headerfile_label, 0, 1 );
00071 
00072     implfile_edit = new QLineEdit( GroupBox7, "implfile_edit" );
00073 
00074     GroupBox7Layout->addWidget( implfile_edit, 3, 1 );
00075 
00076     Form1Layout->addMultiCellWidget( GroupBox7, 2, 2, 0, 1 );
00077 
00078     TextLabel5 = new QLabel( this, "TextLabel5" );
00079 
00080     Form1Layout->addWidget( TextLabel5, 0, 0 );
00081 
00082     TextLabel6 = new QLabel( this, "TextLabel6" );
00083 
00084     Form1Layout->addWidget( TextLabel6, 0, 1 );
00085 
00086     classes_listbox = new QListBox( this, "classes_listbox" );
00087     classes_listbox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, classes_listbox->sizePolicy().hasHeightForWidth() ) );
00088 
00089     Form1Layout->addWidget( classes_listbox, 1, 0 );
00090 
00091     desc_textview = new QMultiLineEdit( this, "desc_textview" );
00092     desc_textview->setEnabled( TRUE );
00093     desc_textview->setWordWrap( QMultiLineEdit::WidgetWidth );
00094     desc_textview->setReadOnly( TRUE );
00095 
00096     Form1Layout->addWidget( desc_textview, 1, 1 );
00097     languageChange();
00098     resize( QSize(410, 366).expandedTo(minimumSizeHint()) );
00099     clearWState( WState_Polished );
00100 
00101     // signals and slots connections
00102     connect( classname_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( slotClassnameChanged(const QString&) ) );
00103     connect( classes_listbox, SIGNAL( mouseButtonClicked(int,QListBoxItem*,const QPoint&) ), this, SLOT( slotSelectionChanged() ) );
00104 
00105     // tab order
00106     setTabOrder( classes_listbox, classname_edit );
00107     setTabOrder( classname_edit, headerfile_edit );
00108     setTabOrder( headerfile_edit, baseclass_edit );
00109     setTabOrder( baseclass_edit, implfile_edit );
00110 }
00111 
00112 /*
00113  *  Destroys the object and frees any allocated resources
00114  */
00115 FilePropsPageBase::~FilePropsPageBase()
00116 {
00117     // no need to delete child widgets, Qt does it all for us
00118 }
00119 
00120 /*
00121  *  Sets the strings of the subwidgets using the current
00122  *  language.
00123  */
00124 void FilePropsPageBase::languageChange()
00125 {
00126     setCaption( tr2i18n( "Form1" ) );
00127     GroupBox7->setTitle( tr2i18n( "Customize" ) );
00128     TextLabel1_2->setText( tr2i18n( "Class name:" ) );
00129     TextLabel2_2->setText( tr2i18n( "Base class:" ) );
00130     implfile_label->setText( tr2i18n( "Implementation file:" ) );
00131     headerfile_label->setText( tr2i18n( "Header file:" ) );
00132     TextLabel5->setText( tr2i18n( "Classes:" ) );
00133     TextLabel6->setText( tr2i18n( "Description:" ) );
00134     desc_textview->setText( QString::null );
00135 }
00136 
00137 void FilePropsPageBase::slotSelectionChanged()
00138 {
00139     qWarning( "FilePropsPageBase::slotSelectionChanged(): Not implemented yet" );
00140 }
00141 
00142 void FilePropsPageBase::slotClassnameChanged(const QString&)
00143 {
00144     qWarning( "FilePropsPageBase::slotClassnameChanged(const QString&): Not implemented yet" );
00145 }
00146 
00147 #include "filepropspagebase.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:53 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003