diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-07-26 21:50:41 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-07-26 22:06:04 +0200 |
| commit | ba31faa55abedea506443df821e32aff93378c15 (patch) | |
| tree | ef192cd7b1c1fcc87ed8238353ea40c5f3e1dc32 /src/monitor-gui.cc | |
| parent | 629bd9dbd099af60812e80f851afb7902fc28c37 (diff) | |
Add GuiForm::Listener::changed which is called whenever a value is changed
Diffstat (limited to 'src/monitor-gui.cc')
| -rw-r--r-- | src/monitor-gui.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/monitor-gui.cc b/src/monitor-gui.cc index 7b4f5f2..d293935 100644 --- a/src/monitor-gui.cc +++ b/src/monitor-gui.cc @@ -331,6 +331,9 @@ class MonitorGui : GuiMenu::Listener, GuiMain::Listener, Monitor::Delegate, private: class ConnectFormListener : public GuiFormApply::Listener { public: + void changed(GuiForm* UNUSED(form), std::string const& UNUSED(id)) override { + } + bool about_to_close(GuiForm* form) override { auto address = form->get_string("address"); if (address.empty()) { @@ -371,6 +374,9 @@ private: class SetupFormListener : public GuiFormApply::Listener { public: + void changed(GuiForm* UNUSED(form), std::string const& UNUSED(id)) override { + } + bool about_to_close(GuiForm* form) override { auto const& port = form->get_string("port"); if (port.empty()) { @@ -447,6 +453,9 @@ private: class GenerateFormListener : public GuiFormApply::Listener { public: + void changed(GuiForm* UNUSED(form), std::string const& UNUSED(id)) override { + } + bool about_to_close(GuiForm* form) override { auto const& output = form->get_file("output"); if (output.empty()) { |
