"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/numberdialog.h" between
krename-4.0.9.tar.gz and krename-4.90.90.tar.gz

About: KRename is a batch file-renamer (KDE).

numberdialog.h  (krename-4.0.9):numberdialog.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 _NUMBER_DIALOG_H_ #ifndef NUMBER_DIALOG_H
#define _NUMBER_DIALOG_H_ #define NUMBER_DIALOG_H
#include <QDialog> #include <QDialog>
#include "ui_numberwidget.h" #include "ui_numberwidget.h"
class QDialogButtonBox; class QDialogButtonBox;
/** /**
* This is a dialog with advanced numbering settings * This is a dialog with advanced numbering settings
* - start index * - start index
* - stepping * - stepping
* - reset counter on each new directory * - reset counter on each new directory
* - skip numbers list * - skip numbers list
* *
*/ */
class NumberDialog : public QDialog { class NumberDialog : public QDialog
Q_OBJECT {
public: Q_OBJECT
NumberDialog( int start, int step, bool reset, QList<int> skip, QWidget* par public:
ent = NULL ); NumberDialog(int start, int step, bool reset, QList<int> skip, QWidget *pare
nt = nullptr);
/** /**
* @returns the start index the user has selected * @returns the start index the user has selected
*/ */
inline int startIndex() const; inline int startIndex() const;
/** /**
* @returns the stepping value for counters the user has selected * @returns the stepping value for counters the user has selected
*/ */
inline int numberStepping() const; inline int numberStepping() const;
skipping to change at line 60 skipping to change at line 61
/** /**
* @returns true if the counter should be reset for each new directory * @returns true if the counter should be reset for each new directory
*/ */
inline bool resetCounter() const; inline bool resetCounter() const;
/** /**
* @returns the list of number that should be skipped in counters * @returns the list of number that should be skipped in counters
*/ */
QList<int> skipNumbers() const; QList<int> skipNumbers() const;
private slots: private Q_SLOTS:
void slotAddNumber(); void slotAddNumber();
void slotRemoveNumber(); void slotRemoveNumber();
void slotEnableControls(); void slotEnableControls();
private: private:
Ui::NumberWidget m_widget; Ui::NumberWidget m_widget;
QDialogButtonBox* m_buttons; QDialogButtonBox *m_buttons;
}; };
inline int NumberDialog::startIndex() const inline int NumberDialog::startIndex() const
{ {
return m_widget.spinStart->value(); return m_widget.spinStart->value();
} }
inline int NumberDialog::numberStepping() const inline int NumberDialog::numberStepping() const
{ {
return m_widget.spinStep->value(); return m_widget.spinStep->value();
} }
inline bool NumberDialog::resetCounter() const inline bool NumberDialog::resetCounter() const
{ {
return m_widget.checkReset->isChecked(); return m_widget.checkReset->isChecked();
} }
#endif // _NUMBER_DIALOG_H_ #endif // NUMBER_DIALOG_H
 End of changes. 8 change blocks. 
13 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)