~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/showfoto/setup.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream) (37 hardy)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-1bw3w3nrsso7yj4z
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ============================================================
2
 
 * Authors: Gilles Caulier <caulier dot gilles at free.fr>
3
 
 * Date   : 2005-04-02
4
 
 * Description : showfoto setup dialog.
5
 
 *
6
 
 * Copyright 2005 by Gilles Caulier
7
 
 *
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)
12
 
 * any later version.
13
 
 *
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.
18
 
 *
19
 
 * ============================================================ */
20
 
 
21
 
// Qt includes.
22
 
 
23
 
#include <qtabwidget.h>
24
 
#include <qapplication.h>
25
 
#include <qframe.h>
26
 
 
27
 
// KDE includes.
28
 
 
29
 
#include <klocale.h>
30
 
#include <kiconloader.h>
31
 
 
32
 
// Local includes.
33
 
 
34
 
#include "setupeditor.h"
35
 
#include "setupplugins.h"
36
 
#include "setupslideshow.h"
37
 
#include "setup.h"
38
 
 
39
 
Setup::Setup(QWidget* parent, const char* name, Setup::Page page)
40
 
     : KDialogBase(IconList, i18n("Configure"), Help|Ok|Cancel, Ok, parent,
41
 
                   name, true, true )
42
 
{
43
 
    setHelp("setupdialog.anchor", "showfoto");
44
 
 
45
 
    page_editor = addPage(i18n("General"), i18n("General Settings"),
46
 
                        BarIcon("showfoto", KIcon::SizeMedium));
47
 
    editorPage_ = new SetupEditor(page_editor);
48
 
 
49
 
    page_plugins = addPage(i18n("Image Plugins"), i18n("Image Plugins List"),
50
 
                           BarIcon("digikamimageplugins", KIcon::SizeMedium));
51
 
    pluginsPage_ = new SetupPlugins(page_plugins);
52
 
 
53
 
    page_slideshow = addPage(i18n("Slide Show"), i18n("Slide Show Settings"),
54
 
                             BarIcon("slideshow", KIcon::SizeMedium));
55
 
    slideshowPage_ = new SetupSlideShow(page_slideshow);
56
 
 
57
 
    connect(this, SIGNAL(okClicked()),
58
 
            this, SLOT(slotOkClicked()) );
59
 
 
60
 
    showPage((int) page);
61
 
    show();
62
 
}
63
 
 
64
 
Setup::~Setup()
65
 
{
66
 
}
67
 
 
68
 
void Setup::slotOkClicked()
69
 
{
70
 
    editorPage_->applySettings();
71
 
    pluginsPage_->applySettings();
72
 
    slideshowPage_->applySettings();
73
 
    close();
74
 
}
75
 
 
76
 
#include "setup.moc"