Diffstat (limited to 'pwmanager/pwmanager/configwnd.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/configwnd.cpp | 265 |
1 files changed, 0 insertions, 265 deletions
diff --git a/pwmanager/pwmanager/configwnd.cpp b/pwmanager/pwmanager/configwnd.cpp deleted file mode 100644 index 108c40f..0000000 --- a/pwmanager/pwmanager/configwnd.cpp +++ b/dev/null | |||
@@ -1,265 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form implementation generated from reading ui file 'configwnd.ui' | ||
3 | ** | ||
4 | ** Created: Tue Sep 14 15:20:58 2004 | ||
5 | ** by: The User Interface Compiler ($Id$) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | |||
10 | #include "configwnd.h" | ||
11 | |||
12 | #include <qvariant.h> | ||
13 | #include <qpushbutton.h> | ||
14 | #include <qtabwidget.h> | ||
15 | #include <qwidget.h> | ||
16 | #include <qcombobox.h> | ||
17 | #include <qlabel.h> | ||
18 | #include <qlineedit.h> | ||
19 | #include <qcheckbox.h> | ||
20 | #include <qspinbox.h> | ||
21 | #include <qlayout.h> | ||
22 | #include <qtooltip.h> | ||
23 | #include <qwhatsthis.h> | ||
24 | |||
25 | /* | ||
26 | * Constructs a configWnd as a child of 'parent', with the | ||
27 | * name 'name' and widget flags set to 'f'. | ||
28 | * | ||
29 | * The dialog will by default be modeless, unless you set 'modal' to | ||
30 | * TRUE to construct a modal dialog. | ||
31 | */ | ||
32 | configWnd::configWnd( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
33 | : QDialog( parent, name, modal, fl ) | ||
34 | { | ||
35 | if ( !name ) | ||
36 | setName( "configWnd" ); | ||
37 | |||
38 | okButton = new QPushButton( this, "okButton" ); | ||
39 | okButton->setGeometry( QRect( 10, 280, 107, 27 ) ); | ||
40 | |||
41 | cancelButton = new QPushButton( this, "cancelButton" ); | ||
42 | cancelButton->setGeometry( QRect( 370, 280, 107, 27 ) ); | ||
43 | |||
44 | tabWidget2 = new QTabWidget( this, "tabWidget2" ); | ||
45 | tabWidget2->setGeometry( QRect( 10, 10, 470, 260 ) ); | ||
46 | |||
47 | ////////////////////////////// | ||
48 | tab = new QWidget( tabWidget2, "tab" ); | ||
49 | |||
50 | windowStyleComboBox = new QComboBox( FALSE, tab, "windowStyleComboBox" ); | ||
51 | windowStyleComboBox->setGeometry( QRect( 220, 180, 210, 28 ) ); | ||
52 | |||
53 | textLabel1_5 = new QLabel( tab, "textLabel1_5" ); | ||
54 | textLabel1_5->setGeometry( QRect( 30, 180, 180, 20 ) ); | ||
55 | textLabel1_5->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); | ||
56 | |||
57 | textLabel1_4 = new QLabel( tab, "textLabel1_4" ); | ||
58 | textLabel1_4->setGeometry( QRect( 30, 40, 400, 20 ) ); | ||
59 | |||
60 | selEntrFontButton = new QPushButton( tab, "selEntrFontButton" ); | ||
61 | selEntrFontButton->setGeometry( QRect( 30, 90, 160, 27 ) ); | ||
62 | |||
63 | currEntrFont = new QLabel( tab, "currEntrFont" ); | ||
64 | currEntrFont->setGeometry( QRect( 30, 70, 230, 20 ) ); | ||
65 | tabWidget2->insertTab( tab, QString("") ); | ||
66 | ////////////////////////////////////// | ||
67 | TabPage = new QWidget( tabWidget2, "TabPage" ); | ||
68 | |||
69 | compressionComboBox = new QComboBox( FALSE, TabPage, "compressionComboBox" ); | ||
70 | compressionComboBox->setGeometry( QRect( 290, 50, 150, 28 ) ); | ||
71 | |||
72 | textLabel1_6 = new QLabel( TabPage, "textLabel1_6" ); | ||
73 | textLabel1_6->setGeometry( QRect( 10, 50, 270, 20 ) ); | ||
74 | textLabel1_6->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); | ||
75 | |||
76 | textLabel1_8 = new QLabel( TabPage, "textLabel1_8" ); | ||
77 | textLabel1_8->setGeometry( QRect( 10, 90, 270, 20 ) ); | ||
78 | textLabel1_8->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); | ||
79 | |||
80 | permissionLineEdit = new QLineEdit( TabPage, "permissionLineEdit" ); | ||
81 | permissionLineEdit->setGeometry( QRect( 290, 90, 142, 27 ) ); | ||
82 | permissionLineEdit->setMaxLength( 3 ); | ||
83 | |||
84 | fileBackupCheckBox = new QCheckBox( TabPage, "fileBackupCheckBox" ); | ||
85 | fileBackupCheckBox->setGeometry( QRect( 80, 140, 360, 23 ) ); | ||
86 | tabWidget2->insertTab( TabPage, QString("") ); | ||
87 | ////////////////////////////////////// | ||
88 | tab_2 = new QWidget( tabWidget2, "tab_2" ); | ||
89 | |||
90 | pwTimeoutSpinBox = new QSpinBox( tab_2, "pwTimeoutSpinBox" ); | ||
91 | pwTimeoutSpinBox->setGeometry( QRect( 390, 50, 55, 23 ) ); | ||
92 | |||
93 | textLabel1 = new QLabel( tab_2, "textLabel1" ); | ||
94 | textLabel1->setGeometry( QRect( 10, 20, 370, 80 ) ); | ||
95 | textLabel1->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); | ||
96 | |||
97 | textLabel1_7 = new QLabel( tab_2, "textLabel1_7" ); | ||
98 | textLabel1_7->setGeometry( QRect( 10, 110, 370, 80 ) ); | ||
99 | textLabel1_7->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); | ||
100 | |||
101 | lockTimeoutSpinBox = new QSpinBox( tab_2, "lockTimeoutSpinBox" ); | ||
102 | lockTimeoutSpinBox->setGeometry( QRect( 390, 140, 55, 23 ) ); | ||
103 | |||
104 | autoDeepLockCheckBox = new QCheckBox( tab_2, "autoDeepLockCheckBox" ); | ||
105 | autoDeepLockCheckBox->setGeometry( QRect( 60, 180, 380, 25 ) ); | ||
106 | tabWidget2->insertTab( tab_2, QString("") ); | ||
107 | /////////////////////////////////////////// | ||
108 | tab_3 = new QWidget( tabWidget2, "tab_3" ); | ||
109 | |||
110 | textLabel1_3 = new QLabel( tab_3, "textLabel1_3" ); | ||
111 | textLabel1_3->setGeometry( QRect( 30, 30, 400, 20 ) ); | ||
112 | |||
113 | autoStartLineEdit = new QLineEdit( tab_3, "autoStartLineEdit" ); | ||
114 | autoStartLineEdit->setGeometry( QRect( 30, 50, 360, 20 ) ); | ||
115 | |||
116 | browseAutoStButton = new QPushButton( tab_3, "browseAutoStButton" ); | ||
117 | browseAutoStButton->setGeometry( QRect( 400, 50, 30, 20 ) ); | ||
118 | |||
119 | autostartDeeplockedCheckBox = new QCheckBox( tab_3, "autostartDeeplockedCheckBox" ); | ||
120 | autostartDeeplockedCheckBox->setGeometry( QRect( 40, 80, 390, 25 ) ); | ||
121 | tabWidget2->insertTab( tab_3, QString("") ); | ||
122 | //////////////////////////////////////////// | ||
123 | tab_4 = new QWidget( tabWidget2, "tab_4" ); | ||
124 | |||
125 | textLabel2 = new QLabel( tab_4, "textLabel2" ); | ||
126 | textLabel2->setGeometry( QRect( 20, 40, 280, 20 ) ); | ||
127 | textLabel2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); | ||
128 | |||
129 | browserLineEdit = new QLineEdit( tab_4, "browserLineEdit" ); | ||
130 | browserLineEdit->setGeometry( QRect( 310, 40, 130, 27 ) ); | ||
131 | |||
132 | xtermLineEdit = new QLineEdit( tab_4, "xtermLineEdit" ); | ||
133 | xtermLineEdit->setGeometry( QRect( 310, 100, 130, 27 ) ); | ||
134 | |||
135 | textLabel3 = new QLabel( tab_4, "textLabel3" ); | ||
136 | textLabel3->setGeometry( QRect( 20, 100, 280, 20 ) ); | ||
137 | textLabel3->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); | ||
138 | tabWidget2->insertTab( tab_4, QString("") ); | ||
139 | /////////////////////////////////////////////// | ||
140 | tab_5 = new QWidget( tabWidget2, "tab_5" ); | ||
141 | |||
142 | trayCheckBox = new QCheckBox( tab_5, "trayCheckBox" ); | ||
143 | trayCheckBox->setGeometry( QRect( 30, 30, 400, 20 ) ); | ||
144 | |||
145 | openUnlockedCheckBox = new QCheckBox( tab_5, "openUnlockedCheckBox" ); | ||
146 | openUnlockedCheckBox->setGeometry( QRect( 30, 80, 400, 20 ) ); | ||
147 | |||
148 | autoMinimizeCheckBox = new QCheckBox( tab_5, "autoMinimizeCheckBox" ); | ||
149 | autoMinimizeCheckBox->setEnabled( FALSE ); | ||
150 | autoMinimizeCheckBox->setGeometry( QRect( 50, 50, 380, 25 ) ); | ||
151 | |||
152 | minimizeLockComboBox = new QComboBox( FALSE, tab_5, "minimizeLockComboBox" ); | ||
153 | minimizeLockComboBox->setGeometry( QRect( 310, 170, 120, 27 ) ); | ||
154 | |||
155 | textLabel1_9 = new QLabel( tab_5, "textLabel1_9" ); | ||
156 | textLabel1_9->setGeometry( QRect( 30, 180, 270, 20 ) ); | ||
157 | textLabel1_9->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); | ||
158 | |||
159 | kwalletEmuCheckBox = new QCheckBox( tab_5, "kwalletEmuCheckBox" ); | ||
160 | kwalletEmuCheckBox->setGeometry( QRect( 30, 110, 400, 25 ) ); | ||
161 | |||
162 | wndCloseCheckBox = new QCheckBox( tab_5, "wndCloseCheckBox" ); | ||
163 | wndCloseCheckBox->setGeometry( QRect( 30, 140, 430, 24 ) ); | ||
164 | tabWidget2->insertTab( tab_5, QString("") ); | ||
165 | languageChange(); | ||
166 | resize( QSize(490, 318).expandedTo(minimumSizeHint()) ); | ||
167 | clearWState( WState_Polished ); | ||
168 | |||
169 | // signals and slots connections | ||
170 | connect( okButton, SIGNAL( clicked() ), this, SLOT( okButton_slot() ) ); | ||
171 | connect( cancelButton, SIGNAL( clicked() ), this, SLOT( cancelButton_slot() ) ); | ||
172 | connect( browseAutoStButton, SIGNAL( clicked() ), this, SLOT( browseAutoStButton_slot() ) ); | ||
173 | connect( selEntrFontButton, SIGNAL( clicked() ), this, SLOT( selEntrFontButton_slot() ) ); | ||
174 | connect( trayCheckBox, SIGNAL( toggled(bool) ), autoMinimizeCheckBox, SLOT( setEnabled(bool) ) ); | ||
175 | |||
176 | // tab order | ||
177 | setTabOrder( pwTimeoutSpinBox, trayCheckBox ); | ||
178 | setTabOrder( trayCheckBox, okButton ); | ||
179 | setTabOrder( okButton, cancelButton ); | ||
180 | } | ||
181 | |||
182 | /* | ||
183 | * Destroys the object and frees any allocated resources | ||
184 | */ | ||
185 | configWnd::~configWnd() | ||
186 | { | ||
187 | // no need to delete child widgets, Qt does it all for us | ||
188 | } | ||
189 | |||
190 | /* | ||
191 | * Sets the strings of the subwidgets using the current | ||
192 | * language. | ||
193 | */ | ||
194 | void configWnd::languageChange() | ||
195 | { | ||
196 | setCaption( tr( "PwManager Configuration" ) ); | ||
197 | okButton->setText( tr( "&OK" ) ); | ||
198 | //US ENH okButton->setAccel( QKeySequence( tr( "Alt+O" ) ) ); | ||
199 | cancelButton->setText( tr( "&Cancel" ) ); | ||
200 | //US ENH cancelButton->setAccel( QKeySequence( tr( "Alt+C" ) ) ); | ||
201 | windowStyleComboBox->clear(); | ||
202 | windowStyleComboBox->insertItem( tr( "Category on top" ) ); | ||
203 | windowStyleComboBox->insertItem( tr( "Category-list left" ) ); | ||
204 | textLabel1_5->setText( tr( "Window-style:" ) ); | ||
205 | textLabel1_4->setText( tr( "Font for the password entries:" ) ); | ||
206 | selEntrFontButton->setText( tr( "select Font" ) ); | ||
207 | currEntrFont->setText( QString::null ); | ||
208 | tabWidget2->changeTab( tab, tr( "Look && feel" ) ); | ||
209 | compressionComboBox->clear(); | ||
210 | compressionComboBox->insertItem( tr( "none" ) ); | ||
211 | compressionComboBox->insertItem( tr( "gzip" ) ); | ||
212 | compressionComboBox->insertItem( tr( "bzip2" ) ); | ||
213 | textLabel1_6->setText( tr( "*.pwm file compression:" ) ); | ||
214 | textLabel1_8->setText( tr( "permissions:" ) ); | ||
215 | fileBackupCheckBox->setText( tr( "Make file backup before saving" ) ); | ||
216 | tabWidget2->changeTab( TabPage, tr( "File" ) ); | ||
217 | textLabel1->setText( tr( "Password timeout (timeout to hold password in memory, so you don't have to re-enter it, if you already have entered it) [set to 0 to disable]:" ) ); | ||
218 | textLabel1_7->setText( tr( "Auto-lock timeout (auto lock document after this amount of seconds) [set to 0 to disable]:" ) ); | ||
219 | autoDeepLockCheckBox->setText( tr( "deep-lock on autolock" ) ); | ||
220 | tabWidget2->changeTab( tab_2, tr( "Timeout" ) ); | ||
221 | textLabel1_3->setText( tr( "Open this file automatically on startup:" ) ); | ||
222 | browseAutoStButton->setText( tr( "..." ) ); | ||
223 | autostartDeeplockedCheckBox->setText( tr( "open deeplocked" ) ); | ||
224 | tabWidget2->changeTab( tab_3, tr( "Autostart" ) ); | ||
225 | textLabel2->setText( tr( "Favourite browser:" ) ); | ||
226 | textLabel3->setText( tr( "Favourite X-terminal:" ) ); | ||
227 | tabWidget2->changeTab( tab_4, tr( "External apps" ) ); | ||
228 | trayCheckBox->setText( tr( "Show icon in system-tray" ) ); | ||
229 | openUnlockedCheckBox->setText( tr( "Open document with passwords unlocked" ) ); | ||
230 | autoMinimizeCheckBox->setText( tr( "auto-minimize to tray on startup" ) ); | ||
231 | minimizeLockComboBox->clear(); | ||
232 | minimizeLockComboBox->insertItem( tr( "don't lock" ) ); | ||
233 | minimizeLockComboBox->insertItem( tr( "normal lock" ) ); | ||
234 | minimizeLockComboBox->insertItem( tr( "deep-lock" ) ); | ||
235 | textLabel1_9->setText( tr( "auto-lock on minimize:" ) ); | ||
236 | kwalletEmuCheckBox->setText( tr( "KWallet emulation" ) ); | ||
237 | wndCloseCheckBox->setText( tr( "Do not minimize windows into tray. (Close the window)" ) ); | ||
238 | tabWidget2->changeTab( tab_5, tr( "Miscellaneous" ) ); | ||
239 | } | ||
240 | |||
241 | void configWnd::okButton_slot() | ||
242 | { | ||
243 | qWarning( "configWnd::okButton_slot(): Not implemented yet" ); | ||
244 | } | ||
245 | |||
246 | void configWnd::cancelButton_slot() | ||
247 | { | ||
248 | qWarning( "configWnd::cancelButton_slot(): Not implemented yet" ); | ||
249 | } | ||
250 | |||
251 | void configWnd::browseBgButton_slot() | ||
252 | { | ||
253 | qWarning( "configWnd::browseBgButton_slot(): Not implemented yet" ); | ||
254 | } | ||
255 | |||
256 | void configWnd::browseAutoStButton_slot() | ||
257 | { | ||
258 | qWarning( "configWnd::browseAutoStButton_slot(): Not implemented yet" ); | ||
259 | } | ||
260 | |||
261 | void configWnd::selEntrFontButton_slot() | ||
262 | { | ||
263 | qWarning( "configWnd::selEntrFontButton_slot(): Not implemented yet" ); | ||
264 | } | ||
265 | |||