File indexing completed on 2024-05-05 05:45:47
0001 /* 0002 SPDX-FileCopyrightText: 2001-2003 Otto Bruggeman <otto.bruggeman@home.nl> 0003 SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KOMPARESAVEOPTIONSWIDGET_H 0009 #define KOMPARESAVEOPTIONSWIDGET_H 0010 0011 #include <KompareDiff2/Global> 0012 0013 #include "komparesaveoptionsbase.h" 0014 0015 namespace KompareDiff2 { 0016 class DiffSettings; 0017 } 0018 class QButtonGroup; 0019 0020 class KompareSaveOptionsWidget : public KompareSaveOptionsBase 0021 { 0022 Q_OBJECT 0023 public: 0024 KompareSaveOptionsWidget(const QString& source, const QString& destination, 0025 KompareDiff2::DiffSettings* settings, QWidget* parent); 0026 ~KompareSaveOptionsWidget() override; 0027 0028 void saveOptions(); 0029 QString directory() const; 0030 0031 protected Q_SLOTS: 0032 void updateCommandLine(); 0033 0034 private: 0035 void loadOptions(); 0036 0037 KompareDiff2::DiffSettings* m_settings; 0038 QString m_source; 0039 QString m_destination; 0040 QButtonGroup* m_FormatBG; 0041 }; 0042 0043 #endif