Changeset View
Changeset View
Standalone View
Standalone View
src/gui/editmountpointdialogwidget.h
Show All 33 Lines | |||||
34 | class QCheckBox; | 34 | class QCheckBox; | ||
35 | class QLineEdit; | 35 | class QLineEdit; | ||
36 | class QPushButton; | 36 | class QPushButton; | ||
37 | class QStringList; | 37 | class QStringList; | ||
38 | 38 | | |||
39 | class EditMountPointDialogWidget : public QWidget, public Ui::EditMountPointDialogWidgetBase | 39 | class EditMountPointDialogWidget : public QWidget, public Ui::EditMountPointDialogWidgetBase | ||
40 | { | 40 | { | ||
41 | public: | 41 | public: | ||
42 | EditMountPointDialogWidget(QWidget* parent, const Partition& p); | 42 | EditMountPointDialogWidget(QWidget* parent, Partition& p); | ||
43 | ~EditMountPointDialogWidget(); | 43 | ~EditMountPointDialogWidget(); | ||
44 | 44 | | |||
45 | QPushButton& buttonMore() { | 45 | QPushButton& buttonMore() { | ||
46 | return *m_ButtonMore; | 46 | return *m_ButtonMore; | ||
47 | } | 47 | } | ||
48 | QLabel& labelName() { | 48 | QLabel& labelName() { | ||
49 | return *m_LabelNameValue; | 49 | return *m_LabelNameValue; | ||
50 | } | 50 | } | ||
Show All 19 Lines | |||||
70 | QRadioButton& radioDeviceNode() { | 70 | QRadioButton& radioDeviceNode() { | ||
71 | return *m_RadioDeviceNode; | 71 | return *m_RadioDeviceNode; | ||
72 | } | 72 | } | ||
73 | FstabEntryList& fstabEntries() { | 73 | FstabEntryList& fstabEntries() { | ||
74 | return m_fstabEntries; | 74 | return m_fstabEntries; | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | void acceptChanges(); | 77 | void acceptChanges(); | ||
78 | void removeMountPoint(); | ||||
78 | bool writeMountpoints(const QString& filename); | 79 | bool writeMountpoints(const QString& filename); | ||
stikonas: Is this not used anymore? I think we still need it. | |||||
79 | 80 | | |||
80 | protected: | 81 | protected: | ||
81 | void buttonSelectClicked(bool); | 82 | void buttonSelectClicked(bool); | ||
82 | void buttonMoreClicked(bool); | 83 | void buttonMoreClicked(bool); | ||
83 | 84 | | |||
84 | private: | 85 | private: | ||
85 | void setupOptions(const QStringList& options); | 86 | void setupOptions(const QStringList& options); | ||
86 | std::map<QString, QCheckBox*>& boxOptions() { | 87 | std::map<QString, QCheckBox*>& boxOptions() { | ||
87 | return m_BoxOptions; | 88 | return m_BoxOptions; | ||
88 | } | 89 | } | ||
89 | const std::map<QString, QCheckBox*>& boxOptions() const { | 90 | const std::map<QString, QCheckBox*>& boxOptions() const { | ||
90 | return m_BoxOptions; | 91 | return m_BoxOptions; | ||
91 | } | 92 | } | ||
92 | 93 | | |||
94 | Partition& partition() { | ||||
95 | return m_Partition; | ||||
96 | } | ||||
97 | | ||||
93 | const Partition& partition() const { | 98 | const Partition& partition() const { | ||
94 | return m_Partition; | 99 | return m_Partition; | ||
95 | } | 100 | } | ||
96 | 101 | | |||
97 | private: | 102 | private: | ||
98 | FstabEntryList m_fstabEntries; | 103 | FstabEntryList m_fstabEntries; | ||
99 | FstabEntry *entry; | 104 | FstabEntry *entry; | ||
100 | 105 | | |||
101 | const Partition& m_Partition; | 106 | Partition& m_Partition; | ||
102 | QString m_Options; | 107 | QString m_Options; | ||
103 | QString m_deviceNode; | 108 | QString m_deviceNode; | ||
104 | std::map<QString, QCheckBox*> m_BoxOptions; | 109 | std::map<QString, QCheckBox*> m_BoxOptions; | ||
105 | }; | 110 | }; | ||
106 | 111 | | |||
107 | #endif | 112 | #endif |
Is this not used anymore? I think we still need it.