2016-06-30 00:17:05 +01:00
|
|
|
/*************************************************************************
|
|
|
|
* Copyright (C) 2016 by Chantara Tith <tith.chantara@gmail.com> *
|
|
|
|
* *
|
|
|
|
* 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 the Free Software Foundation; either version 3 of *
|
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#if !defined(CREATEVOLUMEDIALOG__H)
|
|
|
|
|
|
|
|
#define CREATEVOLUMEDIALOG__H
|
|
|
|
|
2016-06-30 18:39:47 +01:00
|
|
|
#include "gui/volumedialog.h"
|
2016-06-30 00:17:05 +01:00
|
|
|
|
2016-06-30 18:39:47 +01:00
|
|
|
class CreateVolumeDialog : public VolumeDialog
|
2016-06-30 00:17:05 +01:00
|
|
|
{
|
|
|
|
Q_DISABLE_COPY(CreateVolumeDialog)
|
|
|
|
|
|
|
|
public:
|
2016-07-18 01:07:53 +01:00
|
|
|
CreateVolumeDialog(QWidget* parent, QString& vgname, QStringList& pvlist, qint32& pesize);
|
2016-06-30 00:17:05 +01:00
|
|
|
|
|
|
|
protected:
|
2016-07-02 09:27:20 +01:00
|
|
|
void accept() override;
|
2016-06-30 18:39:47 +01:00
|
|
|
void setupDialog() override;
|
|
|
|
void setupConnections() override;
|
2016-07-02 09:27:20 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void onVGNameChanged(const QString& vgname);
|
|
|
|
void onSpinPESizeChanged(int newsize);
|
2016-07-18 01:07:53 +01:00
|
|
|
|
|
|
|
qint32& peSize() {
|
|
|
|
return m_PESize;
|
|
|
|
}
|
|
|
|
|
|
|
|
qint32& m_PESize;
|
2016-08-08 04:49:41 +01:00
|
|
|
private:
|
|
|
|
QStringList m_SystemVGList;
|
2016-06-30 00:17:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|