File indexing completed on 2024-05-05 04:19:18
0001 // vim: set tabstop=4 shiftwidth=4 expandtab: 0002 /* 0003 Gwenview: an image viewer 0004 Copyright 2018 Aurélien Gâteau <agateau@kde.org> 0005 Copyright 2018 Peter Mühlenpfordt <devel@ukn8.de> 0006 0007 This program is free software; you can redistribute it and/or 0008 modify it under the terms of the GNU General Public License 0009 as published by the Free Software Foundation; either version 2 0010 of the License, or (at your option) any later version. 0011 0012 This program is distributed in the hope that it will be useful, 0013 but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0015 GNU General Public License for more details. 0016 0017 You should have received a copy of the GNU General Public License 0018 along with this program; if not, write to the Free Software 0019 Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA. 0020 0021 */ 0022 #ifndef RENAMEDIALOG_H 0023 #define RENAMEDIALOG_H 0024 0025 // Qt 0026 #include <QDialog> 0027 0028 // KF 0029 0030 // Local 0031 0032 namespace Gwenview 0033 { 0034 struct RenameDialogPrivate; 0035 class RenameDialog : public QDialog 0036 { 0037 Q_OBJECT 0038 public: 0039 explicit RenameDialog(QWidget *parent); 0040 ~RenameDialog() override; 0041 0042 void setFilename(const QString &filename); 0043 QString filename() const; 0044 0045 private: 0046 RenameDialogPrivate *const d; 0047 0048 void updateButtons(); 0049 }; 0050 0051 } // namespace 0052 0053 #endif /* RENAMEDIALOG_H */