summaryrefslogtreecommitdiff
path: root/kcm/main.cpp
diff options
context:
space:
mode:
authoronestone <onestone>2006-12-19 00:31:09 +0000
committeronestone <onestone>2006-12-19 00:31:09 +0000
commite44afc75929e20f93ed53bc9880d59d1feb66044 (patch)
tree33786a03bd64d8b75ae078ccc74da44887e17d20 /kcm/main.cpp
parent2f44397a29a96715e919bc5173e7dcfacbd16c78 (diff)
downloadaquamarine-e44afc75929e20f93ed53bc9880d59d1feb66044.tar.gz
aquamarine-e44afc75929e20f93ed53bc9880d59d1feb66044.tar.bz2
aquamarine: added aquamarine configuration to the kcontrol module
Diffstat (limited to 'kcm/main.cpp')
-rw-r--r--kcm/main.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/kcm/main.cpp b/kcm/main.cpp
index 4157bec..7cdfdc0 100644
--- a/kcm/main.cpp
+++ b/kcm/main.cpp
@@ -19,21 +19,27 @@
*
*/
+#include "aqsettings.h"
+
+#include <qtabwidget.h>
+#include <qlayout.h>
+
#include <kapplication.h>
#include <kaboutdata.h>
#include <kconfig.h>
+#include <kdialog.h>
#include <kdebug.h>
#include <dcopclient.h>
#include <kgenericfactory.h>
#include "main.h"
+#include "aquamarine_ui.h"
typedef KGenericFactory<KCMBeryl, QWidget> KCMBerylFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_beryl, KCMBerylFactory("kcmberyl"))
KCMBeryl::~KCMBeryl( )
{
- printf("Unload\n");
}
KCMBeryl::KCMBeryl(QWidget *parent, const char *name, const QStringList &)
@@ -47,17 +53,38 @@ KCMBeryl::KCMBeryl(QWidget *parent, const char *name, const QStringList &)
about->addAuthor("Dennis Kasprzyk", 0, "onestone@beryl-project.org");
setAboutData( about );
+
+ m_tabs = new QTabWidget( this );
+
+
+ AquamarineWidget *aq = new AquamarineWidget(m_tabs, "Aquamarine");
+ m_tabs->addTab(aq, "Aquamarine");
+
+ addConfig(AqSettings::self(),aq);
+
+ QVBoxLayout *top = new QVBoxLayout( this, 0, KDialog::spacingHint() );
+ top->addWidget( m_tabs );
+
+ load();
}
+
void KCMBeryl::load()
{
+ KCModule::load();
}
void KCMBeryl::save()
{
+ KCModule::save();
+ DCOPClient *client = kapp->dcopClient();
+ if (!client->isAttached())
+ client->attach();
+ client->send("kwin", "KWinInterface", "reconfigure()", "");
}
void KCMBeryl::defaults()
{
+ KCModule::defaults();
}