Removed redundant 'Bloom' namespace from entire codebase
This commit is contained in:
@@ -24,81 +24,78 @@
|
||||
#include "InsightWorker/InsightWorker.hpp"
|
||||
#include "UserInterfaces/InsightWindow/InsightWindow.hpp"
|
||||
|
||||
namespace Bloom
|
||||
/**
|
||||
* The Insight component provides a GUI for insight into the target's GPIO state.
|
||||
* Insight relies heavily on the Qt framework - it's practically a small Qt application. Each supported target
|
||||
* package variant implements a custom Qt widget that presents the user with the current state of the target's GPIO
|
||||
* pins, as well as the ability to manipulate the pin states of output pins by clicking on them.
|
||||
*
|
||||
* The Insight component occupies the Bloom's main thread. See Application::run() for more.
|
||||
*/
|
||||
class Insight: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/**
|
||||
* The Insight component provides a GUI for insight into the target's GPIO state.
|
||||
* Insight relies heavily on the Qt framework - it's practically a small Qt application. Each supported target
|
||||
* package variant implements a custom Qt widget that presents the user with the current state of the target's GPIO
|
||||
* pins, as well as the ability to manipulate the pin states of output pins by clicking on them.
|
||||
* Insight constructor.
|
||||
*
|
||||
* The Insight component occupies the Bloom's main thread. See Application::run() for more.
|
||||
* Note: We use the comma operator in the application() initializer to set the Qt::AA_ShareOpenGLContexts
|
||||
* attribute, as this is required by Qt before creating a QCoreApplication instance.
|
||||
*
|
||||
* @param eventManager
|
||||
*/
|
||||
class Insight: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
explicit Insight(
|
||||
EventListener& eventListener,
|
||||
const ProjectConfig& projectConfig,
|
||||
const EnvironmentConfig& environmentConfig,
|
||||
const InsightConfig& insightConfig,
|
||||
InsightProjectSettings& insightProjectSettings,
|
||||
QApplication* parent
|
||||
);
|
||||
|
||||
public:
|
||||
/**
|
||||
* Insight constructor.
|
||||
*
|
||||
* Note: We use the comma operator in the application() initializer to set the Qt::AA_ShareOpenGLContexts
|
||||
* attribute, as this is required by Qt before creating a QCoreApplication instance.
|
||||
*
|
||||
* @param eventManager
|
||||
*/
|
||||
explicit Insight(
|
||||
EventListener& eventListener,
|
||||
const ProjectConfig& projectConfig,
|
||||
const EnvironmentConfig& environmentConfig,
|
||||
const InsightConfig& insightConfig,
|
||||
InsightProjectSettings& insightProjectSettings,
|
||||
QApplication* parent
|
||||
);
|
||||
/**
|
||||
* Opens main window and obtains focus.
|
||||
*/
|
||||
void activateMainWindow();
|
||||
|
||||
/**
|
||||
* Opens main window and obtains focus.
|
||||
*/
|
||||
void activateMainWindow();
|
||||
/**
|
||||
* Shuts down Insight. Called when the user closes the Insight window or a ShutdownApplication event is fired.
|
||||
*/
|
||||
void shutdown();
|
||||
|
||||
/**
|
||||
* Shuts down Insight. Called when the user closes the Insight window or a ShutdownApplication event is fired.
|
||||
*/
|
||||
void shutdown();
|
||||
private:
|
||||
static constexpr std::uint8_t INSIGHT_WORKER_COUNT = 3;
|
||||
|
||||
private:
|
||||
static constexpr std::uint8_t INSIGHT_WORKER_COUNT = 3;
|
||||
ProjectConfig projectConfig;
|
||||
EnvironmentConfig environmentConfig;
|
||||
InsightConfig insightConfig;
|
||||
|
||||
ProjectConfig projectConfig;
|
||||
EnvironmentConfig environmentConfig;
|
||||
InsightConfig insightConfig;
|
||||
InsightProjectSettings& insightProjectSettings;
|
||||
|
||||
InsightProjectSettings& insightProjectSettings;
|
||||
EventListener& eventListener;
|
||||
Services::TargetControllerService targetControllerService = Services::TargetControllerService();
|
||||
|
||||
EventListener& eventListener;
|
||||
Services::TargetControllerService targetControllerService = Services::TargetControllerService();
|
||||
Targets::TargetDescriptor targetDescriptor = this->targetControllerService.getTargetDescriptor();
|
||||
|
||||
Targets::TargetDescriptor targetDescriptor = this->targetControllerService.getTargetDescriptor();
|
||||
QString globalStylesheet;
|
||||
|
||||
QString globalStylesheet;
|
||||
std::map<decltype(InsightWorker::id), std::pair<InsightWorker*, QThread*>> insightWorkersById;
|
||||
InsightWindow* mainWindow = nullptr;
|
||||
|
||||
std::map<decltype(InsightWorker::id), std::pair<InsightWorker*, QThread*>> insightWorkersById;
|
||||
InsightWindow* mainWindow = nullptr;
|
||||
Targets::TargetState lastTargetState = Targets::TargetState::UNKNOWN;
|
||||
bool targetStepping = false;
|
||||
QTimer* targetResumeTimer = nullptr;
|
||||
|
||||
Targets::TargetState lastTargetState = Targets::TargetState::UNKNOWN;
|
||||
bool targetStepping = false;
|
||||
QTimer* targetResumeTimer = nullptr;
|
||||
InsightSignals* insightSignals = InsightSignals::instance();
|
||||
|
||||
InsightSignals* insightSignals = InsightSignals::instance();
|
||||
|
||||
void refreshTargetState();
|
||||
void onInsightWindowDestroyed();
|
||||
void onTargetStoppedEvent(const Events::TargetExecutionStopped& event);
|
||||
void onTargetResumedEvent(const Events::TargetExecutionResumed& event);
|
||||
void onTargetResetEvent(const Events::TargetReset& event);
|
||||
void onTargetRegistersWrittenEvent(const Events::RegistersWrittenToTarget& event);
|
||||
void onTargetMemoryWrittenEvent(const Events::MemoryWrittenToTarget& event);
|
||||
void onProgrammingModeEnabledEvent(const Events::ProgrammingModeEnabled& event);
|
||||
void onProgrammingModeDisabledEvent(const Events::ProgrammingModeDisabled& event);
|
||||
};
|
||||
}
|
||||
void refreshTargetState();
|
||||
void onInsightWindowDestroyed();
|
||||
void onTargetStoppedEvent(const Events::TargetExecutionStopped& event);
|
||||
void onTargetResumedEvent(const Events::TargetExecutionResumed& event);
|
||||
void onTargetResetEvent(const Events::TargetReset& event);
|
||||
void onTargetRegistersWrittenEvent(const Events::RegistersWrittenToTarget& event);
|
||||
void onTargetMemoryWrittenEvent(const Events::MemoryWrittenToTarget& event);
|
||||
void onProgrammingModeEnabledEvent(const Events::ProgrammingModeEnabled& event);
|
||||
void onProgrammingModeDisabledEvent(const Events::ProgrammingModeDisabled& event);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user