source: src-qt4/pc-zmanager/dialogfsprop.h @ 125dbc9

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 125dbc9 was 125dbc9, checked in by Kris Moore <kris@…>, 12 months ago

Welcome the new 'pc-zmanager' for ZFS & Disk Management

A HUGE Thank You to: Claudio L <claudio@…>

Update pkg-plist and add it to the control panel

  • Property mode set to 100644
File size: 1.9 KB
Line 
1#ifndef DIALOGFSPROP_H
2#define DIALOGFSPROP_H
3#include "zmanagerwindow.h"
4#include <QDialog>
5#include <QAbstractButton>
6#include <QDialogButtonBox>
7
8namespace Ui {
9class DialogFSProp;
10}
11
12
13class DialogFSProp : public QDialog
14{
15    Q_OBJECT
16    QList<zproperty> AllProperties;
17    zfs_t *fsprops;
18
19public:
20
21    QString getFSProperty(QString Property);
22    zproperty *getFSBaseProperty(QString Property);
23    bool FSPropertyExists(QString Property);
24    QString getFSPropertySource(QString Property);
25
26
27    void InitAllProperties();
28    void refreshList();
29    void setDataset(zfs_t *props);
30
31    void itemRevertChanges(QTreeWidgetItem *item,zproperty *pr);
32    void itemInherit(QTreeWidgetItem *item,zproperty *prop);
33    void itemNewProperty();
34    void itemRemoveProperty();
35
36
37
38    QStringList getAllChangedProps();   // RETURN A LIST OF ALL PROPERTIES THAT WERE CHANGED BY THE USER
39    QStringList getAllChangedValues();  // RETURN A LIST WITH THE VALUES OF ALL PROPERTIES CHANGED BY THE USER
40    QList<int>  getAllChangedFlags();   // RETURN A LIST WITH THE FLAGS OF ALL PROPERTIES CHANGED BY THE USER
41    bool        applyRecursively();
42
43    explicit DialogFSProp(QWidget *parent = 0);
44    ~DialogFSProp();
45
46private slots:
47    void on_propList_itemDoubleClicked(QTreeWidgetItem *item, int column);
48    void on_propList_comboChanged(int index);
49    void on_propList_itemChanged(QTreeWidgetItem *item, int column);
50    void on_propList_customContextMenuRequested(const QPoint &pos);
51    void on_propList_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
52    void scrollToCurrentItemAndEdit();
53    void scrollToCurrentItem();
54
55    void on_buttonAdd_clicked();
56
57    void on_buttonRemove_clicked();
58
59    void on_buttonRevert_clicked();
60
61    void on_buttonInherit_clicked();
62
63    void on_buttonBox_clicked(QAbstractButton *button);
64
65private:
66    Ui::DialogFSProp *ui;
67};
68
69#endif // DIALOGFSPROP_H
Note: See TracBrowser for help on using the repository browser.