Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

selectpart.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './selectpart.ui'
00004 **
00005 ** Created: Sa Mär 27 00:56:10 2004
00006 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.2.3   edited May 19 14:22 $)
00007 **
00008 ** WARNING! All changes made in this file will be lost!
00009 ****************************************************************************/
00010 
00011 #include "selectpart.h"
00012 
00013 #include <qvariant.h>
00014 #include <qsqlquery.h>
00015 #include <qptrlist.h>
00016 #include <qpushbutton.h>
00017 #include <qlabel.h>
00018 #include <qlineedit.h>
00019 #include <qheader.h>
00020 #include <qlistview.h>
00021 #include <qlayout.h>
00022 #include <qtooltip.h>
00023 #include <qwhatsthis.h>
00024 #include <qimage.h>
00025 #include <qpixmap.h>
00026 
00027 #include "liturl.h"
00028 #include "notetreeitem.h"
00029 #include "global.h"
00030 #include "./selectpart.ui.h"
00031 /*
00032  *  Constructs a SelectPart as a child of 'parent', with the
00033  *  name 'name' and widget flags set to 'f'.
00034  *
00035  *  The dialog will by default be modeless, unless you set 'modal' to
00036  *  TRUE to construct a modal dialog.
00037  */
00038 SelectPart::SelectPart( QWidget* parent, const char* name, bool modal, WFlags fl )
00039     : QDialog( parent, name, modal, fl )
00040 {
00041     if ( !name )
00042         setName( "SelectPart" );
00043     setSizeGripEnabled( TRUE );
00044     SelectPartLayout = new QVBoxLayout( this, 11, 6, "SelectPartLayout"); 
00045 
00046     layout8 = new QVBoxLayout( 0, 0, 6, "layout8"); 
00047 
00048     layout7 = new QHBoxLayout( 0, 0, 6, "layout7"); 
00049 
00050     textLabel1 = new QLabel( this, "textLabel1" );
00051     layout7->addWidget( textLabel1 );
00052 
00053     lineEdit2 = new QLineEdit( this, "lineEdit2" );
00054     layout7->addWidget( lineEdit2 );
00055     layout8->addLayout( layout7 );
00056 
00057     parts = new QListView( this, "parts" );
00058     parts->addColumn( tr2i18n( "Parts" ) );
00059     parts->setRootIsDecorated( TRUE );
00060     layout8->addWidget( parts );
00061 
00062     Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
00063     QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00064     Layout1->addItem( spacer );
00065 
00066     buttonOk = new QPushButton( this, "buttonOk" );
00067     buttonOk->setAutoDefault( TRUE );
00068     buttonOk->setDefault( TRUE );
00069     Layout1->addWidget( buttonOk );
00070 
00071     buttonCancel = new QPushButton( this, "buttonCancel" );
00072     buttonCancel->setAutoDefault( TRUE );
00073     Layout1->addWidget( buttonCancel );
00074     layout8->addLayout( Layout1 );
00075     SelectPartLayout->addLayout( layout8 );
00076     languageChange();
00077     resize( QSize(511, 291).expandedTo(minimumSizeHint()) );
00078     clearWState( WState_Polished );
00079 
00080     // signals and slots connections
00081     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00082     connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00083     init();
00084 }
00085 
00086 /*
00087  *  Destroys the object and frees any allocated resources
00088  */
00089 SelectPart::~SelectPart()
00090 {
00091     // no need to delete child widgets, Qt does it all for us
00092 }
00093 
00094 /*
00095  *  Sets the strings of the subwidgets using the current
00096  *  language.
00097  */
00098 void SelectPart::languageChange()
00099 {
00100     setCaption( tr2i18n( "MyDialog" ) );
00101     textLabel1->setText( tr2i18n( "Search " ) );
00102     parts->header()->setLabel( 0, tr2i18n( "Parts" ) );
00103     buttonOk->setText( tr2i18n( "&OK" ) );
00104     buttonOk->setAccel( QKeySequence( QString::null ) );
00105     buttonCancel->setText( tr2i18n( "&Cancel" ) );
00106     buttonCancel->setAccel( QKeySequence( QString::null ) );
00107 }
00108 
00109 #include "selectpart.moc"

Generated on Sat Mar 27 19:20:44 2004 for Literature by doxygen 1.3.6-20040222