File indexing completed on 2024-04-28 15:51:42
0001 /* 0002 SPDX-FileCopyrightText: 2008 Pino Toscano <pino@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef DLGEDITOR_H 0008 #define DLGEDITOR_H 0009 0010 #include <QHash> 0011 #include <QWidget> 0012 0013 class QComboBox; 0014 class QFormLayout; 0015 class QLineEdit; 0016 class QStackedWidget; 0017 0018 class DlgEditor : public QWidget 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 explicit DlgEditor(QWidget *parent = nullptr); 0024 ~DlgEditor() override; 0025 0026 private Q_SLOTS: 0027 void editorChanged(int which); 0028 0029 private: 0030 QComboBox *m_editorChooser; 0031 // Two line edits, because one is connected to the config skeleton. 0032 QLineEdit *m_editorCommandDisplay; 0033 QLineEdit *m_editorCommandEditor; 0034 QStackedWidget *m_editorCommandStack; 0035 QFormLayout *m_layout; 0036 0037 QHash<int, QString> m_editors; 0038 }; 0039 0040 #endif