1 /*
2     This file is part of Kiten, a KDE Japanese Reference Tool
3     SPDX-FileCopyrightText: 2011 Daniel E. Moctezuma <democtezuma@gmail.com>
4 
5     SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KANJIBROWSER_H
9 #define KANJIBROWSER_H
10 
11 #include <KXmlGuiWindow>
12 
13 class DictFileKanjidic;
14 class KanjiBrowserConfigSkeleton;
15 class KanjiBrowserView;
16 
17 class KanjiBrowser : public KXmlGuiWindow
18 {
19   friend class KanjiBrowserView;
20 
21   Q_OBJECT
22 
23   public:
24          KanjiBrowser();
25         ~KanjiBrowser() override;
26 
27   private Q_SLOTS:
28     /**
29      * Change/update the status bar.
30      */
31     void changeStatusBar( const QString &text );
32     /**
33      * Show a font preferences dialog.
34      */
35     void showPreferences();
36 
37   private:
38     /**
39      * Load KANJIDIC dictionary and parse the necessary information and
40      * calls KanjiBrowserView::setupView() member function to finish the setup.
41      * This should be called only once at initial setup of KanjiBrowser or to
42      * reload the dictionary in case of updates.
43      */
44     void loadKanji();
45 
46     KanjiBrowserConfigSkeleton *_config;
47     KanjiBrowserView           *_view;
48     DictFileKanjidic           *_dictFileKanjidic;
49 };
50 
51 #endif
52