krenamewindow.h (krename-4.0.9) | : | krenamewindow.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 _KRENAMEWINDOW_H_ | #ifndef KRENAMEWINDOW_H | |||
#define _KRENAMEWINDOW_H_ | #define KRENAMEWINDOW_H | |||
#include <kmainwindow.h> | #include <kmainwindow.h> | |||
#include "batchrenamer.h" | #include "batchrenamer.h" | |||
#include <QHash> | #include <QHash> | |||
#include <KTreeWidgetSearchLine> | ||||
class KRenameModel; | class KRenameModel; | |||
class KRenamePreviewModel; | class KRenamePreviewModel; | |||
class KPushButton; | class QPushButton; | |||
class QAbstractItemView; | class QAbstractItemView; | |||
class QComboBox; | class QComboBox; | |||
class QDialogButtonBox; | class QDialogButtonBox; | |||
class QLabel; | ||||
class QLineEdit; | class QLineEdit; | |||
class QModelIndex; | class QModelIndex; | |||
class QStackedWidget; | class QStackedWidget; | |||
class QTabBar; | class QTabBar; | |||
class QTreeWidgetItem; | class QTreeWidgetItem; | |||
class Plugin; | class Plugin; | |||
class RichTextItemDelegate; | class RichTextItemDelegate; | |||
namespace Ui { | namespace Ui | |||
class KRenameFiles; | { | |||
class KRenameDestination; | class KRenameFiles; | |||
class KRenameSimple; | class KRenameDestination; | |||
class KRenamePlugins; | class KRenameSimple; | |||
class KRenameFilename; | class KRenamePlugins; | |||
class KRenameFilename; | ||||
}; | }; | |||
/** KRenameWindow is the main window of KRename. | /** KRenameWindow is the main window of KRename. | |||
* | * | |||
* According to the window mode setting, a row of buttons | * According to the window mode setting, a row of buttons | |||
* is displayed at the bottom of the window. | * is displayed at the bottom of the window. | |||
*/ | */ | |||
class KRenameWindow : public KMainWindow { | class KRenameWindow : public KMainWindow | |||
Q_OBJECT | { | |||
Q_OBJECT | ||||
friend class KRenameImpl; | friend class KRenameImpl; | |||
public: | public: | |||
KRenameWindow( QWidget* parent = NULL ); | explicit KRenameWindow(QWidget *parent = nullptr); | |||
~KRenameWindow(); | ~KRenameWindow(); | |||
/** The maximum number of pages in any gui mode. | /** The maximum number of pages in any gui mode. | |||
* No gui mode can have more pages than this. | * No gui mode can have more pages than this. | |||
*/ | */ | |||
static const int MAX_PAGES = 4; | static const int MAX_PAGES = 4; | |||
/** This structure is used to describe a gui mode. | /** This structure is used to describe a gui mode. | |||
* It is required to map indexes to the right indexes | * It is required to map indexes to the right indexes | |||
* of the widget stack and to retrieve the total number | * of the widget stack and to retrieve the total number | |||
* of pages per mode as well as the individual page titles. | * of pages per mode as well as the individual page titles. | |||
*/ | */ | |||
typedef struct { | typedef struct { | |||
const int numPages; | const int numPages; | |||
const char* pageTitles[KRenameWindow::MAX_PAGES]; | const char *pageTitles[KRenameWindow::MAX_PAGES]; | |||
const int mapIndex[KRenameWindow::MAX_PAGES]; | const int mapIndex[KRenameWindow::MAX_PAGES]; | |||
const char* pageIcons[KRenameWindow::MAX_PAGES]; | const char *pageIcons[KRenameWindow::MAX_PAGES]; | |||
} TGuiMode; | } TGuiMode; | |||
/** | /** | |||
* Load UI configuration where necessary. | * Load UI configuration where necessary. | |||
*/ | */ | |||
void loadConfig(); | void loadConfig(); | |||
/** | /** | |||
* Save UI configuration where necessary. | * Save UI configuration where necessary. | |||
*/ | */ | |||
void saveConfig(); | void saveConfig(); | |||
/** Set the count displayed on the files tab of KRename | /** Set the count displayed on the files tab of KRename | |||
* @param count typically the number of files in the list | * @param count typically the number of files in the list | |||
*/ | */ | |||
void setCount( unsigned int count ); | void setCount(unsigned int count); | |||
/** Set the template for the filename. | /** Set the template for the filename. | |||
* | * | |||
* @param templ the new template | * @param templ the new template | |||
* @param insert if true the template string will be inserted into the curr ent | * @param insert if true the template string will be inserted into the curr ent | |||
* template otherwise it will be replaced | * template otherwise it will be replaced | |||
*/ | */ | |||
void setFilenameTemplate( const QString & templ, bool insert = false ); | void setFilenameTemplate(const QString &templ, bool insert = false); | |||
/** Set the template for the filename extension. | /** Set the template for the filename extension. | |||
* | * | |||
* @param templ the new template | * @param templ the new template | |||
* @param insert if true the template string will be inserted into the curr ent | * @param insert if true the template string will be inserted into the curr ent | |||
* template otherwise it will be replaced | * template otherwise it will be replaced | |||
*/ | */ | |||
void setExtensionTemplate( const QString & templ, bool insert = false ); | void setExtensionTemplate(const QString &templ, bool insert = false); | |||
/** Change the renmae mode | /** Change the renmae mode | |||
* | * | |||
* @param mode the renaming mode to use | * @param mode the renaming mode to use | |||
*/ | */ | |||
void setRenameMode( ERenameMode mode ); | void setRenameMode(ERenameMode mode); | |||
/** Set the destination url | /** Set the destination url | |||
* | * | |||
* @param url destination url for eRenameMode_Copy, | * @param url destination url for eRenameMode_Copy, | |||
* eRenameMode_Move and eRenameMode_Link | * eRenameMode_Move and eRenameMode_Link | |||
*/ | */ | |||
void setDestinationUrl( const KUrl & url ); | void setDestinationUrl(const QUrl &url); | |||
/** Reset the display of the internal file list | /** Reset the display of the internal file list | |||
*/ | */ | |||
void resetFileList(); | void resetFileList(); | |||
/** Set the KRename model | /** Set the KRename model | |||
* | * | |||
* @param model a krename model | * @param model a krename model | |||
*/ | */ | |||
void setModel( KRenameModel* model ); | void setModel(KRenameModel *model); | |||
/** Set the preview model | /** Set the preview model | |||
* | * | |||
* @param model a preview model | * @param model a preview model | |||
*/ | */ | |||
void setPreviewModel( KRenamePreviewModel* model ); | void setPreviewModel(KRenamePreviewModel *model); | |||
/** | /** | |||
* @returns the destinationUrl selected by the user | * @returns the destinationUrl selected by the user | |||
*/ | */ | |||
const KUrl destinationUrl() const; | const QUrl destinationUrl() const; | |||
/** | /** | |||
* \returns a list of all file indexes that are selected | * \returns a list of all file indexes that are selected | |||
* in the filelist | * in the filelist | |||
*/ | */ | |||
QList<int> selectedFileItems() const; | QList<int> selectedFileItems() const; | |||
/** | /** | |||
* \returns a list of all file indexes that are selected | * \returns a list of all file indexes that are selected | |||
* in the preview | * in the preview | |||
skipping to change at line 168 | skipping to change at line 170 | |||
QList<int> selectedFileItemsPreview() const; | QList<int> selectedFileItemsPreview() const; | |||
/** | /** | |||
* \returns if file preview is enabled in the file tab | * \returns if file preview is enabled in the file tab | |||
*/ | */ | |||
bool isPreviewEnabled() const; | bool isPreviewEnabled() const; | |||
/** | /** | |||
* \param bPreview enable/disable file preview in the file tab | * \param bPreview enable/disable file preview in the file tab | |||
*/ | */ | |||
void setPreviewEnabled( bool bPreview ); | void setPreviewEnabled(bool bPreview); | |||
/** | /** | |||
* \returns if name display is enabled in the file tab | * \returns if name display is enabled in the file tab | |||
*/ | */ | |||
bool isPreviewNamesEnabled() const; | bool isPreviewNamesEnabled() const; | |||
/** | /** | |||
* \param bPreview enable/disable file name display in the file tab | * \param bPreview enable/disable file name display in the file tab | |||
*/ | */ | |||
void setPreviewNamesEnabled( bool bPreview ); | void setPreviewNamesEnabled(bool bPreview); | |||
/** | /** | |||
* \returns the start index for numbers | * \returns the start index for numbers | |||
*/ | */ | |||
int numberStartIndex() const; | int numberStartIndex() const; | |||
/** | /** | |||
* \param index start index for numbers | * \param index start index for numbers | |||
*/ | */ | |||
void setNumberStartIndex( int index ); | void setNumberStartIndex(int index); | |||
/** | /** | |||
* \returns the current sort mode in the file tab | * \returns the current sort mode in the file tab | |||
*/ | */ | |||
int sortMode() const; | int sortMode() const; | |||
/** | /** | |||
* \param sortMode sets the current sort mode in the file tab | * \param sortMode sets the current sort mode in the file tab | |||
* \param customToken custom sort token if sortMode == eSortMode_Token | * \param customToken custom sort token if sortMode == eSortMode_Token | |||
* \param customSortMode custom sort mode if sortMode == eSortMode_Token | * \param customSortMode custom sort mode if sortMode == eSortMode_Token | |||
*/ | */ | |||
void setSortMode( int sortMode, const QString & customToken, int customSortM ode ); | void setSortMode(int sortMode, const QString &customToken, int customSortMod e); | |||
/** | /** | |||
* Specify the extension split mode. | * Specify the extension split mode. | |||
* \param splitMode split mode | * \param splitMode split mode | |||
* \param dot dot t use for eSplitMode_CustomDot | * \param dot dot t use for eSplitMode_CustomDot | |||
*/ | */ | |||
void setExtensionSplitMode( ESplitMode splitMode, int dot ); | void setExtensionSplitMode(ESplitMode splitMode, int dot); | |||
bool isAdvancedMode() const; | bool isAdvancedMode() const; | |||
void setAdvancedMode( bool bAdvanced ); | void setAdvancedMode(bool bAdvanced); | |||
/** | /** | |||
* Shows the filename tab | * Shows the filename tab | |||
* This might be useful, if the user | * This might be useful, if the user | |||
* passed filenames via the commandline | * passed filenames via the commandline | |||
* and wants to immediately work with the | * and wants to immediately work with the | |||
* filename template. | * filename template. | |||
*/ | */ | |||
void showFilenameTab(); | void showFilenameTab(); | |||
public slots: | public Q_SLOTS: | |||
/** Resets the enabled/disabled state of all GUI elements correctly | /** Resets the enabled/disabled state of all GUI elements correctly | |||
*/ | */ | |||
void slotEnableControls(); | void slotEnableControls(); | |||
signals: | Q_SIGNALS: | |||
/** Called when the krenamewindow | /** Called when the krenamewindow | |||
* needs an update of the file cound | * needs an update of the file cound | |||
* | * | |||
* \see setCount | * \see setCount | |||
*/ | */ | |||
void updateCount(); | void updateCount(); | |||
/** Called whenever the user changes the rename mode | /** Called whenever the user changes the rename mode | |||
* | * | |||
* @param mode the renaming mode selected by the user | * @param mode the renaming mode selected by the user | |||
*/ | */ | |||
void renameModeChanged( ERenameMode mode ); | void renameModeChanged(ERenameMode mode); | |||
/** Called whenever the user changes the option | /** Called whenever the user changes the option | |||
* if existing files maybe overwritten | * if existing files maybe overwritten | |||
* | * | |||
* @param bool overwrite if true existing files maybe overwritten during re naming | * @param bool overwrite if true existing files maybe overwritten during re naming | |||
*/ | */ | |||
void overwriteFilesChanged(bool overwrite); | void overwriteFilesChanged(bool overwrite); | |||
/** Called whenever the user has changed the template for the filename | /** Called whenever the user has changed the template for the filename | |||
* | * | |||
* @param filename the new template for the filename | * @param filename the new template for the filename | |||
*/ | */ | |||
void filenameTemplateChanged( const QString & filename ); | void filenameTemplateChanged(const QString &filename); | |||
/** Called whenever the user has changed the template for the extension | /** Called whenever the user has changed the template for the extension | |||
* | * | |||
* @param filename the new template for the extension | * @param filename the new template for the extension | |||
*/ | */ | |||
void extensionTemplateChanged( const QString & extension ); | void extensionTemplateChanged(const QString &extension); | |||
/** Called whenever the user change the splitmode between filename and exten sion | /** Called whenever the user change the splitmode between filename and exten sion | |||
* | * | |||
* @param splitMode the mode which is used to split filename and extension | * @param splitMode the mode which is used to split filename and extension | |||
* @param dot the n-th dot to use for splitting if splitMode = eSplitMode_C ustomDot | * @param dot the n-th dot to use for splitting if splitMode = eSplitMode_C ustomDot | |||
*/ | */ | |||
void extensionSplitModeChanged( ESplitMode splitMode, int dot ); | void extensionSplitModeChanged(ESplitMode splitMode, int dot); | |||
/** Called whenever the user changes the start index | /** Called whenever the user changes the start index | |||
* | * | |||
* @param index the new start index for numberings | * @param index the new start index for numberings | |||
*/ | */ | |||
void startIndexChanged( int index ); | void startIndexChanged(int index); | |||
/** Called whenever the user changes the file preview state | /** Called whenever the user changes the file preview state | |||
* | * | |||
* @param enable if true display previews | * @param enable if true display previews | |||
* @param filenames if true display filenames next to preview (if enable is false | * @param filenames if true display filenames next to preview (if enable is false | |||
* this parameter has to be ignored. | * this parameter has to be ignored. | |||
*/ | */ | |||
void filePreviewChanged( bool enable, bool filenames ); | void filePreviewChanged(bool enable, bool filenames); | |||
/** Called whenever the GUI wants an updated preview | /** Called whenever the GUI wants an updated preview | |||
*/ | */ | |||
void updatePreview(); | void updatePreview(); | |||
/** Called when the user requests the advanced numbering dialog | /** Called when the user requests the advanced numbering dialog | |||
*/ | */ | |||
void showAdvancedNumberingDialog(); | void showAdvancedNumberingDialog(); | |||
/** Called when the user requests the insert part filename dialog | /** Called when the user requests the insert part filename dialog | |||
skipping to change at line 315 | skipping to change at line 317 | |||
* | * | |||
* \see selectedFileItems() to retrieve the selected files | * \see selectedFileItems() to retrieve the selected files | |||
*/ | */ | |||
void removeFiles(); | void removeFiles(); | |||
/** Show a token help dialog which inserts a token | /** Show a token help dialog which inserts a token | |||
* into a KLineEdit | * into a KLineEdit | |||
* | * | |||
* \param edit the QLineEdit which is used to insert tokens selected by the user | * \param edit the QLineEdit which is used to insert tokens selected by the user | |||
*/ | */ | |||
void showTokenHelpDialog( QLineEdit* edit ); | void showTokenHelpDialog(QLineEdit *edit); | |||
/** Called when the user wants to rename with current settings | /** Called when the user wants to rename with current settings | |||
*/ | */ | |||
void accepted(); | void accepted(); | |||
private slots: | private Q_SLOTS: | |||
void slotBack(); | void slotBack(); | |||
void slotNext(); | void slotNext(); | |||
void slotFinish(); | void slotFinish(); | |||
/** Changes the current page to the page with the given index | /** Changes the current page to the page with the given index | |||
* | * | |||
* @param index the index of the page to show | * @param index the index of the page to show | |||
*/ | */ | |||
void showPage( int index ); | void showPage(int index); | |||
/** Called when one of the checkboxes for | /** Called when one of the checkboxes for | |||
* rename, copy, more or link was clicked | * rename, copy, more or link was clicked | |||
* to change the rename mode. | * to change the rename mode. | |||
*/ | */ | |||
void slotRenameModeChanged(); | void slotRenameModeChanged(); | |||
/** Called whenever one of the template fields has changed | /** Called whenever one of the template fields has changed | |||
*/ | */ | |||
void slotTemplateChanged(); | void slotTemplateChanged(); | |||
skipping to change at line 373 | skipping to change at line 375 | |||
*/ | */ | |||
void slotTokenHelpRequestedWizard3(); | void slotTokenHelpRequestedWizard3(); | |||
/** Emits the showTokenHelpDialog signal with the appropriate | /** Emits the showTokenHelpDialog signal with the appropriate | |||
* KLineEdit | * KLineEdit | |||
*/ | */ | |||
void slotTokenHelpRequestedWizard4(); | void slotTokenHelpRequestedWizard4(); | |||
/** Called when the user selects another extension split mode | /** Called when the user selects another extension split mode | |||
*/ | */ | |||
void slotExtensionSplitModeChanged( int index ); | void slotExtensionSplitModeChanged(int index); | |||
/** Called when one of the preview checkboxes is clicked. | /** Called when one of the preview checkboxes is clicked. | |||
*/ | */ | |||
void slotPreviewChanged(); | void slotPreviewChanged(); | |||
/** Called whenever the user changes the current sort mode | /** Called whenever the user changes the current sort mode | |||
* | * | |||
* @param index currently selected sort index | * @param index currently selected sort index | |||
*/ | */ | |||
void slotSortChanged( int index ); | void slotSortChanged(int index); | |||
/** Called whenever the possible maximum value of | /** Called whenever the possible maximum value of | |||
* dots in a filename has changed. | * dots in a filename has changed. | |||
* | * | |||
* @param dots the maximum number of dots in a filename | * @param dots the maximum number of dots in a filename | |||
* that can be used to separate fileanem and extension | * that can be used to separate fileanem and extension | |||
*/ | */ | |||
void slotMaxDotsChanged( int dots ); | void slotMaxDotsChanged(int dots); | |||
/** Called whenever the user clicks a file | /** Called whenever the user clicks a file | |||
* in a listview to open it. | * in a listview to open it. | |||
* | * | |||
* @param index the model index of the requested file in a model | * @param index the model index of the requested file in a model | |||
*/ | */ | |||
void slotOpenFile(const QModelIndex& index); | void slotOpenFile(const QModelIndex &index); | |||
/** Called when the user wants to move files up | /** Called when the user wants to move files up | |||
* in the file list box. | * in the file list box. | |||
*/ | */ | |||
void slotMoveUp(); | void slotMoveUp(); | |||
/** Called when the user wants to move files down | /** Called when the user wants to move files down | |||
* in the file list box. | * in the file list box. | |||
*/ | */ | |||
void slotMoveDown(); | void slotMoveDown(); | |||
skipping to change at line 422 | skipping to change at line 424 | |||
*/ | */ | |||
void slotMoveUpPreview(); | void slotMoveUpPreview(); | |||
/** Called when the user wants to move files down | /** Called when the user wants to move files down | |||
* in the preview. | * in the preview. | |||
*/ | */ | |||
void slotMoveDownPreview(); | void slotMoveDownPreview(); | |||
/** Called when the user selects a plugin in the plugins tab | /** Called when the user selects a plugin in the plugins tab | |||
*/ | */ | |||
void slotPluginChanged(QTreeWidgetItem* selected); | void slotPluginChanged(QTreeWidgetItem *selected); | |||
/** Called when a plugin is enabled or disabled | /** Called when a plugin is enabled or disabled | |||
*/ | */ | |||
void slotPluginEnabled(); | void slotPluginEnabled(); | |||
/** Called when the user changes the start index | /** Called when the user changes the start index | |||
* in the gui | * in the gui | |||
*/ | */ | |||
void slotSimpleStartIndexChanged(); | void slotSimpleStartIndexChanged(); | |||
/** | /** | |||
* Called when the user clicked the enter templates | * Called when the user clicked the enter templates | |||
* link in StartUpInfo. | * link in StartUpInfo. | |||
*/ | */ | |||
void slotGotoTemplatesPage(); | void slotGotoTemplatesPage(); | |||
private: | private: | |||
/** Configures the GUI for the current GUI mode | /** Configures the GUI for the current GUI mode | |||
*/ | */ | |||
void setupGui(); | void setupGui(); | |||
/** Setup all signals and slots | /** Setup all signals and slots | |||
*/ | */ | |||
void setupSlots(); | void setupSlots(); | |||
/** Load all plugins | /** Load all plugins | |||
*/ | */ | |||
skipping to change at line 464 | skipping to change at line 466 | |||
*/ | */ | |||
void setupIcons(); | void setupIcons(); | |||
/** Get a template for the prefix or suffix in wizard mode | /** Get a template for the prefix or suffix in wizard mode | |||
* from 2 combo boxes | * from 2 combo boxes | |||
* | * | |||
* @param combo the combobox used to select a default prefix/suffix (e.g. d ate) | * @param combo the combobox used to select a default prefix/suffix (e.g. d ate) | |||
* @param comboCustom additional user defined text | * @param comboCustom additional user defined text | |||
* @returns a template string | * @returns a template string | |||
*/ | */ | |||
QString getPrefixSuffixSimple( QComboBox* combo, QComboBox* comboCustom ); | QString getPrefixSuffixSimple(QComboBox *combo, QComboBox *comboCustom); | |||
/** Get a template for the filename or extension in wizard mode | /** Get a template for the filename or extension in wizard mode | |||
* from 2 combo boxes | * from 2 combo boxes | |||
* | * | |||
* @param combo the combobox used to select a default filename (e.g. lowerc ase) | * @param combo the combobox used to select a default filename (e.g. lowerc ase) | |||
* @param comboCustom additional user defined text | * @param comboCustom additional user defined text | |||
* @returns a template string | * @returns a template string | |||
*/ | */ | |||
QString getFilenameSimple( QComboBox* combo, QComboBox* comboCustom ); | QString getFilenameSimple(QComboBox *combo, QComboBox *comboCustom); | |||
/** Set the GUI elements in the simple filename tab using a template | /** Set the GUI elements in the simple filename tab using a template | |||
* that has specified in advanced mode | * that has specified in advanced mode | |||
* | * | |||
* @param filename template of the filename | * @param filename template of the filename | |||
* @param extension template of the extension | * @param extension template of the extension | |||
*/ | */ | |||
void setSimpleTemplate( const QString & filename, const QString & extension ); | void setSimpleTemplate(const QString &filename, const QString &extension); | |||
/** Emit signals that the template has been changed in some way by the user | /** Emit signals that the template has been changed in some way by the user | |||
* | * | |||
* @param filename template of the filename | * @param filename template of the filename | |||
* @param extension template of the extension | * @param extension template of the extension | |||
*/ | */ | |||
void templatesChanged( const QString & filename, const QString & extension ) ; | void templatesChanged(const QString &filename, const QString &extension); | |||
void setPrefixSuffixSimple( QComboBox* combo, QComboBox* comboCustom, const QString & templ ); | void setPrefixSuffixSimple(QComboBox *combo, QComboBox *comboCustom, const Q String &templ); | |||
void moveUp( const QList<int> & selected, QAbstractItemView* view ); | void moveUp(const QList<int> &selected, QAbstractItemView *view); | |||
void moveDown( const QList<int> & selected, QAbstractItemView* view ); | void moveDown(const QList<int> &selected, QAbstractItemView *view); | |||
/** | /** | |||
* \param index (0 or 1) index of the column | * \param index (0 or 1) index of the column | |||
* \returns the column width of column index | * \returns the column width of column index | |||
*/ | */ | |||
int previewColumnWidth( int index ); | int previewColumnWidth(int index); | |||
/** | /** | |||
* Set the width of the specified colum | * Set the width of the specified column | |||
* \param index (0 or 1) index of the column | * \param index (0 or 1) index of the column | |||
* \param width width in pixels | * \param width width in pixels | |||
*/ | */ | |||
void setPreviewColumnWidth( int index, int width ); | void setPreviewColumnWidth(int index, int width); | |||
void blockSignalsRecursive( QObject* obj, bool b ); | void blockSignalsRecursive(QObject *obj, bool b); | |||
private: | private: | |||
int m_curPage; /// The index of the current page in the curr ent gui mode | int m_curPage; /// The index of the current page in the curr ent gui mode | |||
const TGuiMode* m_guiMode; /// The description structure of the current gui mode | const TGuiMode *m_guiMode; /// The description structure of the current gui mode | |||
int m_fileCount; /// Current number of files; used for enabled disabled state | int m_fileCount; /// Current number of files; used for enabled disabled state | |||
QStackedWidget* m_stack; | QStackedWidget *m_stack; | |||
QDialogButtonBox* m_buttons; | QDialogButtonBox *m_buttons; | |||
QTabBar* m_tabBar; /// The tabbar to switch pages in advanced mo de | QTabBar *m_tabBar; /// The tabbar to switch pages in advanced mo de | |||
KPushButton* m_buttonClose; | QPushButton *m_buttonClose; | |||
KPushButton* m_buttonFinish; | QPushButton *m_buttonFinish; | |||
Ui::KRenameFiles* m_pageFiles; | Ui::KRenameFiles *m_pageFiles; | |||
Ui::KRenameDestination* m_pageDests; | Ui::KRenameDestination *m_pageDests; | |||
//Ui::KRenameSimple* m_pageSimple; | //Ui::KRenameSimple* m_pageSimple; | |||
Ui::KRenamePlugins* m_pagePlugins; | Ui::KRenamePlugins *m_pagePlugins; | |||
Ui::KRenameFilename* m_pageFilename; | Ui::KRenameFilename *m_pageFilename; | |||
QHash<QString,QWidget*> m_pluginsWidgetHash; | QHash<QString, QWidget *> m_pluginsWidgetHash; | |||
QHash<QString,Plugin*> m_pluginsHash; | QHash<QString, Plugin *> m_pluginsHash; | |||
RichTextItemDelegate* m_delegate; | RichTextItemDelegate *m_delegate; | |||
}; | }; | |||
#endif // _KRENAMEWINDOW_H_ | #endif // KRENAMEWINDOW_H | |||
End of changes. 61 change blocks. | ||||
73 lines changed or deleted | 75 lines changed or added |