author | mickeyl <mickeyl> | 2003-11-17 15:16:13 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-11-17 15:16:13 (UTC) |
commit | c4a6e9c529ea6bcb1c9a42fee33a70300f116c98 (patch) (unidiff) | |
tree | 1ee68a2035b0218ba99662db1dff4c4067064cde /core/settings/launcher/launchersettings.cpp | |
parent | 725e2723291fe1d71ca68cb59cec83428d40b8af (diff) | |
download | opie-c4a6e9c529ea6bcb1c9a42fee33a70300f116c98.zip opie-c4a6e9c529ea6bcb1c9a42fee33a70300f116c98.tar.gz opie-c4a6e9c529ea6bcb1c9a42fee33a70300f116c98.tar.bz2 |
This patch makes the famous Documents Tab customizably optional.
Note that the document tab is so tight coupled to the rest
of the launcher that it proved impossible for me to remove the
tab as is. However I could make all the scanning and the displaying
optional.
The customization can be done via the launcher settings applications -
a new doc tab category has been added. Further customization can be
added to that tab.
I also added a doc tab settings application for use with the "first usage wizard"
Diffstat (limited to 'core/settings/launcher/launchersettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/launcher/launchersettings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/settings/launcher/launchersettings.cpp b/core/settings/launcher/launchersettings.cpp index efc4a86..e129849 100644 --- a/core/settings/launcher/launchersettings.cpp +++ b/core/settings/launcher/launchersettings.cpp | |||
@@ -36,6 +36,7 @@ | |||
36 | #include "menusettings.h" | 36 | #include "menusettings.h" |
37 | #include "taskbarsettings.h" | 37 | #include "taskbarsettings.h" |
38 | #include "inputmethodsettings.h" | 38 | #include "inputmethodsettings.h" |
39 | #include "doctabsettings.h" | ||
39 | 40 | ||
40 | LauncherSettings::LauncherSettings (QWidget*,const char*, WFlags) | 41 | LauncherSettings::LauncherSettings (QWidget*,const char*, WFlags) |
41 | : QDialog ( 0, "LauncherSettings", false, WStyle_ContextHelp ) | 42 | : QDialog ( 0, "LauncherSettings", false, WStyle_ContextHelp ) |
@@ -51,12 +52,13 @@ LauncherSettings::LauncherSettings (QWidget*,const char*, WFlags) | |||
51 | m_taskbar = new TaskbarSettings ( tw ); | 52 | m_taskbar = new TaskbarSettings ( tw ); |
52 | m_menu = new MenuSettings ( tw ); | 53 | m_menu = new MenuSettings ( tw ); |
53 | m_imethods = new InputMethodSettings ( tw ); | 54 | m_imethods = new InputMethodSettings ( tw ); |
55 | m_doctab = new DocTabSettings ( tw ); | ||
54 | 56 | ||
55 | tw-> addTab ( m_taskbar, "wait", tr( "Taskbar" )); | 57 | tw-> addTab ( m_taskbar, "wait", tr( "Taskbar" )); |
56 | tw-> addTab ( m_menu, "go", tr( "O-Menu" )); | 58 | tw-> addTab ( m_menu, "go", tr( "O-Menu" )); |
57 | tw-> addTab ( m_tabs, "launchersettings/tabstab.png", tr( "Tabs" )); | 59 | tw-> addTab ( m_tabs, "launchersettings/tabstab.png", tr( "Tabs" )); |
58 | tw-> addTab ( m_imethods, "launchersettings/inputmethod.png", tr( "InputMethods" )); | 60 | tw-> addTab ( m_imethods, "launchersettings/inputmethod.png", tr( "InputMethods" )); |
59 | 61 | tw-> addTab ( m_doctab, "DocsIcon", tr( "DocTab" ) ); | |
60 | tw-> setCurrentTab ( m_taskbar ); | 62 | tw-> setCurrentTab ( m_taskbar ); |
61 | } | 63 | } |
62 | 64 | ||
@@ -66,6 +68,7 @@ void LauncherSettings::accept ( ) | |||
66 | m_menu-> accept ( ); | 68 | m_menu-> accept ( ); |
67 | m_tabs-> accept ( ); | 69 | m_tabs-> accept ( ); |
68 | m_imethods-> accept ( ); | 70 | m_imethods-> accept ( ); |
71 | m_doctab-> accept ( ); | ||
69 | 72 | ||
70 | QDialog::accept ( ); | 73 | QDialog::accept ( ); |
71 | } | 74 | } |