51 lines
1.2 KiB
C++
Executable File
51 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Handle bulding display in thp
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
#pragma once
|
|
|
|
#include <SituationReplay/main_handler_sqlite.h>
|
|
#include "thp_situation_building_base.h"
|
|
|
|
namespace BuildingViewer
|
|
{
|
|
class BgViewerController;
|
|
}
|
|
namespace Ui
|
|
{
|
|
class BuildingWidget;
|
|
}
|
|
namespace THP
|
|
{
|
|
class BuildingPluginProvider;
|
|
class BgViewerSettingsView;
|
|
class BuildingWidget : public SituationBuildingBase
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
BuildingWidget(QWidget *parent = nullptr);
|
|
~BuildingWidget();
|
|
|
|
bool init(SituationReplay::MainHandlerSqlite *mhs,
|
|
BuildingPluginProvider *pp,
|
|
const QString &homePath);
|
|
|
|
protected:
|
|
bool showSituationInternal() override;
|
|
void emitPartitionTimeChanged(qint64 curTime) override;
|
|
|
|
protected Q_SLOTS:
|
|
void onGlobalSettings();
|
|
virtual void applyCurentFilter(const SituationReplay::FilterInformation &) override {}
|
|
virtual void applyNewOverlay(int) override {}
|
|
virtual void removeOverlay(int) override {}
|
|
private:
|
|
BuildingPluginProvider *m_pluginProvider = nullptr;
|
|
BuildingViewer::BgViewerController *m_bgvController = nullptr;
|
|
BgViewerSettingsView *m_globalSettingsDialog = nullptr;
|
|
};
|
|
} // namespace THP
|