Diffstat (limited to 'pwmanager/pwmanager/subtbledit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/subtbledit.cpp | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/subtbledit.cpp b/pwmanager/pwmanager/subtbledit.cpp new file mode 100644 index 0000000..e4d805c --- a/dev/null +++ b/pwmanager/pwmanager/subtbledit.cpp | |||
@@ -0,0 +1,140 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form implementation generated from reading ui file 'subtbledit.ui' | ||
3 | ** | ||
4 | ** Created: Tue Sep 14 15:44:17 2004 | ||
5 | ** by: The User Interface Compiler ($Id$) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | |||
10 | #include "subtbledit.h" | ||
11 | |||
12 | #include <qvariant.h> | ||
13 | #include <qlabel.h> | ||
14 | #include <qlineedit.h> | ||
15 | #include <qpushbutton.h> | ||
16 | #include <qgroupbox.h> | ||
17 | #include <qlistbox.h> | ||
18 | #include <qlayout.h> | ||
19 | #include <qtooltip.h> | ||
20 | #include <qwhatsthis.h> | ||
21 | |||
22 | /* | ||
23 | * Constructs a subTblEdit as a child of 'parent', with the | ||
24 | * name 'name' and widget flags set to 'f'. | ||
25 | * | ||
26 | * The dialog will by default be modeless, unless you set 'modal' to | ||
27 | * TRUE to construct a modal dialog. | ||
28 | */ | ||
29 | subTblEdit::subTblEdit( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
30 | : QDialog( parent, name, modal, fl ) | ||
31 | { | ||
32 | if ( !name ) | ||
33 | setName( "subTblEdit" ); | ||
34 | |||
35 | textLabel4 = new QLabel( this, "textLabel4" ); | ||
36 | textLabel4->setGeometry( QRect( 20, 10, 310, 20 ) ); | ||
37 | textLabel4->setAlignment( int( QLabel::AlignCenter ) ); | ||
38 | |||
39 | textLabel5 = new QLabel( this, "textLabel5" ); | ||
40 | textLabel5->setGeometry( QRect( 20, 70, 310, 20 ) ); | ||
41 | textLabel5->setAlignment( int( QLabel::AlignCenter ) ); | ||
42 | |||
43 | titleLineEdit = new QLineEdit( this, "titleLineEdit" ); | ||
44 | titleLineEdit->setGeometry( QRect( 20, 30, 310, 26 ) ); | ||
45 | |||
46 | okButton = new QPushButton( this, "okButton" ); | ||
47 | okButton->setGeometry( QRect( 20, 420, 140, 31 ) ); | ||
48 | |||
49 | cancelButton = new QPushButton( this, "cancelButton" ); | ||
50 | cancelButton->setGeometry( QRect( 190, 420, 140, 31 ) ); | ||
51 | |||
52 | groupBox3 = new QGroupBox( this, "groupBox3" ); | ||
53 | groupBox3->setGeometry( QRect( 20, 210, 310, 200 ) ); | ||
54 | |||
55 | textLabel6 = new QLabel( groupBox3, "textLabel6" ); | ||
56 | textLabel6->setGeometry( QRect( 20, 30, 270, 20 ) ); | ||
57 | |||
58 | textLabel7 = new QLabel( groupBox3, "textLabel7" ); | ||
59 | textLabel7->setGeometry( QRect( 20, 90, 270, 20 ) ); | ||
60 | |||
61 | addButton = new QPushButton( groupBox3, "addButton" ); | ||
62 | addButton->setGeometry( QRect( 30, 150, 250, 31 ) ); | ||
63 | |||
64 | valueLineEdit = new QLineEdit( groupBox3, "valueLineEdit" ); | ||
65 | valueLineEdit->setGeometry( QRect( 20, 110, 270, 26 ) ); | ||
66 | |||
67 | nameLineEdit = new QLineEdit( groupBox3, "nameLineEdit" ); | ||
68 | nameLineEdit->setGeometry( QRect( 20, 50, 270, 26 ) ); | ||
69 | |||
70 | entryListBox = new QListBox( this, "entryListBox" ); | ||
71 | entryListBox->setGeometry( QRect( 20, 90, 310, 80 ) ); | ||
72 | |||
73 | delButton = new QPushButton( this, "delButton" ); | ||
74 | delButton->setGeometry( QRect( 110, 170, 130, 31 ) ); | ||
75 | languageChange(); | ||
76 | resize( QSize(351, 464).expandedTo(minimumSizeHint()) ); | ||
77 | clearWState( WState_Polished ); | ||
78 | |||
79 | // signals and slots connections | ||
80 | connect( okButton, SIGNAL( clicked() ), this, SLOT( okButton_slot() ) ); | ||
81 | connect( cancelButton, SIGNAL( clicked() ), this, SLOT( cancelButton_slot() ) ); | ||
82 | connect( addButton, SIGNAL( clicked() ), this, SLOT( addButton_slot() ) ); | ||
83 | connect( delButton, SIGNAL( clicked() ), this, SLOT( delButton_slot() ) ); | ||
84 | |||
85 | // tab order | ||
86 | setTabOrder( titleLineEdit, entryListBox ); | ||
87 | setTabOrder( entryListBox, delButton ); | ||
88 | setTabOrder( delButton, nameLineEdit ); | ||
89 | setTabOrder( nameLineEdit, valueLineEdit ); | ||
90 | setTabOrder( valueLineEdit, addButton ); | ||
91 | setTabOrder( addButton, okButton ); | ||
92 | setTabOrder( okButton, cancelButton ); | ||
93 | } | ||
94 | |||
95 | /* | ||
96 | * Destroys the object and frees any allocated resources | ||
97 | */ | ||
98 | subTblEdit::~subTblEdit() | ||
99 | { | ||
100 | // no need to delete child widgets, Qt does it all for us | ||
101 | } | ||
102 | |||
103 | /* | ||
104 | * Sets the strings of the subwidgets using the current | ||
105 | * language. | ||
106 | */ | ||
107 | void subTblEdit::languageChange() | ||
108 | { | ||
109 | setCaption( tr( "HTML-comment subtable editor" ) ); | ||
110 | textLabel4->setText( tr( "Sub-title:" ) ); | ||
111 | textLabel5->setText( tr( "Current subtable-entries:" ) ); | ||
112 | okButton->setText( tr( "&OK" ) ); | ||
113 | cancelButton->setText( tr( "&Cancel" ) ); | ||
114 | groupBox3->setTitle( tr( "New entry" ) ); | ||
115 | textLabel6->setText( tr( "Entry name:" ) ); | ||
116 | textLabel7->setText( tr( "Entry value:" ) ); | ||
117 | addButton->setText( tr( "Add..." ) ); | ||
118 | delButton->setText( tr( "Delete" ) ); | ||
119 | } | ||
120 | |||
121 | void subTblEdit::okButton_slot() | ||
122 | { | ||
123 | qWarning( "subTblEdit::okButton_slot(): Not implemented yet" ); | ||
124 | } | ||
125 | |||
126 | void subTblEdit::cancelButton_slot() | ||
127 | { | ||
128 | qWarning( "subTblEdit::cancelButton_slot(): Not implemented yet" ); | ||
129 | } | ||
130 | |||
131 | void subTblEdit::addButton_slot() | ||
132 | { | ||
133 | qWarning( "subTblEdit::addButton_slot(): Not implemented yet" ); | ||
134 | } | ||
135 | |||
136 | void subTblEdit::delButton_slot() | ||
137 | { | ||
138 | qWarning( "subTblEdit::delButton_slot(): Not implemented yet" ); | ||
139 | } | ||
140 | |||