summaryrefslogtreecommitdiffhomepage
path: root/proto-osc/dialog.hpp
blob: 29682843be3e7934ad86f12ca7dc2b757dd85882 (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
#pragma once

#include "settings.hpp"
#include "ui_dialog.h"
#include "api/plugin-api.hpp"

class osc_dialog: public IProtocolDialog
{
    Q_OBJECT

public:
    osc_dialog();
    void register_protocol(IProtocol*) override;
    void unregister_protocol() override;
private:
    void set_buttons_visible(bool x) noexcept override;
    bool embeddable() noexcept override;
    void save() override;
    void reload() override;

    Ui_OSC_Dialog ui;
    osc_settings s;
    const QPalette pal_;

private slots:
    void doOK();
    void doCancel();
    void host_address_edited(const QString& str);
};