author | ulf69 <ulf69> | 2004-09-15 17:53:22 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-09-15 17:53:22 (UTC) |
commit | d3925ba5bd25224bc4a60d3d6a107c464994a1ea (patch) (side-by-side diff) | |
tree | 60f69da1d2b79ee3081e7ef5c09a46470ca6eda0 /pwmanager/pwmanager/getmasterpwwnd.cpp | |
parent | ce83a3479d23b9e8a59c745ccd0a0b14f64ef4e8 (diff) | |
download | kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.zip kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.gz kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.bz2 |
initial revision
Diffstat (limited to 'pwmanager/pwmanager/getmasterpwwnd.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/getmasterpwwnd.cpp | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/getmasterpwwnd.cpp b/pwmanager/pwmanager/getmasterpwwnd.cpp new file mode 100644 index 0000000..fb7c8b1 --- a/dev/null +++ b/pwmanager/pwmanager/getmasterpwwnd.cpp @@ -0,0 +1,88 @@ +/**************************************************************************** +** Form implementation generated from reading ui file 'getmasterpwwnd.ui' +** +** Created: Tue Sep 14 15:33:57 2004 +** by: The User Interface Compiler ($Id$) +** +** WARNING! All changes made in this file will be lost! +****************************************************************************/ + +#include "getmasterpwwnd.h" + +#include <qvariant.h> +#include <qpushbutton.h> +#include <qlabel.h> +#include <qlineedit.h> +#include <qlayout.h> +#include <qtooltip.h> +#include <qwhatsthis.h> + +/* + * Constructs a getMasterPwWnd as 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. + */ +getMasterPwWnd::getMasterPwWnd( QWidget* parent, const char* name, bool modal, WFlags fl ) + : QDialog( parent, name, modal, fl ) +{ + if ( !name ) + setName( "getMasterPwWnd" ); + + okButton = new QPushButton( this, "okButton" ); + okButton->setGeometry( QRect( 10, 80, 107, 27 ) ); + + cancelButton = new QPushButton( this, "cancelButton" ); + cancelButton->setGeometry( QRect( 240, 80, 107, 27 ) ); + + textLabel1 = new QLabel( this, "textLabel1" ); + textLabel1->setGeometry( QRect( 10, 20, 340, 20 ) ); + textLabel1->setAlignment( int( QLabel::WordBreak | QLabel::AlignCenter ) ); + + pwLineEdit = new QLineEdit( this, "pwLineEdit" ); + pwLineEdit->setGeometry( QRect( 10, 50, 340, 20 ) ); + pwLineEdit->setEchoMode( QLineEdit::Password ); + languageChange(); + resize( QSize(361, 119).expandedTo(minimumSizeHint()) ); + clearWState( WState_Polished ); + + // signals and slots connections + connect( okButton, SIGNAL( clicked() ), this, SLOT( okButton_slot() ) ); + connect( cancelButton, SIGNAL( clicked() ), this, SLOT( cancelButton_slot() ) ); + + // tab order + setTabOrder( pwLineEdit, okButton ); + setTabOrder( okButton, cancelButton ); +} + +/* + * Destroys the object and frees any allocated resources + */ +getMasterPwWnd::~getMasterPwWnd() +{ + // no need to delete child widgets, Qt does it all for us +} + +/* + * Sets the strings of the subwidgets using the current + * language. + */ +void getMasterPwWnd::languageChange() +{ + setCaption( tr( "Master-password" ) ); + okButton->setText( tr( "&OK" ) ); + cancelButton->setText( tr( "&Cancel" ) ); + textLabel1->setText( tr( "Please enter the master-password:" ) ); +} + +void getMasterPwWnd::okButton_slot() +{ + qWarning( "getMasterPwWnd::okButton_slot(): Not implemented yet" ); +} + +void getMasterPwWnd::cancelButton_slot() +{ + qWarning( "getMasterPwWnd::cancelButton_slot(): Not implemented yet" ); +} + |