summaryrefslogtreecommitdiffhomepage
path: root/tracker-steamvr/dialog.cpp
blob: 1bfa5bcb66d35e74a41de151e91de1830a83f3a3 (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
#include "steamvr.hpp"
#include "api/plugin-api.hpp"

steamvr_dialog::steamvr_dialog()
{
    ui.setupUi(this);

    connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK()));
    connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel()));

    for (unsigned i = 0; i < 6; i++)
        ui.rotation_order->addItem(QStringLiteral("order #%1").arg(i));

    tie_setting(s.order, ui.rotation_order);
}

void steamvr_dialog::doOK()
{
    s.b->save();
    close();
}

void steamvr_dialog::doCancel()
{
    close();
}