File indexing completed on 2024-05-19 03:44:32

0001 /*
0002     This file is part of Kiten, a KDE Japanese Reference Tool
0003     SPDX-FileCopyrightText: 2011 Daniel E. Moctezuma <democtezuma@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KANJIBROWSER_H
0009 #define KANJIBROWSER_H
0010 
0011 #include <KXmlGuiWindow>
0012 
0013 class DictFileKanjidic;
0014 class KanjiBrowserConfigSkeleton;
0015 class KanjiBrowserView;
0016 
0017 class KanjiBrowser : public KXmlGuiWindow
0018 {
0019     friend class KanjiBrowserView;
0020 
0021     Q_OBJECT
0022 
0023 public:
0024     KanjiBrowser();
0025     ~KanjiBrowser() override;
0026 
0027 private Q_SLOTS:
0028     /**
0029      * Change/update the status bar.
0030      */
0031     void changeStatusBar(const QString &text);
0032     /**
0033      * Show a font preferences dialog.
0034      */
0035     void showPreferences();
0036 
0037 private:
0038     /**
0039      * Load KANJIDIC dictionary and parse the necessary information and
0040      * calls KanjiBrowserView::setupView() member function to finish the setup.
0041      * This should be called only once at initial setup of KanjiBrowser or to
0042      * reload the dictionary in case of updates.
0043      */
0044     void loadKanji();
0045 
0046     KanjiBrowserConfigSkeleton *_config;
0047     KanjiBrowserView *_view;
0048     DictFileKanjidic *_dictFileKanjidic;
0049 };
0050 
0051 #endif