2016-07-09 01:12:31 +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/>.*
|
|
|
|
*************************************************************************/
|
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#if !defined(RESIZEVOLUMEGROUPDIALOG_H)
|
2016-07-09 01:12:31 +01:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#define RESIZEVOLUMEGROUPDIALOG_H
|
2016-07-09 01:12:31 +01:00
|
|
|
|
2016-09-10 22:10:11 +01:00
|
|
|
#include <fs/lvm2_pv.h>
|
|
|
|
|
2016-09-04 12:25:43 +01:00
|
|
|
#include "gui/volumegroupdialog.h"
|
2016-07-09 01:12:31 +01:00
|
|
|
|
2016-09-07 14:36:59 +01:00
|
|
|
class Device;
|
2016-08-08 00:47:05 +01:00
|
|
|
class VolumeManagerDevice;
|
2016-07-09 01:12:31 +01:00
|
|
|
|
2016-09-04 12:25:43 +01:00
|
|
|
class ResizeVolumeGroupDialog : public VolumeGroupDialog
|
2016-07-09 01:12:31 +01:00
|
|
|
{
|
2016-09-04 12:25:43 +01:00
|
|
|
Q_DISABLE_COPY(ResizeVolumeGroupDialog)
|
2016-07-09 01:12:31 +01:00
|
|
|
|
|
|
|
public:
|
2017-08-31 10:34:58 +01:00
|
|
|
ResizeVolumeGroupDialog(QWidget* parent, VolumeManagerDevice *d, QVector<const Partition*>& partList);
|
2016-07-09 01:12:31 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void accept() override;
|
|
|
|
void setupDialog() override;
|
|
|
|
void setupConstraints() override;
|
2016-08-08 00:47:05 +01:00
|
|
|
|
2016-09-24 21:09:16 +01:00
|
|
|
VolumeManagerDevice* device() const {
|
2016-08-08 00:47:05 +01:00
|
|
|
return m_Device;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2016-09-24 21:09:16 +01:00
|
|
|
VolumeManagerDevice* m_Device;
|
2016-07-09 01:12:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|