insertpartfilenamedlg.h (krename-4.0.9) | : | insertpartfilenamedlg.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 _INSERTPARTFILENAMEDLG_H_ | #ifndef INSERTPARTFILENAMEDLG_H | |||
#define _INSERTPARTFILENAMEDLG_H_ | #define INSERTPARTFILENAMEDLG_H | |||
#include <QDialog> | #include <QDialog> | |||
#include "ui_partfilenamewidget.h" | #include "ui_partfilenamewidget.h" | |||
class QDialogButtonBox; | class QDialogButtonBox; | |||
class InsertPartFilenameDlg : public QDialog { | class InsertPartFilenameDlg : public QDialog | |||
Q_OBJECT | { | |||
Q_OBJECT | ||||
public: | public: | |||
InsertPartFilenameDlg( const QString & filename, QWidget* parent = NULL ); | explicit InsertPartFilenameDlg(const QString &filename, QWidget *parent = nu | |||
llptr); | ||||
/** | /** | |||
* \returns the command to insert a substring of the original | * \returns the command to insert a substring of the original | |||
* filename into the new filename | * filename into the new filename | |||
*/ | */ | |||
inline const QString & command() const; | inline const QString &command() const; | |||
private slots: | private Q_SLOTS: | |||
void slotSelectionChanged(); | void slotSelectionChanged(); | |||
void slotUpdateKRenameCommand(); | void slotUpdateKRenameCommand(); | |||
private: | private: | |||
Ui::PartFilenameWidget m_widget; | Ui::PartFilenameWidget m_widget; | |||
QDialogButtonBox* m_buttons; | QDialogButtonBox *m_buttons; | |||
QString m_command; | QString m_command; | |||
int m_start; | int m_start; | |||
int m_end; | int m_end; | |||
}; | }; | |||
inline const QString & InsertPartFilenameDlg::command() const | inline const QString &InsertPartFilenameDlg::command() const | |||
{ | { | |||
return m_command; | return m_command; | |||
} | } | |||
#endif // _INSERTPARTFILENAMEDLG_H_ | #endif // INSERTPARTFILENAMEDLG_H | |||
End of changes. 9 change blocks. | ||||
11 lines changed or deleted | 13 lines changed or added |