Multiple mount point support in EditMountPointDialog
Multiple mount points can also be modified and removed from fstab. Differential Revision: https://phabricator.kde.org/D11632
This commit is contained in:
parent
2bbf89af28
commit
e54510b881
|
@ -78,7 +78,7 @@ void EditMountPointDialog::accept_(MountPointAction action)
|
||||||
widget().acceptChanges();
|
widget().acceptChanges();
|
||||||
if (writeMountpoints(widget().fstabEntries())) {
|
if (writeMountpoints(widget().fstabEntries())) {
|
||||||
if (action == Edit)
|
if (action == Edit)
|
||||||
partition().setMountPoint(widget().editPath().text());
|
partition().setMountPoint(widget().editPath().currentText());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
KMessageBox::sorry(this,
|
KMessageBox::sorry(this,
|
||||||
|
|
|
@ -50,12 +50,14 @@ EditMountPointDialogWidget::EditMountPointDialogWidget(QWidget* parent, Partitio
|
||||||
labelType().setText(partition().fileSystem().name());
|
labelType().setText(partition().fileSystem().name());
|
||||||
|
|
||||||
bool entryFound = false;
|
bool entryFound = false;
|
||||||
|
editPath().setEditable(true);
|
||||||
for (auto &e : m_fstabEntries) {
|
for (auto &e : m_fstabEntries) {
|
||||||
QString canonicalEntryPath = QFileInfo(e.deviceNode()).canonicalFilePath();
|
QString canonicalEntryPath = QFileInfo(e.deviceNode()).canonicalFilePath();
|
||||||
QString canonicalDevicePath = QFileInfo(m_deviceNode).canonicalFilePath();
|
QString canonicalDevicePath = QFileInfo(m_deviceNode).canonicalFilePath();
|
||||||
if (canonicalEntryPath == canonicalDevicePath) { // FIXME fix multiple mountpoints
|
if (canonicalEntryPath == canonicalDevicePath) { // FIXME fix multiple mountpoints
|
||||||
entryFound = true;
|
entryFound = true;
|
||||||
entry = &e;
|
entry.append(&e);
|
||||||
|
mountPointList = possibleMountPoints(e.deviceNode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,15 +77,70 @@ EditMountPointDialogWidget::EditMountPointDialogWidget(QWidget* parent, Partitio
|
||||||
}
|
}
|
||||||
|
|
||||||
m_fstabEntries.append(FstabEntry(m_deviceNode, QString(), fsName, QString()));
|
m_fstabEntries.append(FstabEntry(m_deviceNode, QString(), fsName, QString()));
|
||||||
entry = &m_fstabEntries.last();
|
entry.append(&m_fstabEntries.last());
|
||||||
|
}
|
||||||
|
currentEntry = entry[0];
|
||||||
|
editPath().addItems(mountPointList);
|
||||||
|
spinDumpFreq().setValue(currentEntry->dumpFreq());
|
||||||
|
spinPassNumber().setValue(currentEntry->passNumber());
|
||||||
|
|
||||||
|
boxOptions()[QStringLiteral("ro")] = m_CheckReadOnly;
|
||||||
|
boxOptions()[QStringLiteral("users")] = m_CheckUsers;
|
||||||
|
boxOptions()[QStringLiteral("noauto")] = m_CheckNoAuto;
|
||||||
|
boxOptions()[QStringLiteral("noatime")] = m_CheckNoAtime;
|
||||||
|
boxOptions()[QStringLiteral("nodiratime")] = m_CheckNoDirAtime;
|
||||||
|
boxOptions()[QStringLiteral("sync")] = m_CheckSync;
|
||||||
|
boxOptions()[QStringLiteral("noexec")] = m_CheckNoExec;
|
||||||
|
boxOptions()[QStringLiteral("relatime")] = m_CheckRelAtime;
|
||||||
|
|
||||||
|
setupRadio(currentEntry->entryType());
|
||||||
|
setupOptions(currentEntry->options());
|
||||||
|
|
||||||
|
connect(m_ButtonMore, &QPushButton::clicked, this, &EditMountPointDialogWidget::buttonMoreClicked);
|
||||||
|
connect(m_ButtonSelect, &QPushButton::clicked, this, &EditMountPointDialogWidget::buttonSelectClicked);
|
||||||
|
connect(m_EditPath, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||||
|
[=](int index){ currentEntry = entry[index];
|
||||||
|
spinDumpFreq().setValue(currentEntry->dumpFreq());
|
||||||
|
spinPassNumber().setValue(currentEntry->passNumber());
|
||||||
|
setupRadio(currentEntry->entryType());
|
||||||
|
for (iterator_BoxOptions = boxOptions().begin(); iterator_BoxOptions != boxOptions().end(); ++iterator_BoxOptions){
|
||||||
|
boxOptions()[iterator_BoxOptions->first]->setChecked(false);
|
||||||
|
}
|
||||||
|
setupOptions(currentEntry->options());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
EditMountPointDialogWidget::~EditMountPointDialogWidget()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void EditMountPointDialogWidget::setupOptions(const QStringList& options)
|
||||||
|
{
|
||||||
|
QStringList optTmpList;
|
||||||
|
for (const auto &o : options) {
|
||||||
|
if (boxOptions().find(o) != boxOptions().end())
|
||||||
|
boxOptions()[o]->setChecked(true);
|
||||||
|
else
|
||||||
|
optTmpList.append(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
editPath().setText(entry->mountPoint());
|
m_Options = optTmpList.join(QLatin1Char(','));
|
||||||
|
}
|
||||||
|
|
||||||
spinDumpFreq().setValue(entry->dumpFreq());
|
void EditMountPointDialogWidget::setupRadio(const FstabEntryType entryType)
|
||||||
spinPassNumber().setValue(entry->passNumber());
|
{
|
||||||
|
if (partition().fileSystem().uuid().isEmpty()) {
|
||||||
|
radioUUID().setEnabled(false);
|
||||||
|
if (radioUUID().isChecked())
|
||||||
|
radioDeviceNode().setChecked(true);
|
||||||
|
}
|
||||||
|
|
||||||
switch (entry->entryType()) {
|
if (partition().fileSystem().label().isEmpty()) {
|
||||||
|
radioLabel().setEnabled(false);
|
||||||
|
if (radioLabel().isChecked())
|
||||||
|
radioDeviceNode().setChecked(true);
|
||||||
|
}
|
||||||
|
switch (entryType) {
|
||||||
case FstabEntryType::uuid:
|
case FstabEntryType::uuid:
|
||||||
radioUUID().setChecked(true);
|
radioUUID().setChecked(true);
|
||||||
break;
|
break;
|
||||||
|
@ -106,69 +163,33 @@ EditMountPointDialogWidget::EditMountPointDialogWidget(QWidget* parent, Partitio
|
||||||
case FstabEntryType::comment:
|
case FstabEntryType::comment:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
boxOptions()[QStringLiteral("ro")] = m_CheckReadOnly;
|
|
||||||
boxOptions()[QStringLiteral("users")] = m_CheckUsers;
|
|
||||||
boxOptions()[QStringLiteral("noauto")] = m_CheckNoAuto;
|
|
||||||
boxOptions()[QStringLiteral("noatime")] = m_CheckNoAtime;
|
|
||||||
boxOptions()[QStringLiteral("nodiratime")] = m_CheckNoDirAtime;
|
|
||||||
boxOptions()[QStringLiteral("sync")] = m_CheckSync;
|
|
||||||
boxOptions()[QStringLiteral("noexec")] = m_CheckNoExec;
|
|
||||||
boxOptions()[QStringLiteral("relatime")] = m_CheckRelAtime;
|
|
||||||
|
|
||||||
setupOptions(entry->options());
|
|
||||||
|
|
||||||
if (partition().fileSystem().uuid().isEmpty()) {
|
|
||||||
radioUUID().setEnabled(false);
|
|
||||||
if (radioUUID().isChecked())
|
|
||||||
radioDeviceNode().setChecked(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (partition().fileSystem().label().isEmpty()) {
|
|
||||||
radioLabel().setEnabled(false);
|
|
||||||
if (radioLabel().isChecked())
|
|
||||||
radioDeviceNode().setChecked(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
connect(m_ButtonMore, &QPushButton::clicked, this, &EditMountPointDialogWidget::buttonMoreClicked);
|
|
||||||
connect(m_ButtonSelect, &QPushButton::clicked, this, &EditMountPointDialogWidget::buttonSelectClicked);
|
|
||||||
}
|
|
||||||
|
|
||||||
EditMountPointDialogWidget::~EditMountPointDialogWidget()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void EditMountPointDialogWidget::setupOptions(const QStringList& options)
|
|
||||||
{
|
|
||||||
QStringList optTmpList;
|
|
||||||
|
|
||||||
for (const auto &o : options) {
|
|
||||||
if (boxOptions().find(o) != boxOptions().end())
|
|
||||||
boxOptions()[o]->setChecked(true);
|
|
||||||
else
|
|
||||||
optTmpList.append(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_Options = optTmpList.join(QLatin1Char(','));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditMountPointDialogWidget::buttonSelectClicked(bool)
|
void EditMountPointDialogWidget::buttonSelectClicked(bool)
|
||||||
{
|
{
|
||||||
const QString s = QFileDialog::getExistingDirectory(this, editPath().text());
|
const QString s = QFileDialog::getExistingDirectory(this, editPath().currentText());
|
||||||
if (!s.isEmpty())
|
if (!s.isEmpty())
|
||||||
editPath().setText(s);
|
editPath().setCurrentText(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditMountPointDialogWidget::removeMountPoint()
|
void EditMountPointDialogWidget::removeMountPoint()
|
||||||
{
|
{
|
||||||
int i=0;
|
int i=0;
|
||||||
for (const auto &e : fstabEntries()) {
|
for (const auto &e : fstabEntries()) {
|
||||||
if((e.fsSpec().contains(partition().deviceNode()) && !partition().deviceNode().isEmpty() ) || (e.fsSpec().contains(partition().fileSystem().uuid()) && !partition().fileSystem().uuid().isEmpty()) ||
|
if(editPath().count()<=1 && ((e.fsSpec().contains(partition().deviceNode()) && !partition().deviceNode().isEmpty() ) || (e.fsSpec().contains(partition().fileSystem().uuid()) && !partition().fileSystem().uuid().isEmpty()) ||
|
||||||
(e.fsSpec().contains(partition().fileSystem().label()) && !partition().fileSystem().label().isEmpty()) || (e.fsSpec().contains(partition().label()) && !partition().label().isEmpty() ) || (e.fsSpec().contains(partition().uuid()) && !partition().uuid().isEmpty() ) )
|
(e.fsSpec().contains(partition().fileSystem().label()) && !partition().fileSystem().label().isEmpty()) || (e.fsSpec().contains(partition().label()) && !partition().label().isEmpty() ) || (e.fsSpec().contains(partition().uuid()) && !partition().uuid().isEmpty() )))
|
||||||
{
|
{
|
||||||
fstabEntries().removeAt(i);
|
fstabEntries().removeAt(i);
|
||||||
partition().setMountPoint(QString());
|
partition().setMountPoint(QString());
|
||||||
i--;
|
i--;
|
||||||
|
}
|
||||||
|
else if(editPath().count()>1 && ((&e == currentEntry)))
|
||||||
|
{
|
||||||
|
fstabEntries().removeAt(i);
|
||||||
|
editPath().removeItem(editPath().currentIndex());
|
||||||
|
partition().setMountPoint(editPath().itemText(editPath().currentIndex()));
|
||||||
|
i--;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
@ -199,15 +220,15 @@ QStringList EditMountPointDialogWidget::options() const
|
||||||
|
|
||||||
void EditMountPointDialogWidget::acceptChanges()
|
void EditMountPointDialogWidget::acceptChanges()
|
||||||
{
|
{
|
||||||
entry->setDumpFreq(spinDumpFreq().value());
|
currentEntry->setDumpFreq(spinDumpFreq().value());
|
||||||
entry->setPassNumber(spinPassNumber().value());
|
currentEntry->setPassNumber(spinPassNumber().value());
|
||||||
entry->setMountPoint(editPath().text());
|
currentEntry->setMountPoint(editPath().currentText());
|
||||||
entry->setOptions(options());
|
currentEntry->setOptions(options());
|
||||||
|
|
||||||
if (radioUUID().isChecked() && !partition().fileSystem().uuid().isEmpty())
|
if (radioUUID().isChecked() && !partition().fileSystem().uuid().isEmpty())
|
||||||
entry->setFsSpec(QStringLiteral("UUID=") + partition().fileSystem().uuid());
|
currentEntry->setFsSpec(QStringLiteral("UUID=") + partition().fileSystem().uuid());
|
||||||
else if (radioLabel().isChecked() && !partition().fileSystem().label().isEmpty())
|
else if (radioLabel().isChecked() && !partition().fileSystem().label().isEmpty())
|
||||||
entry->setFsSpec(QStringLiteral("LABEL=") + partition().fileSystem().label());
|
currentEntry->setFsSpec(QStringLiteral("LABEL=") + partition().fileSystem().label());
|
||||||
else
|
else
|
||||||
entry->setFsSpec(m_deviceNode);
|
currentEntry->setFsSpec(m_deviceNode);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ class Partition;
|
||||||
class QFile;
|
class QFile;
|
||||||
class QSpinBox;
|
class QSpinBox;
|
||||||
class QCheckBox;
|
class QCheckBox;
|
||||||
class QLineEdit;
|
class QComboBox;
|
||||||
class QPushButton;
|
class QPushButton;
|
||||||
class QStringList;
|
class QStringList;
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ public:
|
||||||
QLabel& labelName() {
|
QLabel& labelName() {
|
||||||
return *m_LabelNameValue;
|
return *m_LabelNameValue;
|
||||||
}
|
}
|
||||||
QLineEdit& editPath() {
|
QComboBox& editPath() {
|
||||||
return *m_EditPath;
|
return *m_EditPath;
|
||||||
}
|
}
|
||||||
QSpinBox& spinDumpFreq() {
|
QSpinBox& spinDumpFreq() {
|
||||||
|
@ -84,6 +84,7 @@ protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setupOptions(const QStringList& options);
|
void setupOptions(const QStringList& options);
|
||||||
|
void setupRadio(const FstabEntryType entryType);
|
||||||
std::map<QString, QCheckBox*>& boxOptions() {
|
std::map<QString, QCheckBox*>& boxOptions() {
|
||||||
return m_BoxOptions;
|
return m_BoxOptions;
|
||||||
}
|
}
|
||||||
|
@ -101,12 +102,14 @@ private:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FstabEntryList m_fstabEntries;
|
FstabEntryList m_fstabEntries;
|
||||||
FstabEntry *entry;
|
QList<FstabEntry *> entry;
|
||||||
|
FstabEntry *currentEntry;
|
||||||
Partition& m_Partition;
|
Partition& m_Partition;
|
||||||
QString m_Options;
|
QString m_Options;
|
||||||
QString m_deviceNode;
|
QString m_deviceNode;
|
||||||
|
QStringList mountPointList;
|
||||||
std::map<QString, QCheckBox*> m_BoxOptions;
|
std::map<QString, QCheckBox*> m_BoxOptions;
|
||||||
|
std::map<QString, QCheckBox*>::iterator iterator_BoxOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6,51 +6,46 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>613</width>
|
||||||
<height>374</height>
|
<height>374</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="5" column="1" colspan="3">
|
<item row="4" column="2">
|
||||||
<widget class="QLineEdit" name="m_EditPath">
|
<widget class="QRadioButton" name="m_RadioUUID">
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<string>UU&ID</string>
|
||||||
<horstretch>3</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="12" column="1">
|
||||||
<widget class="QLabel" name="m_LabelPath">
|
<widget class="QSpinBox" name="m_SpinDumpFreq"/>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="3" colspan="4">
|
||||||
|
<widget class="QCheckBox" name="m_CheckUsers">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Path:</string>
|
<string>Users can mount and unmount</string>
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>m_EditPath</cstring>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
<item row="10" column="3" colspan="4">
|
||||||
<widget class="QLabel" name="m_LabelType">
|
<widget class="QCheckBox" name="m_CheckRelAtime">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Type:</string>
|
<string>Update access times relative to modification</string>
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0">
|
<item row="6" column="1" colspan="2">
|
||||||
<widget class="QLabel" name="m_LabelOptions">
|
<widget class="QLabel" name="m_LabelTypeValue">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Options:</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
</widget>
|
||||||
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
|
</item>
|
||||||
|
<item row="2" column="0" colspan="7">
|
||||||
|
<widget class="Line" name="line">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -61,52 +56,23 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="3" colspan="4">
|
<item row="12" column="3">
|
||||||
<widget class="QCheckBox" name="m_CheckUsers">
|
<widget class="QLabel" name="m_LabelPassNumber">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Users can mount and unmount</string>
|
<string>Pass &Number:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>m_SpinPassNumber</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="1" colspan="2">
|
<item row="11" column="6">
|
||||||
<widget class="QCheckBox" name="m_CheckNoAuto">
|
<widget class="QPushButton" name="m_ButtonMore">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>No automatic mount</string>
|
<string>More...</string>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="3" colspan="3">
|
|
||||||
<widget class="QCheckBox" name="m_CheckNoAtime">
|
|
||||||
<property name="text">
|
|
||||||
<string>No update of file access times</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="1" colspan="2">
|
|
||||||
<widget class="QCheckBox" name="m_CheckSync">
|
|
||||||
<property name="text">
|
|
||||||
<string>Synchronous access</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="3" colspan="4">
|
|
||||||
<widget class="QCheckBox" name="m_CheckNoDirAtime">
|
|
||||||
<property name="text">
|
|
||||||
<string>No update of directory access times</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="1" colspan="2">
|
|
||||||
<widget class="QCheckBox" name="m_CheckNoExec">
|
|
||||||
<property name="text">
|
|
||||||
<string>No binary execution</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="3" colspan="4">
|
|
||||||
<widget class="QCheckBox" name="m_CheckRelAtime">
|
|
||||||
<property name="text">
|
|
||||||
<string>Update access times relative to modification</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -123,85 +89,23 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="11" column="6">
|
<item row="4" column="1">
|
||||||
<widget class="QPushButton" name="m_ButtonMore">
|
<widget class="QRadioButton" name="m_RadioDeviceNode">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>More...</string>
|
<string>De&vice Node</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="12" column="0">
|
<item row="7" column="0">
|
||||||
<widget class="QLabel" name="m_LabelDumpFreq">
|
<widget class="QLabel" name="m_LabelOptions">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Dump &Frequency:</string>
|
<string>Options:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>m_SpinDumpFreq</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="12" column="1">
|
|
||||||
<widget class="QSpinBox" name="m_SpinDumpFreq"/>
|
|
||||||
</item>
|
|
||||||
<item row="12" column="2">
|
|
||||||
<spacer name="horizontalSpacer_2">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>70</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="12" column="3">
|
|
||||||
<widget class="QLabel" name="m_LabelPassNumber">
|
|
||||||
<property name="text">
|
|
||||||
<string>Pass &Number:</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>m_SpinPassNumber</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="12" column="4">
|
|
||||||
<widget class="QSpinBox" name="m_SpinPassNumber"/>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" colspan="7">
|
|
||||||
<widget class="QLabel" name="m_LabelNameValue">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="1" colspan="2">
|
|
||||||
<widget class="QLabel" name="m_LabelTypeValue">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="7">
|
|
||||||
<widget class="Line" name="line">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -221,6 +125,89 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="4" column="3">
|
||||||
|
<widget class="QRadioButton" name="m_RadioLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Label</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="1" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="m_CheckNoExec">
|
||||||
|
<property name="text">
|
||||||
|
<string>No binary execution</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="12" column="4">
|
||||||
|
<widget class="QSpinBox" name="m_SpinPassNumber"/>
|
||||||
|
</item>
|
||||||
|
<item row="12" column="5" colspan="2">
|
||||||
|
<spacer name="horizontalSpacer_3">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>135</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="1" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="m_CheckNoAuto">
|
||||||
|
<property name="text">
|
||||||
|
<string>No automatic mount</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="6">
|
||||||
|
<widget class="QPushButton" name="m_ButtonRemove">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
<horstretch>1</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Remove</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="4">
|
||||||
|
<widget class="QPushButton" name="m_ButtonSelect">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
<horstretch>1</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Select...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="3" colspan="4">
|
||||||
|
<widget class="QCheckBox" name="m_CheckNoDirAtime">
|
||||||
|
<property name="text">
|
||||||
|
<string>No update of directory access times</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="12" column="0">
|
||||||
|
<widget class="QLabel" name="m_LabelDumpFreq">
|
||||||
|
<property name="text">
|
||||||
|
<string>Dump &Frequency:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>m_SpinDumpFreq</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="3" column="0" colspan="7">
|
<item row="3" column="0" colspan="7">
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -237,6 +224,42 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="m_LabelType">
|
||||||
|
<property name="text">
|
||||||
|
<string>Type:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="m_LabelPath">
|
||||||
|
<property name="text">
|
||||||
|
<string>Path:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" colspan="7">
|
||||||
|
<widget class="QLabel" name="m_LabelNameValue">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="13" column="0" colspan="7">
|
<item row="13" column="0" colspan="7">
|
||||||
<spacer name="verticalSpacer_3">
|
<spacer name="verticalSpacer_3">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -253,29 +276,32 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="8" column="3" colspan="3">
|
||||||
<widget class="QRadioButton" name="m_RadioDeviceNode">
|
<widget class="QCheckBox" name="m_CheckNoAtime">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>De&vice Node</string>
|
<string>No update of file access times</string>
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="2">
|
<item row="9" column="1" colspan="2">
|
||||||
<widget class="QRadioButton" name="m_RadioUUID">
|
<widget class="QCheckBox" name="m_CheckSync">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>UU&ID</string>
|
<string>Synchronous access</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="3">
|
<item row="12" column="2">
|
||||||
<widget class="QRadioButton" name="m_RadioLabel">
|
<spacer name="horizontalSpacer_2">
|
||||||
<property name="text">
|
<property name="orientation">
|
||||||
<string>&Label</string>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>70</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="4" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
|
@ -287,44 +313,8 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="12" column="5" colspan="2">
|
<item row="5" column="1" colspan="3">
|
||||||
<spacer name="horizontalSpacer_3">
|
<widget class="QComboBox" name="m_EditPath"/>
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>135</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="4">
|
|
||||||
<widget class="QPushButton" name="m_ButtonSelect">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
||||||
<horstretch>1</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Select...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="6">
|
|
||||||
<widget class="QPushButton" name="m_ButtonRemove">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
||||||
<horstretch>1</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Remove</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in New Issue