-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/consoleconfigwidget.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -1,153 +1,154 @@ | |||
1 | 2005-??-??Opie 1.2.0 | 1 | 2005-??-??Opie 1.2.0 |
2 | 2 | ||
3 | New Features | 3 | New Features |
4 | ------------ | 4 | ------------ |
5 | * Launcher: Support a static background pixmap (mickeyl) | 5 | * Launcher: Support a static background pixmap (mickeyl) |
6 | * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) | 6 | * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) |
7 | * PackageManager supports the 'lists_dir' ipkg configuration option (drw) | 7 | * PackageManager supports the 'lists_dir' ipkg configuration option (drw) |
8 | * Added hi-res inline images for large resolution devices (drw) | 8 | * Added hi-res inline images for large resolution devices (drw) |
9 | * Improved launcher icons for consistency (ar) | 9 | * Improved launcher icons for consistency (ar) |
10 | * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook. (alwin) | 10 | * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook. (alwin) |
11 | 11 | ||
12 | Fixed Bugs | 12 | Fixed Bugs |
13 | ---------- | 13 | ---------- |
14 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) | 14 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) |
15 | * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp) | 15 | * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp) |
16 | * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) | 16 | * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) |
17 | * #1482 - Fix double '/' in paths (zecke) | 17 | * #1482 - Fix double '/' in paths (zecke) |
18 | * #1536 - Autosave of custom locations in opie backup (ar) | 18 | * #1536 - Autosave of custom locations in opie backup (ar) |
19 | * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) | 19 | * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) |
20 | * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) | 20 | * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) |
21 | * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw) | 21 | * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw) |
22 | * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke) | 22 | * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke) |
23 | * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) | 23 | * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) |
24 | * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) | 24 | * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) |
25 | * #1558 - Fixed opie-login breaking opie startup (mickeyl) | 25 | * #1558 - Fixed opie-login breaking opie startup (mickeyl) |
26 | * #1560 - Fixed Opie-Console picking up the wrong shell (bluelightning) | ||
26 | * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar) | 27 | * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar) |
27 | * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints) | 28 | * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints) |
28 | * #1604 - Checkbook crashed on startup (drw) | 29 | * #1604 - Checkbook crashed on startup (drw) |
29 | * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers) | 30 | * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers) |
30 | * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers) | 31 | * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers) |
31 | * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw) | 32 | * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw) |
32 | * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) | 33 | * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) |
33 | * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw) | 34 | * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw) |
34 | * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw) | 35 | * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw) |
35 | * n.a. - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) | 36 | * n.a. - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) |
36 | * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw) | 37 | * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw) |
37 | * n.a. - AddressBook - fixed sorting by 'File As' name (drw) | 38 | * n.a. - AddressBook - fixed sorting by 'File As' name (drw) |
38 | * n.a. - AddressBook - fixed category handling for 'All' and 'Unfiled' (eilers) | 39 | * n.a. - AddressBook - fixed category handling for 'All' and 'Unfiled' (eilers) |
39 | * n.a. - AddressBook - fixed letter picker record selection and sort records afterwards (drw) | 40 | * n.a. - AddressBook - fixed letter picker record selection and sort records afterwards (drw) |
40 | 41 | ||
41 | Internal | 42 | Internal |
42 | -------- | 43 | -------- |
43 | * Worked around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) | 44 | * Worked around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) |
44 | * Killed the need for weak symbols in QtE (zecke) | 45 | * Killed the need for weak symbols in QtE (zecke) |
45 | * Added optional building libqpe without inline images (mickeyl) | 46 | * Added optional building libqpe without inline images (mickeyl) |
46 | * OColorButton - fixed so does not emit a colorSelected signal inside of resizeEvent (drw) | 47 | * OColorButton - fixed so does not emit a colorSelected signal inside of resizeEvent (drw) |
47 | 48 | ||
48 | 2005-02-03Opie 1.1.9 | 49 | 2005-02-03Opie 1.1.9 |
49 | 50 | ||
50 | New Features | 51 | New Features |
51 | ------------ | 52 | ------------ |
52 | * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) | 53 | * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) |
53 | * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) | 54 | * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) |
54 | * Usability enhancements in OpieIRC (skyhusker) | 55 | * Usability enhancements in OpieIRC (skyhusker) |
55 | 56 | ||
56 | Fixed Bugs | 57 | Fixed Bugs |
57 | ---------- | 58 | ---------- |
58 | * #1501 - Fixed bug in todo sql backend (eilers) | 59 | * #1501 - Fixed bug in todo sql backend (eilers) |
59 | * #1505 - Added more Swap sizes in memoryapplet (mickeyl) | 60 | * #1505 - Added more Swap sizes in memoryapplet (mickeyl) |
60 | * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) | 61 | * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) |
61 | * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) | 62 | * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) |
62 | * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) | 63 | * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) |
63 | * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) | 64 | * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) |
64 | * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) | 65 | * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) |
65 | 66 | ||
66 | Internal | 67 | Internal |
67 | -------- | 68 | -------- |
68 | * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) | 69 | * Added the Qtopia 1.7 SDK macros for quick-apps to easa compilation of 3rd party apps against our headers (mickeyl) |
69 | * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl) | 70 | * You can now use the Opie build system in combination with a OpenEmbedded staging area which makes a nice cross development environment (mickeyl) |
70 | * Made Opie compilable with Qt/Embedded 2.3.10 (ar) | 71 | * Made Opie compilable with Qt/Embedded 2.3.10 (ar) |
71 | * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl) | 72 | * Changed Launcher to get default orientation from ODevice w/ QWS_DISPLAY overriding (mickeyl) |
72 | * Build tree cleanups (mickeyl) | 73 | * Build tree cleanups (mickeyl) |
73 | 74 | ||
74 | 2004-11-26Opie 1.1.8 | 75 | 2004-11-26Opie 1.1.8 |
75 | 76 | ||
76 | New Features | 77 | New Features |
77 | ------------ | 78 | ------------ |
78 | * PackageManager supports installation of local ipkg files (drw) | 79 | * PackageManager supports installation of local ipkg files (drw) |
79 | * PackageManager supports linking of applications to root (drw) | 80 | * PackageManager supports linking of applications to root (drw) |
80 | * PackageManager supports src/gz feeds (drw,wimpie) | 81 | * PackageManager supports src/gz feeds (drw,wimpie) |
81 | * Added a syslog information tab to sysinfo (mickeyl) | 82 | * Added a syslog information tab to sysinfo (mickeyl) |
82 | * Added new, more consistent, PIM icons + a GIMP teplate (ar) | 83 | * Added new, more consistent, PIM icons + a GIMP teplate (ar) |
83 | 84 | ||
84 | Fixed Bugs | 85 | Fixed Bugs |
85 | ---------- | 86 | ---------- |
86 | * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) | 87 | * #1017 - Tetrix doesn't display correctly for high resolution screens (drw) |
87 | * #1269 - VCards were imported into personal area if it was activated (eilers) | 88 | * #1269 - VCards were imported into personal area if it was activated (eilers) |
88 | * #1464 - Packagemanager dont set active filter after install a package (drw) | 89 | * #1464 - Packagemanager dont set active filter after install a package (drw) |
89 | * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) | 90 | * #1479 - Improved VCard-Parser to import VCards created by Evolution 2 and Apple Addressbook (eilers) |
90 | * #1493 - Fixed one column layout bug of the launcher (hrw) | 91 | * #1493 - Fixed one column layout bug of the launcher (hrw) |
91 | * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) | 92 | * n.a. - PackageManager - (Minor UI tweak) in filter dialog, when option is enabled, set focus to widget that corresponds to that option (drw) |
92 | * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) | 93 | * n.a. - PackageManager - (Minor UI tweak) fix double entry in source feed configuration when adding a new feed (drw) |
93 | * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl) | 94 | * n.a. - Battery Applet - fix sizing of battery info popup (drw,mickeyl) |
94 | 95 | ||
95 | Internal | 96 | Internal |
96 | -------- | 97 | -------- |
97 | * Moved libopie1 to unsupported (mickeyl) | 98 | * Moved libopie1 to unsupported (mickeyl) |
98 | * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) | 99 | * Implemented generic queryByExample() with incremental searching. A lot of internal changes of the Pim2-library (eilers) |
99 | * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) | 100 | * Added fast and full featured and incremental sorted() for SQL addressbook backend (eilers) |
100 | 101 | ||
101 | 2004-11-14Opie 1.1.7 | 102 | 2004-11-14Opie 1.1.7 |
102 | 103 | ||
103 | New Features | 104 | New Features |
104 | ------------ | 105 | ------------ |
105 | * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) | 106 | * libOpieDB now uses SQLite V3 instead V2. Remember to upgrade your database files! (eilers) |
106 | * Backup now uses the busy indicator when backing up and restore (ar) | 107 | * Backup now uses the busy indicator when backing up and restore (ar) |
107 | * OpiePlayer2 gained adding of Directories to the playlist (zecke) | 108 | * OpiePlayer2 gained adding of Directories to the playlist (zecke) |
108 | * OpiePlayer2 better error handling (zecke) | 109 | * OpiePlayer2 better error handling (zecke) |
109 | * OpiePlayer2 progress indication while streaming (zecke) | 110 | * OpiePlayer2 progress indication while streaming (zecke) |
110 | * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) | 111 | * OpiePlayer2 ported to use libxine 1.0.0-rc6a (brad,zecke) |
111 | * Ported brightnessapplet from Qtopia 1.7 (mickeyl) | 112 | * Ported brightnessapplet from Qtopia 1.7 (mickeyl) |
112 | * Opie-Eye got a Digital Camera File Backend (alwin,zecke) | 113 | * Opie-Eye got a Digital Camera File Backend (alwin,zecke) |
113 | * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) | 114 | * Support for Tuxpad1 of Tradesquare.NL (mickeyl,zecke) |
114 | * Opie-Console use Custom Font and Size in a Profile (harlekin) | 115 | * Opie-Console use Custom Font and Size in a Profile (harlekin) |
115 | * Opie-Console transparently log the Output and Input to a file (harlekin) | 116 | * Opie-Console transparently log the Output and Input to a file (harlekin) |
116 | * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) | 117 | * Added new O-menu icon to lock the PDA immediately: opie-lockapplet (clem) |
117 | * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) | 118 | * Opie-Security now hides the plugin-based authentication tabs if no auth. plugin package is installed (clem) |
118 | * Opie-Security gained a 'test authentication' button (clem) | 119 | * Opie-Security gained a 'test authentication' button (clem) |
119 | * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults | 120 | * Opie-Eye got a more unique layout (menubar), a slideshow, user can setup some defaults |
120 | * Opie-Mail improve the handling of POP mail boxes (alwin) | 121 | * Opie-Mail improve the handling of POP mail boxes (alwin) |
121 | * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) | 122 | * Both Opie-Eye and Opie-Mail were greatly improved due the hard work of Rajko Albrecht(alwin) |
122 | * Opie IRC - backports of the 'NeIRC fork' (zecke) | 123 | * Opie IRC - backports of the 'NeIRC fork' (zecke) |
123 | 124 | ||
124 | Fixed Bugs | 125 | Fixed Bugs |
125 | ---------- | 126 | ---------- |
126 | * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) | 127 | * #501 - Pickboard is able to show 'Umlaute' (TT,zecke) |
127 | * #608 - Make Opie usable for left handed users (zecke) | 128 | * #608 - Make Opie usable for left handed users (zecke) |
128 | * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) | 129 | * #957 - Import of VCards/VTodos/VEvents with BASE64 encoding (ljp,zecke) |
129 | * #1245 - Opie-Go 'paused' (zecke) | 130 | * #1245 - Opie-Go 'paused' (zecke) |
130 | * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) | 131 | * #1358 - DocTab didn't show any MimeTypes (was fixed earlier) (zecke) |
131 | * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) | 132 | * #1380 - QDateBookAccess::remove() doesn't remove entries (eilers, zecke) |
132 | * #1395 - Build VNC Backend with gcc3.4 | 133 | * #1395 - Build VNC Backend with gcc3.4 |
133 | * #1440 - The icon of opie-mobilemsg is missing (CoreDump) | 134 | * #1440 - The icon of opie-mobilemsg is missing (CoreDump) |
134 | * #1426 - Add missing opie-bartender Icon (CoreDump) | 135 | * #1426 - Add missing opie-bartender Icon (CoreDump) |
135 | * #1445 - Opie-Sheet Has No Icon (CoreDump) | 136 | * #1445 - Opie-Sheet Has No Icon (CoreDump) |
136 | * #1448 - Brightness Applet added (mickeyl) | 137 | * #1448 - Brightness Applet added (mickeyl) |
137 | * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) | 138 | * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) |
138 | * #1482 - Fix OFileSelector to be able to sort by size (zecke) | 139 | * #1482 - Fix OFileSelector to be able to sort by size (zecke) |
139 | * n.a. - Opie-mail: fixed some crasher, some layout-problems | 140 | * n.a. - Opie-mail: fixed some crasher, some layout-problems |
140 | * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) | 141 | * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) |
141 | * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) | 142 | * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) |
142 | * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem) | 143 | * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem) |
143 | * n.a. - Build system: Fix deps in several config.in (and fix scripts/deps.pl too) to stop breaking builds, especially with make -j highNumber (clem) | 144 | * n.a. - Build system: Fix deps in several config.in (and fix scripts/deps.pl too) to stop breaking builds, especially with make -j highNumber (clem) |
144 | * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl) | 145 | * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl) |
145 | 146 | ||
146 | Internal | 147 | Internal |
147 | -------- | 148 | -------- |
148 | * Opie-Qashmoney has been moved to unsupported (mickeyl) | 149 | * Opie-Qashmoney has been moved to unsupported (mickeyl) |
149 | * Opie-Ubrowser has been moved to unsupported (mickeyl) | 150 | * Opie-Ubrowser has been moved to unsupported (mickeyl) |
150 | 151 | ||
151 | 2004-09-17Opie 1.1.6 | 152 | 2004-09-17Opie 1.1.6 |
152 | 153 | ||
153 | New Features | 154 | New Features |
diff --git a/noncore/apps/opie-console/consoleconfigwidget.cpp b/noncore/apps/opie-console/consoleconfigwidget.cpp index a6ad8d2..27d9a3f 100644 --- a/noncore/apps/opie-console/consoleconfigwidget.cpp +++ b/noncore/apps/opie-console/consoleconfigwidget.cpp | |||
@@ -1,109 +1,109 @@ | |||
1 | #include <qlabel.h> | 1 | #include <qlabel.h> |
2 | #include <qlayout.h> | 2 | #include <qlayout.h> |
3 | #include <qlineedit.h> | 3 | #include <qlineedit.h> |
4 | #include <qpushbutton.h> | 4 | #include <qpushbutton.h> |
5 | #include <qlistview.h> | 5 | #include <qlistview.h> |
6 | #include <qhbox.h> | 6 | #include <qhbox.h> |
7 | #include <stdio.h> | 7 | #include <stdio.h> |
8 | 8 | ||
9 | #include <pwd.h> | 9 | #include <pwd.h> |
10 | #include <sys/types.h> | 10 | #include <sys/types.h> |
11 | 11 | #include <unistd.h> | |
12 | 12 | ||
13 | #include "consoleconfigwidget.h" | 13 | #include "consoleconfigwidget.h" |
14 | 14 | ||
15 | ConsoleConfigWidget::ConsoleConfigWidget( const QString& name, QWidget* parent, | 15 | ConsoleConfigWidget::ConsoleConfigWidget( const QString& name, QWidget* parent, |
16 | const char* na ) | 16 | const char* na ) |
17 | : ProfileDialogConnectionWidget( name, parent, na ) { | 17 | : ProfileDialogConnectionWidget( name, parent, na ) { |
18 | m_lay = new QVBoxLayout( this ); | 18 | m_lay = new QVBoxLayout( this ); |
19 | QLabel *label = new QLabel(tr("Command to execute"), this); | 19 | QLabel *label = new QLabel(tr("Command to execute"), this); |
20 | m_lay->addWidget(label); | 20 | m_lay->addWidget(label); |
21 | m_cmd = new QLineEdit(this); | 21 | m_cmd = new QLineEdit(this); |
22 | m_lay->addWidget(m_cmd); | 22 | m_lay->addWidget(m_cmd); |
23 | label = new QLabel(tr("Environment Variables"), this); | 23 | label = new QLabel(tr("Environment Variables"), this); |
24 | m_lay->addWidget(label); | 24 | m_lay->addWidget(label); |
25 | m_env = new QListView(this); | 25 | m_env = new QListView(this); |
26 | m_env->addColumn(tr("Name")); | 26 | m_env->addColumn(tr("Name")); |
27 | m_env->addColumn(tr("Value")); | 27 | m_env->addColumn(tr("Value")); |
28 | m_lay->addWidget(m_env); | 28 | m_lay->addWidget(m_env); |
29 | 29 | ||
30 | QHBox *hbox = new QHBox(this); | 30 | QHBox *hbox = new QHBox(this); |
31 | label = new QLabel(tr("Name :"), hbox); | 31 | label = new QLabel(tr("Name :"), hbox); |
32 | m_name = new QLineEdit(hbox); | 32 | m_name = new QLineEdit(hbox); |
33 | m_lay->addWidget(hbox); | 33 | m_lay->addWidget(hbox); |
34 | 34 | ||
35 | hbox = new QHBox(this); | 35 | hbox = new QHBox(this); |
36 | label = new QLabel(tr("Value :"), hbox); | 36 | label = new QLabel(tr("Value :"), hbox); |
37 | m_value = new QLineEdit(hbox); | 37 | m_value = new QLineEdit(hbox); |
38 | m_lay->addWidget(hbox); | 38 | m_lay->addWidget(hbox); |
39 | 39 | ||
40 | hbox = new QHBox(this); | 40 | hbox = new QHBox(this); |
41 | hbox->setSpacing(10); | 41 | hbox->setSpacing(10); |
42 | m_remove = new QPushButton(tr("Remove"), hbox); | 42 | m_remove = new QPushButton(tr("Remove"), hbox); |
43 | connect(m_remove, SIGNAL(clicked()), this, SLOT(slotRemove())); | 43 | connect(m_remove, SIGNAL(clicked()), this, SLOT(slotRemove())); |
44 | m_add = new QPushButton(tr("Add"), hbox); | 44 | m_add = new QPushButton(tr("Add"), hbox); |
45 | connect(m_add, SIGNAL(clicked()), this, SLOT(slotAdd())); | 45 | connect(m_add, SIGNAL(clicked()), this, SLOT(slotAdd())); |
46 | m_lay->addWidget(hbox); | 46 | m_lay->addWidget(hbox); |
47 | } | 47 | } |
48 | 48 | ||
49 | void ConsoleConfigWidget::slotAdd() { | 49 | void ConsoleConfigWidget::slotAdd() { |
50 | if (!(m_name->text().isEmpty() || m_value->text().isEmpty())) { | 50 | if (!(m_name->text().isEmpty() || m_value->text().isEmpty())) { |
51 | QListViewItem *item = new QListViewItem(m_env); | 51 | QListViewItem *item = new QListViewItem(m_env); |
52 | item->setText(0, m_name->text()); | 52 | item->setText(0, m_name->text()); |
53 | item->setText(1, m_value->text()); | 53 | item->setText(1, m_value->text()); |
54 | m_env->insertItem(item); | 54 | m_env->insertItem(item); |
55 | } | 55 | } |
56 | } | 56 | } |
57 | 57 | ||
58 | void ConsoleConfigWidget::slotRemove() { | 58 | void ConsoleConfigWidget::slotRemove() { |
59 | QListViewItem *item = m_env->currentItem(); | 59 | QListViewItem *item = m_env->currentItem(); |
60 | if (item) { | 60 | if (item) { |
61 | m_env->takeItem(item); | 61 | m_env->takeItem(item); |
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | ConsoleConfigWidget::~ConsoleConfigWidget() { | 65 | ConsoleConfigWidget::~ConsoleConfigWidget() { |
66 | } | 66 | } |
67 | 67 | ||
68 | void ConsoleConfigWidget::load( const Profile& prof ) { | 68 | void ConsoleConfigWidget::load( const Profile& prof ) { |
69 | /* | 69 | /* |
70 | * default to the users default shell | 70 | * default to the users default shell |
71 | */ | 71 | */ |
72 | struct passwd *ent = 0; | 72 | struct passwd *ent = 0; |
73 | char *shell = "/bin/sh"; | 73 | char *shell = "/bin/sh"; |
74 | int uid = getuid(); | ||
74 | 75 | ||
75 | while ( (ent = getpwent()) != 0 ) { | 76 | ent = getpwuid(uid); |
76 | if (ent->pw_shell != "") { | 77 | if (ent->pw_shell != "") { |
77 | shell = ent->pw_shell; | 78 | shell = ent->pw_shell; |
78 | } | 79 | } |
79 | } | ||
80 | 80 | ||
81 | m_cmd->setText(prof.readEntry("Command", shell )); | 81 | m_cmd->setText(prof.readEntry("Command", shell )); |
82 | int envcount = prof.readNumEntry("EnvVars", 0); | 82 | int envcount = prof.readNumEntry("EnvVars", 0); |
83 | for (int i=0; i<envcount; i++) { | 83 | for (int i=0; i<envcount; i++) { |
84 | QString name = prof.readEntry("Env_Name_" + QString::number(i), ""); | 84 | QString name = prof.readEntry("Env_Name_" + QString::number(i), ""); |
85 | QString value = prof.readEntry("Env_Value_" + QString::number(i), ""); | 85 | QString value = prof.readEntry("Env_Value_" + QString::number(i), ""); |
86 | if (!(name.isEmpty() || value.isEmpty())) { | 86 | if (!(name.isEmpty() || value.isEmpty())) { |
87 | QListViewItem *item = new QListViewItem(m_env); | 87 | QListViewItem *item = new QListViewItem(m_env); |
88 | item->setText(0, name); | 88 | item->setText(0, name); |
89 | item->setText(1, value); | 89 | item->setText(1, value); |
90 | m_env->insertItem(item); | 90 | m_env->insertItem(item); |
91 | } | 91 | } |
92 | } | 92 | } |
93 | } | 93 | } |
94 | 94 | ||
95 | void ConsoleConfigWidget::save( Profile& prof ) { | 95 | void ConsoleConfigWidget::save( Profile& prof ) { |
96 | prof.writeEntry( "Command", m_cmd->text()); | 96 | prof.writeEntry( "Command", m_cmd->text()); |
97 | QListViewItem *item = m_env->firstChild(); | 97 | QListViewItem *item = m_env->firstChild(); |
98 | int counter = 0; | 98 | int counter = 0; |
99 | while (item) { | 99 | while (item) { |
100 | QString name = item->text(0); | 100 | QString name = item->text(0); |
101 | QString value = item->text(1); | 101 | QString value = item->text(1); |
102 | prof.writeEntry("Env_Name_" + QString::number(counter), name); | 102 | prof.writeEntry("Env_Name_" + QString::number(counter), name); |
103 | prof.writeEntry("Env_Value_" + QString::number(counter), value); | 103 | prof.writeEntry("Env_Value_" + QString::number(counter), value); |
104 | item = item->nextSibling(); | 104 | item = item->nextSibling(); |
105 | counter++; | 105 | counter++; |
106 | } | 106 | } |
107 | prof.writeEntry("EnvVars", QString::number(counter)); | 107 | prof.writeEntry("EnvVars", QString::number(counter)); |
108 | } | 108 | } |
109 | 109 | ||