File indexing completed on 2025-01-12 05:02:08
0001 #pragma once 0002 0003 /* 0004 * SPDX-FileCopyrightText: 2003-2007 Craig Drummond <craig@kde.org> 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "FcEngine.h" 0009 #include <KSelectAction> 0010 0011 namespace KFI 0012 { 0013 class CPreviewSelectAction : public KSelectAction 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 enum Mode { 0019 Basic, 0020 BlocksAndScripts, 0021 ScriptsOnly, 0022 }; 0023 0024 explicit CPreviewSelectAction(QObject *parent, Mode mode = Basic); 0025 ~CPreviewSelectAction() override 0026 { 0027 } 0028 0029 void setStd(); 0030 void setMode(Mode mode); 0031 0032 Q_SIGNALS: 0033 0034 void range(const QList<CFcEngine::TRange> &range); 0035 0036 private Q_SLOTS: 0037 0038 void selected(int index); 0039 0040 private: 0041 int m_numUnicodeBlocks; 0042 }; 0043 0044 }