mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user