#ifndef SELECTIONWIDGET_H
#define SELECTIONWIDGET_H

#include <QWidget>
#include <QButtonGroup>
#include <QStackedWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QScrollArea>

#include "driverinstallmainwidget.h"
#include "hardwareinfomainwidget.h"
#include "driveruninstallmainwidget.h"
#include "include/custompushbutton.h"

class SelectionWidget : public QWidget {
Q_OBJECT
public:
    explicit SelectionWidget(QWidget *parent = nullptr);

private:
    CustomPushButton *m_driverInstallBtn = nullptr;
    CustomPushButton *m_hardwareInfoBtn = nullptr;
    CustomPushButton *m_driverUninstallBtn = nullptr;

    QButtonGroup *m_btnGroup = nullptr;

    QStackedWidget *m_stackWidget = nullptr;
    DriverInstallMainWidget *m_driverInstallWidget = nullptr;
    DriverUninstallMainWidget *m_driverUninstallWidget = nullptr;
    HardwareInfoMainWidget *m_hardwareInfoMainWidget = nullptr;

    QScrollArea *m_driverInstallSrollArea = nullptr;
    QScrollArea *m_driverUninstallSrollArea = nullptr;

    QVBoxLayout *m_mainLayout = nullptr;
    QHBoxLayout *m_buttonLayout = nullptr;

    void initGui();

    void initConnect();
};


#endif //SELECTIONWIDGET_H
