File indexing completed on 2022-10-04 17:30:12

0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 // SPDX-FileCopyrightText: 2007 Dominik Seichter <domseichter@web.de>
0003 
0004 #ifndef CUSTOM_DIALOG_H
0005 #define CUSTOM_DIALOG_H
0006 
0007 #include <QDialog>
0008 #include "ui_customfilenamedlg.h"
0009 #include "batchrenamer.h"
0010 #include <KSharedConfig>
0011 
0012 class KRenameFile;
0013 
0014 class CustomDialog : public QDialog
0015 {
0016     Q_OBJECT
0017 public:
0018     CustomDialog(const KRenameFile &file, QWidget *parent);
0019     ~CustomDialog() override;
0020 
0021     /**
0022      *  \returns true if the current user settings
0023      *           specify manual changes to the filename
0024      */
0025     bool hasManualChanges() const;
0026 
0027     /**
0028      * \returns the manually changed filename
0029      */
0030     const QString manualChanges() const;
0031 
0032     /**
0033      * \returns the manual change mode
0034      */
0035     EManualChangeMode manualChangeMode() const;
0036 
0037 private Q_SLOTS:
0038     void slotEnableControls();
0039 
0040 private:
0041     Ui::CustomFilenameDlg m_widget;
0042 };
0043 
0044 #endif // CUSTOM_DIALOG_H