File indexing completed on 2023-05-30 10:45:27
0001 /* 0002 SPDX-FileCopyrightText: 2004 Peter Hedlund <peter.hedlund@kdemail.net> 0003 SPDX-License-Identifier: LGPL-2.0-only 0004 */ 0005 0006 #ifndef PREFCHARACTER_H 0007 #define PREFCHARACTER_H 0008 0009 #include <KActionCollection> 0010 0011 #include "ui_prefcharacterbase.h" 0012 0013 class DlgSpecChar; 0014 0015 /** 0016 @author Peter Hedlund 0017 */ 0018 class PrefCharacter : public QWidget, public Ui::PrefCharacterBase 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit PrefCharacter(QWidget *parent, KActionCollection * ac); 0023 void updateWidgets(); 0024 bool hasChanged(); 0025 bool isDefault(); 0026 void updateSettings(); 0027 0028 Q_SIGNALS: 0029 void widgetModified(); 0030 0031 private Q_SLOTS: 0032 void fillWidgets(); 0033 void slotCharListSelectionChanged(); 0034 void slotDlgSpecCharClosed(); 0035 void slotSelectSpecChar(); 0036 void slotSpecChar(QChar); 0037 0038 private: 0039 KActionCollection * m_actionCollection; 0040 DlgSpecChar* m_dlgSpecChar; 0041 }; 0042 0043 #endif