File indexing completed on 2024-05-12 09:48:33

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/Kompare>
0012 
0013 #include "komparesaveoptionsbase.h"
0014 
0015 class DiffSettings;
0016 class QButtonGroup;
0017 
0018 class KompareSaveOptionsWidget : public KompareSaveOptionsBase
0019 {
0020     Q_OBJECT
0021 public:
0022     KompareSaveOptionsWidget(const QString& source, const QString& destination,
0023                              DiffSettings* settings, QWidget* parent);
0024     ~KompareSaveOptionsWidget() override;
0025 
0026     void      saveOptions();
0027     QString   directory() const;
0028 
0029 protected Q_SLOTS:
0030     void      updateCommandLine();
0031 
0032 private:
0033     void      loadOptions();
0034 
0035     DiffSettings*   m_settings;
0036     QString         m_source;
0037     QString         m_destination;
0038     QButtonGroup*   m_FormatBG;
0039 };
0040 
0041 #endif