1 // SPDX-License-Identifier: LGPL-2.1-or-later 2 // 3 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org> 4 // 5 6 #ifndef MARBLE_EXTERNALEDITORDIALOG_H 7 #define MARBLE_EXTERNALEDITORDIALOG_H 8 9 #include "marble_export.h" 10 11 #include <QDialog> 12 13 #include "ui_ExternalEditor.h" 14 15 namespace Marble 16 { 17 18 class ExternalEditorDialogPrivate; 19 20 class MARBLE_EXPORT ExternalEditorDialog: public QDialog, private Ui::ExternalEditor 21 { 22 Q_OBJECT 23 24 public: 25 explicit ExternalEditorDialog( QWidget * parent = nullptr, Qt::WindowFlags f = nullptr ); 26 27 ~ExternalEditorDialog() override; 28 29 QString externalEditor() const; 30 31 bool saveDefault() const; 32 33 private Q_SLOTS: 34 void updateDefaultEditor( int index ); 35 36 private: 37 ExternalEditorDialogPrivate * const d; 38 }; 39 40 } // namespace Marble 41 42 #endif // MARBLE_EXTERNALEDITORDIALOG_H 43