File indexing completed on 2024-04-21 03:49:33
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org> 0004 // 0005 0006 #ifndef MARBLE_EXTERNALEDITORDIALOG_H 0007 #define MARBLE_EXTERNALEDITORDIALOG_H 0008 0009 #include "marble_export.h" 0010 0011 #include <QDialog> 0012 0013 #include "ui_ExternalEditor.h" 0014 0015 namespace Marble 0016 { 0017 0018 class ExternalEditorDialogPrivate; 0019 0020 class MARBLE_EXPORT ExternalEditorDialog: public QDialog, private Ui::ExternalEditor 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit ExternalEditorDialog( QWidget * parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() ); 0026 0027 ~ExternalEditorDialog() override; 0028 0029 QString externalEditor() const; 0030 0031 bool saveDefault() const; 0032 0033 private Q_SLOTS: 0034 void updateDefaultEditor( int index ); 0035 0036 private: 0037 ExternalEditorDialogPrivate * const d; 0038 }; 0039 0040 } // namespace Marble 0041 0042 #endif // MARBLE_EXTERNALEDITORDIALOG_H