1
//MountManager - the program for easy mounting of storage devices in Linux
2
//Copyright (C) 2007-2008 Tikhonov Sergey
4
//This file is part of MountManager Gui
6
//This program is free software; you can redistribute it and/or
7
//modify it under the terms of the GNU General Public License
8
//as published by the Free Software Foundation; either version 2
9
//of the License, or (at your option) any later version.
11
//This program is distributed in the hope that it will be useful,
12
//but WITHOUT ANY WARRANTY; without even the implied warranty of
13
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
//GNU General Public License for more details.
16
//You should have received a copy of the GNU General Public License
17
//along with this program; if not, write to the Free Software
18
//Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
#ifndef VOLUMEWIDGET_H
20
#define VOLUMEWIDGET_H
22
#include <QtGui/QWidget>
34
class ChooseMountPointWidget;
39
class VolumeWidget : public QWidget
43
void showWarning(const QString& warningText,QList<QAction *> actions);
44
void optionsChanged();
46
void setFilter(const QString& filterText);
47
void setTypeFilter(int index);
48
void updateOptionLine();
49
void udfOrIsoChangedSlot(int index);
50
void useNtfs3g(bool use);
51
void setMountPoint(const QString&);
55
ChooseMountPointWidget *mountPointLine;
59
QGroupBox *optionsGroupBox;
61
QAction *changeMountPointAction;
63
// Cd's can have file system udf or iso9660, but in
64
// /etc/fstab user can write as file system "udf,iso9660" or "udf" or "iso9660" if user have DVD-Rom
65
QComboBox *udfOrIsoComboBox;
66
QLabel *udfOrIsoLabel;
68
QCheckBox *showDefaultOptions;
69
QCheckBox *useNtfs3gOptions;
71
QLineEdit *optionsLine;
72
InfoButton *optionsLineInfoButton;
74
QLineEdit *filterLine;
75
QPushButton *clearFilterLineButton;
77
QComboBox *optionTypes;
78
OptionsTable *optionsTable;
79
// rw,suid,dev,exec,auto,nouser,async == defaults
80
void replaceDefaultOptionsOnOneWord(QString&);
83
VolumeWidget(DiskCore *core,DiskDevice *device,PopupWindow *popupWindow);
86
const QString& mountPoint() const;
88
QString fstabLine(bool warn = false,const QString& format = "name");