• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kiten/lib

  • sources
  • kde-4.14
  • kdeedu
  • kiten
  • lib
  • DictEdict
dictfilefieldselector.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * This file is part of Kiten, a KDE Japanese Reference Tool *
3  * Copyright (C) 2006 Joseph Kerian <jkerian@gmail.com> *
4  * *
5  * This library is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Library General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2 of the License, or (at your option) any later version. *
9  * *
10  * This library 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 GNU *
13  * Library General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU Library General Public License *
16  * along with this library; see the file COPYING.LIB. If not, write to *
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
18  * Boston, MA 02110-1301, USA. *
19  *****************************************************************************/
20 
21 //This is currently the only file in libkiten dict handlers to have moc code included...
22 
23 #ifndef KITEN_DICTFILEPREFERENCEDIALOG_H
24 #define KITEN_DICTFILEPREFERENCEDIALOG_H
25 
26 #include "dictionarypreferencedialog.h"
27 
28 #include <QWidget>
29 
30 class KActionSelector;
31 class KConfigSkeleton;
32 class QString;
33 class QStringList;
34 
35 //This is the default one used by edict and kanjidic
36 class DictFileFieldSelector : public DictionaryPreferenceDialog
37 {
38  Q_OBJECT
39 
40  public:
41  DictFileFieldSelector( KConfigSkeleton *config
42  , const QString &dictionaryTypeName
43  , QWidget *parent );
44  virtual ~DictFileFieldSelector();
45 
46  public slots:
47  void setAvailable( const QStringList &list );
48  void addAvailable( const QStringList &list );
49  void setDefaultList( const QStringList &list );
50  void readFromPrefs();
51  void writeToPrefs();
52 
53  void updateWidgets();
54  void updateWidgetsDefault();
55  void updateSettings();
56  void settingChanged();
57 
58  signals:
59  void widgetChanged();
60 
61  private:
62  QStringList m_completeList;
63  QStringList m_defaultList;
64  QString m_dictName;
65  KActionSelector *m_listView;
66  KConfigSkeleton *m_config;
67 };
68 
69 #endif
QWidget
DictFileFieldSelector::~DictFileFieldSelector
virtual ~DictFileFieldSelector()
Definition: dictfilefieldselector.cpp:72
DictFileFieldSelector
Definition: dictfilefieldselector.h:36
DictionaryPreferenceDialog
This abstract base class specifies the interface for dictionary preference dialogs in user applicatio...
Definition: dictionarypreferencedialog.h:42
DictFileFieldSelector::readFromPrefs
void readFromPrefs()
Definition: dictfilefieldselector.cpp:82
DictFileFieldSelector::setDefaultList
void setDefaultList(const QStringList &list)
Definition: dictfilefieldselector.cpp:123
DictFileFieldSelector::writeToPrefs
void writeToPrefs()
Definition: dictfilefieldselector.cpp:147
DictFileFieldSelector::addAvailable
void addAvailable(const QStringList &list)
Definition: dictfilefieldselector.cpp:76
DictFileFieldSelector::widgetChanged
void widgetChanged()
DictFileFieldSelector::DictFileFieldSelector
DictFileFieldSelector(KConfigSkeleton *config, const QString &dictionaryTypeName, QWidget *parent)
Definition: dictfilefieldselector.cpp:35
DictFileFieldSelector::updateSettings
void updateSettings()
Definition: dictfilefieldselector.cpp:133
DictFileFieldSelector::settingChanged
void settingChanged()
Definition: dictfilefieldselector.cpp:128
DictFileFieldSelector::updateWidgetsDefault
void updateWidgetsDefault()
Definition: dictfilefieldselector.cpp:143
DictFileFieldSelector::updateWidgets
void updateWidgets()
Definition: dictfilefieldselector.cpp:138
QString
DictFileFieldSelector::setAvailable
void setAvailable(const QStringList &list)
Definition: dictfilefieldselector.cpp:117
QStringList
QObject::parent
QObject * parent() const
dictionarypreferencedialog.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kiten/lib

Skip menu "kiten/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal