~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/dolphin/src/dolphinsettingsdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-27 12:09:48 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527120948-dottsyd5rcwhzd36
Tags: 4:4.0.80-1ubuntu1
* Merge with Debian
 - remove 97_fix_target_link_libraries.diff
 - Add replaces/conflicts on -kde4 packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2006 by Peter Penz                                      *
 
3
 *   peter.penz@gmx.at                                                     *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
 
19
 ***************************************************************************/
 
20
 
 
21
#ifndef DOLPHINSETTINGSDIALOG_H
 
22
#define DOLPHINSETTINGSDIALOG_H
 
23
 
 
24
#include <kpagedialog.h>
 
25
 
 
26
class DolphinMainWindow;
 
27
class SettingsPageBase;
 
28
 
 
29
/**
 
30
 * @brief Settings dialog for Dolphin.
 
31
 *
 
32
 * Contains the pages for startup settings, general settings and view settings.
 
33
 *
 
34
 * @author Peter Penz <peter.penz@gmx.at>
 
35
 */
 
36
class DolphinSettingsDialog : public KPageDialog
 
37
{
 
38
    Q_OBJECT
 
39
 
 
40
public:
 
41
    explicit DolphinSettingsDialog(DolphinMainWindow* mainWindow);
 
42
    virtual ~DolphinSettingsDialog();
 
43
 
 
44
protected slots:
 
45
    /** @see KDialog::slotButtonClicked() */
 
46
    virtual void slotButtonClicked(int button);
 
47
 
 
48
private slots:
 
49
    /** Enables the Apply button. */
 
50
    void enableApply();
 
51
 
 
52
private:
 
53
    void applySettings();
 
54
    void restoreDefaults();
 
55
 
 
56
private:
 
57
    QList<SettingsPageBase*> m_pages;
 
58
};
 
59
 
 
60
#endif