summaryrefslogtreecommitdiffhomepage
path: root/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-01-04 13:08:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-01-23 14:16:33 +0100
commitd9a88a7a56f0ba41f2505b9b5756a4a0c26fa786 (patch)
tree78fafeecbec98cd7ed9a8044edf6e20cca6416d6 /tracker-neuralnet/ftnoir_tracker_neuralnet.cpp
parent8ff5c1a349781810a9166128e7840e0ee281e8ae (diff)
[MERGE] tracker/nn: make dialog embeddable
Diffstat (limited to 'tracker-neuralnet/ftnoir_tracker_neuralnet.cpp')
-rw-r--r--tracker-neuralnet/ftnoir_tracker_neuralnet.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp
index b56b4e96..59e17063 100644
--- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp
+++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp
@@ -747,10 +747,19 @@ NeuralNetDialog::NeuralNetDialog() :
tracker_status_poll_timer_.start();
}
+void NeuralNetDialog::save()
+{
+ settings_.b->save();
+}
+
+void NeuralNetDialog::reload()
+{
+ settings_.b->reload();
+}
void NeuralNetDialog::doOK()
{
- settings_.b->save();
+ save();
close();
}
@@ -793,6 +802,15 @@ void NeuralNetDialog::unregister_tracker()
ui_.tcalib_button->setEnabled(false);
}
+bool NeuralNetDialog::embeddable() noexcept
+{
+ return true;
+}
+
+void NeuralNetDialog::set_buttons_visible(bool x)
+{
+ ui_.buttonBox->setVisible(x);
+}
void NeuralNetDialog::status_poll()
{