You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
843 B
50 lines
843 B
#pragma once
|
|
|
|
#include "installerpage.h"
|
|
|
|
#include <QMap>
|
|
|
|
#include "commons.h"
|
|
|
|
class QLabel;
|
|
class QTreeWidget;
|
|
|
|
typedef QList<MountPoint> MountPointsList;
|
|
typedef QMap<QString, MountPointsList> MountPointsTree;
|
|
|
|
class QTreeWidgetItem;
|
|
|
|
class PageMountPoints : public InstallerPage
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
PageMountPoints();
|
|
|
|
bool validate();
|
|
void retranslateUi();
|
|
|
|
public slots:
|
|
void show();
|
|
|
|
private slots:
|
|
void partitionDoubleClicked(QTreeWidgetItem* item, int index);
|
|
|
|
protected:
|
|
void setupUi();
|
|
|
|
private:
|
|
void getTree();
|
|
void showTree();
|
|
void showBranch(const QString& dev, const MountPointsList& list);
|
|
|
|
void generateCmdDisk();
|
|
QStringList parseMountPoint();
|
|
QString parseSwap();
|
|
|
|
private:
|
|
QLabel* m_labMountPoints;
|
|
QTreeWidget* m_trwMountPoints;
|
|
QLabel* m_labMountPointHelp;
|
|
|
|
MountPointsTree m_treeMountPoints;
|
|
}; |