summaryrefslogtreecommitdiff
path: root/core/settings/launcher/launchersettings.cpp
blob: b794519990e7cacbe8d26bc5adb982ff5187adf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

#include <qlayout.h>

#include <opie/otabwidget.h>

#include "launchersettings.h"
#include "tabssettings.h"
#include "taskbarsettings.h"


LauncherSettings::LauncherSettings ( ) : QDialog ( 0, "LauncherSettings", false )
{
	setCaption ( tr( "Launcher Settings" ));

	QVBoxLayout *lay = new QVBoxLayout ( this, 4, 4 );

	OTabWidget *tw = new OTabWidget ( this, "otab" );
	lay-> addWidget ( tw );

	m_tabs = new TabsSettings ( tw );
	m_taskbar = new TaskbarSettings ( tw );

	tw-> addTab ( m_taskbar, "appearance/styletabicon.png", tr( "Taskbar" ));
	tw-> addTab ( m_tabs, "appearance/styletabicon.png", tr( "Tabs" ));
}

void LauncherSettings::accept ( )
{
	m_taskbar-> accept ( );
	m_tabs-> accept ( );

	QDialog::accept ( );
}

void LauncherSettings::done ( int r )
{
	QDialog::done ( r );
	close ( );
}