summaryrefslogtreecommitdiffabout
authorulf69 <ulf69>2004-09-29 20:38:10 (UTC)
committer ulf69 <ulf69>2004-09-29 20:38:10 (UTC)
commit21e794339f8988d9c370bebec45f60f2918fb671 (patch) (unidiff)
tree530ac79d2436b7b4588374cddbf95cd73ab5c1e2
parent53c2eac6f60a37f9ac8fc10b86460eb9c7347b51 (diff)
downloadkdepimpi-21e794339f8988d9c370bebec45f60f2918fb671.zip
kdepimpi-21e794339f8988d9c370bebec45f60f2918fb671.tar.gz
kdepimpi-21e794339f8988d9c370bebec45f60f2918fb671.tar.bz2
changed text slightly to accomodate 5500 Layout
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp b/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
index 1fc7a94..8afea76 100644
--- a/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
+++ b/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
@@ -5,129 +5,129 @@
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#include <qcheckbox.h> 24#include <qcheckbox.h>
25#include <qframe.h> 25#include <qframe.h>
26#include <qgroupbox.h> 26#include <qgroupbox.h>
27#include <qlayout.h> 27#include <qlayout.h>
28#include <qpushbutton.h> 28#include <qpushbutton.h>
29#include <qtabwidget.h> 29#include <qtabwidget.h>
30#include <qcombobox.h> 30#include <qcombobox.h>
31#include <qlineedit.h> 31#include <qlineedit.h>
32#include <qspinbox.h> 32#include <qspinbox.h>
33#include <qlabel.h> 33#include <qlabel.h>
34#include <qfile.h> 34#include <qfile.h>
35#include <qvbox.h> 35#include <qvbox.h>
36 36
37#include <kconfig.h> 37#include <kconfig.h>
38#include <kdebug.h> 38#include <kdebug.h>
39#include <kdialog.h> 39#include <kdialog.h>
40#include <klistview.h> 40#include <klistview.h>
41#include <klocale.h> 41#include <klocale.h>
42#include <kglobal.h> 42#include <kglobal.h>
43#include <kmessagebox.h> 43#include <kmessagebox.h>
44#include <kstandarddirs.h> 44#include <kstandarddirs.h>
45#include <kio/kfile/kurlrequester.h> 45#include <kio/kfile/kurlrequester.h>
46 46
47#include "pwmprefs.h" 47#include "pwmprefs.h"
48 48
49#include "pwmconfigwidget.h" 49#include "pwmconfigwidget.h"
50#include "pwmexception.h" 50#include "pwmexception.h"
51 51
52PWMConfigWidget::PWMConfigWidget(PWMPrefs *prefs, QWidget *parent, const char *name ) 52PWMConfigWidget::PWMConfigWidget(PWMPrefs *prefs, QWidget *parent, const char *name )
53 : KPrefsWidget(prefs, parent, name ) 53 : KPrefsWidget(prefs, parent, name )
54{ 54{
55 QVBoxLayout *topLayout = new QVBoxLayout( this, 0, 55 QVBoxLayout *topLayout = new QVBoxLayout( this, 0,
56 KDialog::spacingHint() ); 56 KDialog::spacingHint() );
57 57
58 QTabWidget *tabWidget = new QTabWidget( this ); 58 QTabWidget *tabWidget = new QTabWidget( this );
59 topLayout->addWidget( tabWidget ); 59 topLayout->addWidget( tabWidget );
60 60
61 // windowsStyle page 61 // windowsStyle page
62 ////////////////////////////////////////////////////// 62 //////////////////////////////////////////////////////
63 QWidget *windowStylePage = new QWidget( this ); 63 QWidget *windowStylePage = new QWidget( this );
64 QGridLayout *windowStyleLayout = new QGridLayout( windowStylePage, 3, 3); 64 QGridLayout *windowStyleLayout = new QGridLayout( windowStylePage, 3, 3);
65 65
66 int i = 0; 66 int i = 0;
67 KPrefsWidRadios * windowStyle = addWidRadios(i18n("Window-style:") ,&(prefs->mMainViewStyle), windowStylePage); 67 KPrefsWidRadios * windowStyle = addWidRadios(i18n("Window-style:") ,&(prefs->mMainViewStyle), windowStylePage);
68 windowStyle->addRadio(i18n("Category on top")); 68 windowStyle->addRadio(i18n("Category on top"));
69 windowStyle->addRadio(i18n("Category-list left")); 69 windowStyle->addRadio(i18n("Category-list left/top"));
70 windowStyleLayout->addMultiCellWidget( (QWidget*)windowStyle->groupBox(),i,i,0,2); 70 windowStyleLayout->addMultiCellWidget( (QWidget*)windowStyle->groupBox(),i,i,0,2);
71 ++i; 71 ++i;
72 72
73 KPrefsWidFont *selEntrFont = 73 KPrefsWidFont *selEntrFont =
74 addWidFont(i18n("Password"),i18n("Font for Pw entries:"), 74 addWidFont(i18n("Password"),i18n("Font for Pw entries:"),
75 &(prefs->mEntryFont),windowStylePage); 75 &(prefs->mEntryFont),windowStylePage);
76 windowStyleLayout->addWidget(selEntrFont->label(),i,0); 76 windowStyleLayout->addWidget(selEntrFont->label(),i,0);
77 windowStyleLayout->addWidget(selEntrFont->preview(),i,1); 77 windowStyleLayout->addWidget(selEntrFont->preview(),i,1);
78 windowStyleLayout->addWidget(selEntrFont->button(),i,2); 78 windowStyleLayout->addWidget(selEntrFont->button(),i,2);
79 ++i; 79 ++i;
80 80
81 81
82 // File page 82 // File page
83 ////////////////////////////////////////////////////// 83 //////////////////////////////////////////////////////
84 QWidget *filePage = new QWidget( this ); 84 QWidget *filePage = new QWidget( this );
85 QGridLayout *fileLayout = new QGridLayout( filePage, 3, 2); 85 QGridLayout *fileLayout = new QGridLayout( filePage, 3, 2);
86 86
87 i = 0; 87 i = 0;
88 KPrefsWidRadios * compr = addWidRadios(i18n("Compression:") ,&(prefs->mCompression), filePage); 88 KPrefsWidRadios * compr = addWidRadios(i18n("Compression:") ,&(prefs->mCompression), filePage);
89 compr->addRadio(i18n("none")); 89 compr->addRadio(i18n("none"));
90 compr->addRadio(i18n("gzip")); 90 compr->addRadio(i18n("gzip"));
91 compr->addRadio(i18n("bzip2")); 91 compr->addRadio(i18n("bzip2"));
92 fileLayout->addMultiCellWidget( (QWidget*)compr->groupBox(),i,i,0,1); 92 fileLayout->addMultiCellWidget( (QWidget*)compr->groupBox(),i,i,0,1);
93 ++i; 93 ++i;
94 94
95 permissionLineEdit = new QLineEdit(filePage); 95 permissionLineEdit = new QLineEdit(filePage);
96 QLabel* permissionLineLabel = new QLabel(permissionLineEdit, i18n("Permissions:"), filePage); 96 QLabel* permissionLineLabel = new QLabel(permissionLineEdit, i18n("Permissions:"), filePage);
97 fileLayout->addWidget(permissionLineLabel,i,0); 97 fileLayout->addWidget(permissionLineLabel,i,0);
98 fileLayout->addWidget(permissionLineEdit,i,1); 98 fileLayout->addWidget(permissionLineEdit,i,1);
99 ++i; 99 ++i;
100 100
101 KPrefsWidBool *sb = addWidBool(i18n("Make backup before saving"), 101 KPrefsWidBool *sb = addWidBool(i18n("Make backup before saving"),
102 &(prefs->mMakeFileBackup),filePage); 102 &(prefs->mMakeFileBackup),filePage);
103 fileLayout->addMultiCellWidget(sb->checkBox(), i,i,0,1); 103 fileLayout->addMultiCellWidget(sb->checkBox(), i,i,0,1);
104 ++i; 104 ++i;
105 105
106 // Timeout page 106 // Timeout page
107 ////////////////////////////////////////////////////// 107 //////////////////////////////////////////////////////
108 QWidget *timeoutPage = new QWidget( this ); 108 QWidget *timeoutPage = new QWidget( this );
109 QGridLayout *timeoutLayout = new QGridLayout( timeoutPage, 3, 2); 109 QGridLayout *timeoutLayout = new QGridLayout( timeoutPage, 3, 2);
110 110
111 i = 0; 111 i = 0;
112 pwTimeoutSpinBox = new QSpinBox( timeoutPage, "pwTimeoutSpinBox" ); 112 pwTimeoutSpinBox = new QSpinBox( timeoutPage, "pwTimeoutSpinBox" );
113 QLabel* timeoutLabel = new QLabel(pwTimeoutSpinBox, i18n("Password timeout\n(timeout to hold password in\nmemory,so you don't have to\nre-enter it,if you\nalready have entered it)\n[set to 0 to disable]:"), timeoutPage); 113 QLabel* timeoutLabel = new QLabel(pwTimeoutSpinBox, i18n("Password timeout\n(timeout to hold password in\nmemory,so you don't have to\nre-enter it,if you\nalready have entered it)\n[set to 0 to disable]:"), timeoutPage);
114 timeoutLayout->addMultiCellWidget(timeoutLabel,i, i, 0 ,0); 114 timeoutLayout->addMultiCellWidget(timeoutLabel,i, i, 0 ,0);
115 timeoutLayout->addWidget(pwTimeoutSpinBox,i,1); 115 timeoutLayout->addWidget(pwTimeoutSpinBox,i,1);
116 ++i; 116 ++i;
117 117
118 lockTimeoutSpinBox = new QSpinBox( timeoutPage, "lockTimeoutSpinBox" ); 118 lockTimeoutSpinBox = new QSpinBox( timeoutPage, "lockTimeoutSpinBox" );
119 QLabel* lockTimeoutLabel = new QLabel(lockTimeoutSpinBox, i18n("Auto-lock timeout\n(auto lock document after this\namount of seconds)\n[set to 0 to disable]:"), timeoutPage); 119 QLabel* lockTimeoutLabel = new QLabel(lockTimeoutSpinBox, i18n("Auto-lock timeout\n(auto lock document after this\namount of seconds)\n[set to 0 to disable]:"), timeoutPage);
120 timeoutLayout->addMultiCellWidget(lockTimeoutLabel,i, i, 0 ,0); 120 timeoutLayout->addMultiCellWidget(lockTimeoutLabel,i, i, 0 ,0);
121 timeoutLayout->addWidget(lockTimeoutSpinBox,i,1); 121 timeoutLayout->addWidget(lockTimeoutSpinBox,i,1);
122 ++i; 122 ++i;
123 123
124 sb = addWidBool(i18n("deep-lock on autolock"), 124 sb = addWidBool(i18n("deep-lock on autolock"),
125 &(prefs->mAutoDeeplock),timeoutPage); 125 &(prefs->mAutoDeeplock),timeoutPage);
126 timeoutLayout->addMultiCellWidget(sb->checkBox(), i,i,0,1); 126 timeoutLayout->addMultiCellWidget(sb->checkBox(), i,i,0,1);
127 ++i; 127 ++i;
128 128
129 129
130 // Autostart page 130 // Autostart page
131 ////////////////////////////////////////////////////// 131 //////////////////////////////////////////////////////
132 QWidget *autostartPage = new QWidget( this ); 132 QWidget *autostartPage = new QWidget( this );
133 QGridLayout *autostartLayout = new QGridLayout( autostartPage, 3, 2); 133 QGridLayout *autostartLayout = new QGridLayout( autostartPage, 3, 2);