summaryrefslogtreecommitdiff
path: root/core/settings/launcher/launchersettings.cpp
Unidiff
Diffstat (limited to 'core/settings/launcher/launchersettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/launcher/launchersettings.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/core/settings/launcher/launchersettings.cpp b/core/settings/launcher/launchersettings.cpp
new file mode 100644
index 0000000..b794519
--- a/dev/null
+++ b/core/settings/launcher/launchersettings.cpp
@@ -0,0 +1,39 @@
1
2#include <qlayout.h>
3
4#include <opie/otabwidget.h>
5
6#include "launchersettings.h"
7#include "tabssettings.h"
8#include "taskbarsettings.h"
9
10
11LauncherSettings::LauncherSettings ( ) : QDialog ( 0, "LauncherSettings", false )
12{
13 setCaption ( tr( "Launcher Settings" ));
14
15 QVBoxLayout *lay = new QVBoxLayout ( this, 4, 4 );
16
17 OTabWidget *tw = new OTabWidget ( this, "otab" );
18 lay-> addWidget ( tw );
19
20 m_tabs = new TabsSettings ( tw );
21 m_taskbar = new TaskbarSettings ( tw );
22
23 tw-> addTab ( m_taskbar, "appearance/styletabicon.png", tr( "Taskbar" ));
24 tw-> addTab ( m_tabs, "appearance/styletabicon.png", tr( "Tabs" ));
25}
26
27void LauncherSettings::accept ( )
28{
29 m_taskbar-> accept ( );
30 m_tabs-> accept ( );
31
32 QDialog::accept ( );
33}
34
35void LauncherSettings::done ( int r )
36{
37 QDialog::done ( r );
38 close ( );
39}