File indexing completed on 2024-04-28 05:46:32
0001 /* 0002 SPDX-FileCopyrightText: 2008-2010 Volker Lanz <vl@fidra.de> 0003 SPDX-FileCopyrightText: 2014-2018 Andrius Štikonas <andrius@stikonas.eu> 0004 0005 SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 #if !defined(INSERTDIALOG_H) 0009 0010 #define INSERTDIALOG_H 0011 0012 #include "gui/sizedialogbase.h" 0013 0014 class Partition; 0015 class Device; 0016 0017 /** Base class for dialogs to insert Partitions. 0018 0019 Base class for dialogs that need to insert a Partition into some unallocated space on 0020 a Device. 0021 0022 @author Volker Lanz <vl@fidra.de> 0023 */ 0024 class InsertDialog : public SizeDialogBase 0025 { 0026 public: 0027 InsertDialog(QWidget* parent, Device& device, Partition& insertedPartition, const Partition& destPartition); 0028 ~InsertDialog(); 0029 0030 protected: 0031 const Partition& destPartition() const { 0032 return m_DestPartition; 0033 } 0034 bool canGrow() const override; 0035 bool canShrink() const override { 0036 return false; 0037 } 0038 0039 private: 0040 const Partition& m_DestPartition; 0041 }; 0042 0043 #endif