refs #568, adjusted GUI components

* use incremental updates
* use new signatures
* handle successfully published models
* some custom menus are gone, because they are now part of the specialized views
This commit is contained in:
Klaus Basan
2016-01-08 00:43:11 +01:00
parent c0b66d93f1
commit 6364853264
15 changed files with 134 additions and 39 deletions

View File

@@ -10,11 +10,14 @@
#include "ui_datainfoareacomponent.h"
#include "blackgui/components/logcomponent.h"
#include "blackgui/components/datainfoareacomponent.h"
#include "blackmisc/network/entityflags.h"
#include "blackcore/webdataservices.h"
#include "blackmisc/icons.h"
#include "blackmisc/logmessage.h"
#include "blackmisc/verify.h"
using namespace BlackMisc;
using namespace BlackMisc::Network;
using namespace BlackGui;
using namespace BlackGui::Components;
@@ -151,5 +154,19 @@ namespace BlackGui
return CIcons::empty();
}
}
void CDataInfoAreaComponent::requestUpdatedData(CEntityFlags::Entity entity)
{
bool requested = false;
if (entity.testFlag(CEntityFlags::ModelEntity))
{
this->ui->comp_DbModels->requestUpdatedData();
requested = true;
}
// sanity
BLACK_VERIFY_X(requested, Q_FUNC_INFO, "Entity not supported");
Q_UNUSED(requested);
}
} // ns
} // ns