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

selectnote.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './selectnote.ui'
00004 **
00005 ** Created: Sa Mär 27 00:56:01 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 "selectnote.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlayout.h>
00016 #include <qtooltip.h>
00017 #include <qwhatsthis.h>
00018 #include <qimage.h>
00019 #include <qpixmap.h>
00020 
00021 #include "notetreeitem.h"
00022 #include "noteoverviewform.h"
00023 #include "./selectnote.ui.h"
00024 /*
00025  *  Constructs a SelectNote 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 SelectNote::SelectNote( QWidget* parent, const char* name, bool modal, WFlags fl )
00032     : QDialog( parent, name, modal, fl )
00033 {
00034     if ( !name )
00035         setName( "SelectNote" );
00036     setSizeGripEnabled( TRUE );
00037     SelectNoteLayout = new QVBoxLayout( this, 11, 6, "SelectNoteLayout"); 
00038 
00039     layout10 = new QVBoxLayout( 0, 0, 6, "layout10"); 
00040 
00041     notes = new NoteOverviewForm( this, "notes" );
00042     layout10->addWidget( notes );
00043 
00044     Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
00045     QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00046     Layout1->addItem( spacer );
00047 
00048     buttonOk = new QPushButton( this, "buttonOk" );
00049     buttonOk->setAutoDefault( TRUE );
00050     buttonOk->setDefault( TRUE );
00051     Layout1->addWidget( buttonOk );
00052 
00053     buttonCancel = new QPushButton( this, "buttonCancel" );
00054     buttonCancel->setAutoDefault( TRUE );
00055     Layout1->addWidget( buttonCancel );
00056     layout10->addLayout( Layout1 );
00057     SelectNoteLayout->addLayout( layout10 );
00058     languageChange();
00059     resize( QSize(745, 502).expandedTo(minimumSizeHint()) );
00060     clearWState( WState_Polished );
00061 
00062     // signals and slots connections
00063     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00064     connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00065     init();
00066 }
00067 
00068 /*
00069  *  Destroys the object and frees any allocated resources
00070  */
00071 SelectNote::~SelectNote()
00072 {
00073     // no need to delete child widgets, Qt does it all for us
00074 }
00075 
00076 /*
00077  *  Sets the strings of the subwidgets using the current
00078  *  language.
00079  */
00080 void SelectNote::languageChange()
00081 {
00082     setCaption( tr2i18n( "MyDialog" ) );
00083     buttonOk->setText( tr2i18n( "&OK" ) );
00084     buttonOk->setAccel( QKeySequence( QString::null ) );
00085     buttonCancel->setText( tr2i18n( "&Cancel" ) );
00086     buttonCancel->setAccel( QKeySequence( QString::null ) );
00087 }
00088 
00089 #include "selectnote.moc"

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