source: src-qt4/pc-installgui/wizardDisk.h @ 07eb74c

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

Update installer GUI to provide option to use old FreeBSD boot-loader
this will work for users who don't care about BE's or want to test
the FreeBSD loader when it begins to get these features.

Update pc-sysinstall backend to work with BSD/bsd GRUB/grub as the
bootManager= string

  • Property mode set to 100644
File size: 2.2 KB
Line 
1
2#ifndef WIZDISK_H
3#define WIZDISK_H
4
5#include <QMenu>
6#include "ui_wizardDisk.h"
7#include <qstring.h>
8#include "dialogFSSize.h"
9#include "backend.h"
10
11class wizardDisk : public QWizard, private Ui::wizardDisk
12{
13        Q_OBJECT
14
15public:
16        wizardDisk() : QWizard()
17        {
18          setupUi(this);
19        }
20
21    void programInit();
22    void setRestoreMode();
23    virtual int nextId() const;
24
25public slots:
26
27protected:
28
29private slots:
30    virtual void accept();
31    void slotClose();
32    void slotCheckComplete();
33    void slotChangedDisk();
34    void slotTreeDiskChanged();
35    void slotResizeFS();
36    void slotRemoveFS();
37    void slotAddFS();
38    void slotSaveFSResize(int);
39    void slotTreeMountsRightClick();
40    void slotTerminal();
41    void slotSwapSize();
42    void slotGPTClicked();
43 
44    // QMenu slots
45    void slotZCMON();
46    void slotZCMOFF();
47    void slotZCMNOAUTO();
48    void slotZDDOFF();
49    void slotZDDON();
50    void slotZDDVERIFY();
51    void slotZCmpON();
52    void slotZCmpOFF();
53    void slotZCmpLZ4();
54    void slotZCmpLZJB();
55    void slotZCmpGZIP();
56    void slotZCmpZLE();
57    void slotZChkON();
58    void slotZChkOFF();
59    void slotZATON();
60    void slotZATOFF();
61    void slotZEXON();
62    void slotZEXOFF();
63
64private:
65    void populateDiskInfo();
66    void populateDiskTree();
67    void populateZFSDisks();
68    void generateDiskLayout();
69    void generateCustomDiskLayout();
70    void generateConfirmationText();
71    void toggleZFSOpt(QString);
72    bool validatePage();
73    bool checkDiskSpace();
74     int getDiskSliceSize();
75     int prevID;
76     int systemMemory;
77     int swapsize;
78    QList<QStringList> sysDisks; // Our lists which contains disk info
79    QList<QStringList> sysPartitions; // Our lists which contains partition info
80    QList<QStringList> sysFinalDiskLayout; // The final disk layout
81    QString addingMount;
82
83    QMenu *popup;
84    QMenu *popupCmp;
85    QMenu *popupDD;
86    QMenu *popupCM;
87    QMenu *popupAT;
88    QMenu *popupCH;
89    QMenu *popupNE;
90    dialogFSSize *rFS;
91    bool restoreMode;
92    enum { Page_Intro, Page_BasicDisk, Page_ZFS, Page_Mounts, Page_Expert, Page_Confirmation };
93
94signals:
95    void saved(QList<QStringList>, QString, bool, QString, bool);
96
97} ;
98#endif // WIZDISK_H
Note: See TracBrowser for help on using the repository browser.