replacedialog.h (krename-4.0.9) | : | replacedialog.h (krename-4.90.90) | ||
---|---|---|---|---|
skipping to change at line 18 | skipping to change at line 18 | |||
/*************************************************************************** | /*************************************************************************** | |||
* * | * * | |||
* This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | |||
* it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | |||
* the Free Software Foundation; either version 2 of the License, or * | * the Free Software Foundation; either version 2 of the License, or * | |||
* (at your option) any later version. * | * (at your option) any later version. * | |||
* * | * * | |||
***************************************************************************/ | ***************************************************************************/ | |||
#ifndef _REPLACE_DIALOG_H_ | #ifndef REPLACE_DIALOG_H | |||
#define _REPLACE_DIALOG_H_ | #define REPLACE_DIALOG_H | |||
#include <QDialog> | #include <QDialog> | |||
#include "ui_replacewidget.h" | #include "ui_replacewidget.h" | |||
#include "batchrenamer.h" | #include "batchrenamer.h" | |||
class QDialogButtonBox; | class QDialogButtonBox; | |||
class QTableWidgetItem; | class QTableWidgetItem; | |||
/** | /** | |||
* This is a dialog with a list of strings for find and replace | * This is a dialog with a list of strings for find and replace | |||
*/ | */ | |||
class ReplaceDialog : public QDialog { | class ReplaceDialog : public QDialog | |||
Q_OBJECT | { | |||
public: | Q_OBJECT | |||
ReplaceDialog( const QList<TReplaceItem> & items, QWidget* parent = NULL ); | public: | |||
explicit ReplaceDialog(const QList<TReplaceItem> &items, QWidget *parent = n | ||||
ullptr); | ||||
QList<TReplaceItem> replaceList() const; | QList<TReplaceItem> replaceList() const; | |||
private slots: | private Q_SLOTS: | |||
void slotAdd(); | void slotAdd(); | |||
void slotEdit(); | void slotEdit(); | |||
void slotRemove(); | void slotRemove(); | |||
void slotEnableControls(); | void slotSaveList(); | |||
void slotLoadList(); | ||||
private: | void slotEnableControls(); | |||
QTableWidgetItem* createTableItem( const QString & text, bool isCheckable = | ||||
false ); | ||||
private: | private: | |||
QTableWidgetItem *createTableItem(const QString &text, bool isCheckable = fa | ||||
lse); | ||||
private: | ||||
Ui::ReplaceWidget m_widget; | Ui::ReplaceWidget m_widget; | |||
QDialogButtonBox* m_buttons; | QDialogButtonBox *m_buttons; | |||
}; | }; | |||
#endif // _REPLACE_DIALOG_H_ | #endif // REPLACE_DIALOG_H | |||
End of changes. 10 change blocks. | ||||
17 lines changed or deleted | 22 lines changed or added |