#pragma once #include "installerpage.h" #include class QLabel; class QTreeWidget; struct MountPoint { // constant info QString dev; QString label; QString size; QString fs; // from gui to installer QString mountpoint; // bool bind; QString fs_new; bool format; MountPoint() : /*bind(false),*/ format(false) {}; }; typedef QList MountPointsList; typedef QMap 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); private: QLabel* m_labMountPoints; QTreeWidget* m_trwMountPoints; MountPointsTree m_treeMountPoints; };