[EGD-7773] Popups stack poc

Stack plus minimum tests added
Updated to master
Removed useless or adressed TODOS
Constants name applied
Renamed searchModel to searchRequestModel
Review applied
We should remove legacy window names
Bell names fixes
This commit is contained in:
Adam Dobrowolski
2021-10-12 14:37:58 +02:00
committed by Adam Dobrowolski
parent df7d19658c
commit 0ec9428917
97 changed files with 1756 additions and 688 deletions

View File

@@ -47,12 +47,10 @@ namespace app
if (msgl->messageType == MessageType::DBServiceNotification) {
if (auto msg = dynamic_cast<db::NotificationMessage *>(msgl); msg != nullptr) {
// window-specific actions
if (msg->interface == db::Interface::Name::Notes) {
for (auto &[name, window] : windowsStack) {
window->onDatabaseMessage(msg);
}
}
userInterfaceDBNotification(msgl,
[&]([[maybe_unused]] sys::Message *, [[maybe_unused]] const std::string &) {
return msg->interface == db::Interface::Name::Notes;
});
return std::make_shared<sys::ResponseMessage>();
}
}