~ubuntu-branches/ubuntu/quantal/kiten/quantal-proposed

« back to all changes in this revision

Viewing changes to app/configuredialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2011-07-10 11:23:47 UTC
  • Revision ID: james.westby@ubuntu.com-20110710112347-ykfhtvam3kgssspo
Tags: upstream-4.6.90+repack
ImportĀ upstreamĀ versionĀ 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 * This file is part of Kiten, a KDE Japanese Reference Tool...              *
 
3
 * Copyright (C) 2001 Jason Katz-Brown <jason@katzbrown.com>                 *
 
4
 * Copyright (C) 2005 Paul Temple <paul.temple@gmx.net>                      *
 
5
 * Copyright (C) 2006 Joseph Kerian <jkerian@gmail.com>                      *
 
6
 *                                                                           *
 
7
 * This program is free software; you can redistribute it and/or modify      *
 
8
 * it under the terms of the GNU General Public License as published by      *
 
9
 * the Free Software Foundation; either version 2 of the License, or         *
 
10
 * (at your option) any later version.                                       *
 
11
 *                                                                           *
 
12
 * This program is distributed in the hope that it will be useful,           *
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
 
15
 * GNU General Public License for more details.                              *
 
16
 *                                                                           *
 
17
 * You should have received a copy of the GNU General Public License         *
 
18
 * along with this program; if not, write to the Free Software               *
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 *
 
20
 * USA                                                                       *
 
21
 *****************************************************************************/
 
22
 
 
23
#ifndef CONFIGUREDIALOG_H
 
24
#define CONFIGUREDIALOG_H
 
25
 
 
26
#include <KConfigDialog>
 
27
 
 
28
class KitenConfigSkeleton;
 
29
class QWidget;
 
30
 
 
31
class ConfigureDialog : public KConfigDialog
 
32
{
 
33
  Q_OBJECT
 
34
 
 
35
  public:
 
36
    explicit ConfigureDialog(  QWidget *parent = 0
 
37
                             , KitenConfigSkeleton *config = NULL );
 
38
    virtual ~ConfigureDialog();
 
39
 
 
40
  signals:
 
41
    void settingsChangedSignal();
 
42
    void updateWidgetsSignal();
 
43
    void updateWidgetsDefaultSignal();
 
44
    void updateSettingsSignal();
 
45
 
 
46
  private slots:
 
47
    void updateSettings();
 
48
    void updateWidgets();
 
49
    void updateWidgetsDefault();
 
50
 
 
51
  private:
 
52
    bool     isDefault();
 
53
    QWidget *makeDictionaryPreferencesPage( QWidget *, KitenConfigSkeleton* );
 
54
    QWidget *makeDictionaryFileSelectionPage( QWidget *, KitenConfigSkeleton* );
 
55
    QWidget *makeSortingPage( QWidget *, KitenConfigSkeleton* );
 
56
};
 
57
 
 
58
#endif