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

« back to all changes in this revision

Viewing changes to app/configdictionaryselector.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) 2005 Paul Temple <paul.temple@gmx.net>                      *
 
4
 * Copyright (C) 2006 Joseph Kerian <jkerian@gmail.com>                      *
 
5
 * Copyright (C) 2006 Eric Kjeldergaard <kjelderg@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 CONFIGDICTIONARYSELECTOR_H
 
24
#define CONFIGDICTIONARYSELECTOR_H
 
25
 
 
26
#include "ui_configdictselect.h" //From the UI file
 
27
 
 
28
#include <QWidget> //For the WFlags on the constructor
 
29
 
 
30
class KConfigSkeleton;
 
31
class QString;
 
32
class QWidget;
 
33
 
 
34
class ConfigDictionarySelector : public QWidget, public Ui::configDictSelect
 
35
{
 
36
  Q_OBJECT
 
37
 
 
38
  public:
 
39
    explicit ConfigDictionarySelector(  const QString &dictionaryName
 
40
                                      , QWidget *parent = 0
 
41
                                      , KConfigSkeleton *iconfig = NULL
 
42
                                      , Qt::WFlags f = 0 );
 
43
 
 
44
  public slots:
 
45
    void addDictSlot();
 
46
    void deleteDictSlot();
 
47
    bool hasChanged();
 
48
    bool isDefault();
 
49
    void updateSettings();
 
50
    void updateWidgets();
 
51
    void updateWidgetsDefault();
 
52
 
 
53
  signals:
 
54
    void widgetChanged();
 
55
 
 
56
  private:
 
57
    QString          _dictName;
 
58
    KConfigSkeleton *_config;
 
59
};
 
60
 
 
61
#endif