diff --git a/src/gui/sizedialogwidget.h b/src/gui/sizedialogwidget.h index a6330f0..5be87cb 100644 --- a/src/gui/sizedialogwidget.h +++ b/src/gui/sizedialogwidget.h @@ -1,135 +1,148 @@ /************************************************************************* * Copyright (C) 2008, 2010 by Volker Lanz * * Copyright (C) 2016 by Teo Mrnjavac * * * * 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 .* *************************************************************************/ #if !defined(SIZEDIALOGWIDGET__H) #define SIZEDIALOGWIDGET__H #include "ui_sizedialogwidgetbase.h" #include /** Central widget for the SizeDialogBase @author Volker Lanz */ class SizeDialogWidget : public QWidget, public Ui::SizeDialogWidgetBase { Q_OBJECT public: SizeDialogWidget(QWidget* parent) : QWidget(parent), Ui::SizeDialogWidgetBase() { setupUi(this); } public: PartResizerWidget& partResizerWidget() { Q_ASSERT(m_PartResizerWidget); return *m_PartResizerWidget; } QDoubleSpinBox& spinFreeBefore() { Q_ASSERT(m_SpinFreeBefore); return *m_SpinFreeBefore; } QDoubleSpinBox& spinFreeAfter() { Q_ASSERT(m_SpinFreeAfter); return *m_SpinFreeAfter; } QDoubleSpinBox& spinCapacity() { Q_ASSERT(m_SpinCapacity); return *m_SpinCapacity; } QLabel& labelMinSize() { Q_ASSERT(m_LabelMinSize); return *m_LabelMinSize; } QLabel& labelMaxSize() { Q_ASSERT(m_LabelMaxSize); return *m_LabelMaxSize; } QRadioButton& radioPrimary() { Q_ASSERT(m_RadioPrimary); return *m_RadioPrimary; } QRadioButton& radioExtended() { Q_ASSERT(m_RadioExtended); return *m_RadioExtended; } QRadioButton& radioLogical() { Q_ASSERT(m_RadioLogical); return *m_RadioLogical; } QComboBox& comboFileSystem() { Q_ASSERT(m_ComboFileSystem); return *m_ComboFileSystem; } QCheckBox& checkBoxEncrypt() { Q_ASSERT(m_CheckBoxEncrypt); return *m_CheckBoxEncrypt; } + QLineEdit& editPassphrase() { + Q_ASSERT(m_EditPassphrase); + return *m_EditPassphrase; + } + QLabel& labelPassphrase() { + Q_ASSERT(m_LabelPassphrase); + return *m_LabelPassphrase; + } + QLabel& textLabel() { Q_ASSERT(m_LabelTextLabel); return *m_LabelTextLabel; } QLineEdit& label() { Q_ASSERT(m_EditLabel); return *m_EditLabel; } const QLineEdit& label() const { Q_ASSERT(m_EditLabel); return *m_EditLabel; } QLabel& noSetLabel() { Q_ASSERT(m_LabelTextNoSetLabel); return *m_LabelTextNoSetLabel; } void hideRole() { delete m_LabelRole; m_LabelRole = nullptr; delete m_RadioPrimary; m_RadioPrimary = nullptr; delete m_RadioExtended; m_RadioExtended = nullptr; delete m_RadioLogical; m_RadioLogical = nullptr; } void hideFileSystem() { delete m_LabelFileSystem; m_LabelFileSystem = nullptr; delete m_ComboFileSystem; m_ComboFileSystem = nullptr; delete m_CheckBoxEncrypt; m_CheckBoxEncrypt = nullptr; + delete m_LabelPassphrase; + m_LabelPassphrase = nullptr; + delete m_EditPassphrase; + m_EditPassphrase = nullptr; } void hideLabel() { delete m_LabelTextLabel; m_LabelTextLabel = nullptr; delete m_EditLabel; m_EditLabel = nullptr; delete m_LabelTextNoSetLabel; m_LabelTextNoSetLabel = nullptr; } }; #endif diff --git a/src/gui/sizedialogwidgetbase.ui b/src/gui/sizedialogwidgetbase.ui index 8fc4f09..710121b 100644 --- a/src/gui/sizedialogwidgetbase.ui +++ b/src/gui/sizedialogwidgetbase.ui @@ -1,337 +1,358 @@ SizeDialogWidgetBase 0 0 653 - 655 + 693 + + + + 0.000000000000000 + + + 999999999.000000000000000 + + + + + + + Passphrase: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + Qt::Vertical QSizePolicy::Fixed 470 17 400 60 16777215 60 0 0 Partition &type: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter m_RadioPrimary Primar&y E&xtended &Logical 0 0 File system: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter m_ComboFileSystem - + Label: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter m_EditLabel - + This file system does not support setting a label. true - + 0 0 Minimum size: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - + 0 0 Maximum size: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - + 3 0 - Free space before: + F&ree space before: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter m_SpinFreeBefore - + 4 0 0.000000000000000 999999999.000000000000000 - + 0 0 Si&ze: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter m_SpinCapacity - - - - 0.000000000000000 - - - 999999999.000000000000000 - - - - + 0 0 Free space after: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter m_SpinFreeAfter - + 0.000000000000000 999999999.000000000000000 - + Qt::Vertical QSizePolicy::Fixed 470 7 + + + + + + Set up encryption for this filesystem with LUKS. You will be asked to provide a passphrase. + + + Encrypt with LUKS + + + + + - - - Set up encryption for this filesystem with LUKS. You will be asked to provide a passphrase. - - - Encrypt with LUKS + + + QLineEdit::Password PartResizerWidget QWidget
kpmcore/gui/partresizerwidget.h
1
FormattedSpinBox QDoubleSpinBox
gui/formattedspinbox.h
m_RadioPrimary m_RadioExtended m_RadioLogical m_EditLabel m_SpinFreeBefore m_SpinCapacity m_SpinFreeAfter