diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-21 17:33:41 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-07-06 17:34:18 +0200 |
commit | 6c6c3ba697e8feef38fa85cb9d0c088b3a8d0df5 (patch) | |
tree | e1ba19ba9a5406ad06a60c8fbd23c2c1008754fa /proto-osc/dialog.hpp | |
parent | e0507257a41c29fa2e9ac28f36470023a72c39c6 (diff) |
proto/osc: add incomplete code
Finishing it is just a bit more work.
See: #1264
Diffstat (limited to 'proto-osc/dialog.hpp')
-rw-r--r-- | proto-osc/dialog.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/proto-osc/dialog.hpp b/proto-osc/dialog.hpp new file mode 100644 index 00000000..29682843 --- /dev/null +++ b/proto-osc/dialog.hpp @@ -0,0 +1,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); +}; |