summaryrefslogtreecommitdiff
path: root/src/forcedloaddialogwidget.h
blob: 239653c89036bef8fd5f5b9a7dfa9e4627d188f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef FORCEDLOADDIALOGWIDGET_H
#define FORCEDLOADDIALOGWIDGET_H

#include <QWidget>
#include "iplugingame.h"

namespace Ui {
class ForcedLoadDialogWidget;
}

class ForcedLoadDialogWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ForcedLoadDialogWidget(const MOBase::IPluginGame *game, QWidget *parent = nullptr);
    ~ForcedLoadDialogWidget();

    bool getEnabled();
    bool getForced();
    QString getLibraryPath();
    QString getProcess();

    void setEnabled(bool enabled);
    void setForced(bool forced);
    void setLibraryPath(const QString &path);
    void setProcess(const QString &name);

private slots:
    void on_enabledBox_toggled();
    void on_libraryPathBrowseButton_clicked();
    void on_processBrowseButton_clicked();

private:
    Ui::ForcedLoadDialogWidget *ui;
    bool m_Forced;
    const MOBase::IPluginGame *m_GamePlugin;

};

#endif // FORCEDLOADDIALOGWIDGET_H