author | llornkcor <llornkcor> | 2002-10-20 14:04:56 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-10-20 14:04:56 (UTC) |
commit | b915686dd38e99df72db332e1ea0b12a0895bdb3 (patch) (side-by-side diff) | |
tree | ac5590b057da22eadc96e44eafad7f4dd27688a5 /noncore/apps/checkbook/qchecknamebase.cpp | |
parent | 6924185b50abfa448daa16a9f7cb6e532ec77ff9 (diff) | |
download | opie-b915686dd38e99df72db332e1ea0b12a0895bdb3.zip opie-b915686dd38e99df72db332e1ea0b12a0895bdb3.tar.gz opie-b915686dd38e99df72db332e1ea0b12a0895bdb3.tar.bz2 |
added ability to delete checkbook account
Diffstat (limited to 'noncore/apps/checkbook/qchecknamebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/qchecknamebase.cpp | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/noncore/apps/checkbook/qchecknamebase.cpp b/noncore/apps/checkbook/qchecknamebase.cpp new file mode 100644 index 0000000..27bebc1 --- a/dev/null +++ b/noncore/apps/checkbook/qchecknamebase.cpp @@ -0,0 +1,81 @@ +/**************************************************************************** +** Form implementation generated from reading ui file 'qchecknamebase.ui' +** +** Created: Wed Sep 18 09:40:57 2002 +** by: The User Interface Compiler (uic) +** +** WARNING! All changes made in this file will be lost! +****************************************************************************/ +#include "qchecknamebase.h" + +#include <qlabel.h> +#include <qpushbutton.h> +#include "qrestrictedline.h" +#include <qlayout.h> +#include <qvariant.h> +#include <qtooltip.h> +#include <qwhatsthis.h> + +/* + * Constructs a QCheckNameBase which is a child of 'parent', with the + * name 'name' and widget flags set to 'f' + * + * The dialog will by default be modeless, unless you set 'modal' to + * TRUE to construct a modal dialog. + */ +QCheckNameBase::QCheckNameBase( QWidget* parent, const char* name, bool modal, WFlags fl ) + : QDialog( parent, name, modal, fl ) +{ + if ( !name ) + setName( "QCheckNameBase" ); + resize( 228, 108 ); + setCaption( tr( "Check Book Name" ) ); + + TextLabel3 = new QLabel( this, "TextLabel3" ); + TextLabel3->setGeometry( QRect( 10, 5, 70, 16 ) ); + QFont TextLabel3_font( TextLabel3->font() ); + TextLabel3_font.setFamily( "BDF-helvetica" ); + TextLabel3_font.setPointSize( 19 ); + TextLabel3_font.setBold( TRUE ); + TextLabel3->setFont( TextLabel3_font ); + TextLabel3->setText( tr( "Name..." ) ); + + TextLabel4 = new QLabel( this, "TextLabel4" ); + TextLabel4->setGeometry( QRect( 10, 25, 210, 25 ) ); + TextLabel4->setText( tr( "Please name your check book.\n(limit: 15 characters):" ) ); + TextLabel4->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); + + cmdDone = new QPushButton( this, "cmdDone" ); + cmdDone->setGeometry( QRect( 75, 80, 75, 25 ) ); + cmdDone->setText( tr( "&Done" ) ); + + leText = new QRestrictedLine( this, "leText" ); + leText->setGeometry( QRect( 5, 51, 216, 25 ) ); + leText->setFocus(); +} + +/* + * Destroys the object and frees any allocated resources + */ +QCheckNameBase::~QCheckNameBase() +{ + // no need to delete child widgets, Qt does it all for us +} + +/* + * Main event handler. Reimplemented to handle application + * font changes + */ +bool QCheckNameBase::event( QEvent* ev ) +{ + bool ret = QDialog::event( ev ); + if ( ev->type() == QEvent::ApplicationFontChange ) { + QFont TextLabel3_font( TextLabel3->font() ); + TextLabel3_font.setFamily( "BDF-helvetica" ); + TextLabel3_font.setPointSize( 19 ); + TextLabel3_font.setBold( TRUE ); + TextLabel3->setFont( TextLabel3_font ); + } + return ret; +} + |