1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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" );
}
|