1
/* ============================================================
2
* Authors: Gilles Caulier <caulier dot gilles at free.fr>
4
* Description : showfoto setup dialog.
6
* Copyright 2005 by Gilles Caulier
8
* This program is free software; you can redistribute it
9
* and/or modify it under the terms of the GNU General
10
* Public License as published by the Free Software Foundation;
11
* either version 2, or (at your option)
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* ============================================================ */
23
#include <qtabwidget.h>
24
#include <qapplication.h>
30
#include <kiconloader.h>
34
#include "setupeditor.h"
35
#include "setupplugins.h"
36
#include "setupslideshow.h"
39
Setup::Setup(QWidget* parent, const char* name, Setup::Page page)
40
: KDialogBase(IconList, i18n("Configure"), Help|Ok|Cancel, Ok, parent,
43
setHelp("setupdialog.anchor", "showfoto");
45
page_editor = addPage(i18n("General"), i18n("General Settings"),
46
BarIcon("showfoto", KIcon::SizeMedium));
47
editorPage_ = new SetupEditor(page_editor);
49
page_plugins = addPage(i18n("Image Plugins"), i18n("Image Plugins List"),
50
BarIcon("digikamimageplugins", KIcon::SizeMedium));
51
pluginsPage_ = new SetupPlugins(page_plugins);
53
page_slideshow = addPage(i18n("Slide Show"), i18n("Slide Show Settings"),
54
BarIcon("slideshow", KIcon::SizeMedium));
55
slideshowPage_ = new SetupSlideShow(page_slideshow);
57
connect(this, SIGNAL(okClicked()),
58
this, SLOT(slotOkClicked()) );
68
void Setup::slotOkClicked()
70
editorPage_->applySettings();
71
pluginsPage_->applySettings();
72
slideshowPage_->applySettings();