8 #include "ui_datamaininfoareacomponent.h"
25 CDataMainInfoAreaComponent::CDataMainInfoAreaComponent(QWidget *parent)
30 this->setWindowIcon(CIcons::swiftDatabase24());
43 ui->comp_Log->showFilterBar();
54 return ui->comp_DataInfoArea;
76 case InfoAreaSettings:
78 default:
return QSize(800, 600);
87 case InfoAreaData:
return CIcons::appDatabase16();
88 case InfoAreaMapping:
return CIcons::appMappings16();
89 case InfoAreaSettings:
return CIcons::appSettings16();
90 case InfoAreaLog:
return CIcons::appLog16();
91 default:
return CIcons::empty();
Info area, hosting dockable widgets.
void selectArea(int areaIndex)
Select area.
void initInfoArea()
Init area after(!) GUI is initialized.
Info area containing the DB data (models, liveries ...)
void requestUpdatedData(swift::misc::network::CEntityFlags::Entity entity)
Load new data (based on timestamp, incremental)
Main info area for data entry tool.
virtual const QPixmap & indexToPixmap(int areaIndex) const
Info area (index) to icon.
virtual ~CDataMainInfoAreaComponent()
Destructor.
CDataInfoAreaComponent * getDataInfoAreaComponent() const
Info area component.
virtual QSize getPreferredSizeWhenFloating(int areaIndex) const
Preferred size when floating (size hint)
void selectLog()
Select log area.
void displayLog()
Display the log.
swift::gui::components::CDataSettingsComponent * getDataSettingsComponent() const
Settings component.
CLogComponent * getLogComponent() const
Log component.
CDbMappingComponent * getMappingComponent() const
Mapping component.
void filter(const swift::misc::aviation::CAircraftIcaoCode &icao)
Filter by ICAO as default.
void filter(const swift::misc::aviation::CLivery &livery)
Filter by livery.
swift::misc::CStatusMessageList stashModels(const swift::misc::simulation::CAircraftModelList &models)
Stash given models (includes validation and consolidation with DB data)
void requestUpdatedData(swift::misc::network::CEntityFlags::Entity entities)
Request latest (incremental) data from backend.
void filterByAircraftIcao(const swift::misc::aviation::CAircraftIcaoCode &icao)
Request to filter by aircraft ICAO.
void filterByLivery(const swift::misc::aviation::CLivery &livery)
Request to filter by livery.
void requestStash(const swift::misc::simulation::CAircraftModelList &models)
Request to stash the selected models.
GUI displaying log and status messages.
void displayLog(bool attention=false)
Display log.
void requestAttention()
Make me visible.
High level reusable GUI components.
Free functions in swift::misc.
#define SWIFT_VERIFY_X(COND, WHERE, WHAT)
A weaker kind of assert.