Added MenuBar action Project->New, which opens a directory dialog for choosing the new source directory to parse the files from. The ConfigManager can be created empty now and setValue calls can be used to set values. fortune cookie message = Your troubles will be faded by the luck you will soon have.
42 lines
1000 B
C++
42 lines
1000 B
C++
#ifndef APPLICATION_H
|
|
#define APPLICATION_H
|
|
|
|
#include <memory>
|
|
|
|
#include "component/ComponentManager.h"
|
|
#include "Project.h"
|
|
#include "utility/messaging/MessageListener.h"
|
|
#include "utility/messaging/type/MessageLoadProject.h"
|
|
#include "utility/messaging/type/MessageLoadSource.h"
|
|
|
|
class GuiFactory;
|
|
class MainView;
|
|
class Storage;
|
|
|
|
class Application
|
|
: public MessageListener<MessageLoadProject>
|
|
, public MessageListener<MessageLoadSource>
|
|
{
|
|
public:
|
|
static std::shared_ptr<Application> create(GuiFactory* guiFactory);
|
|
|
|
~Application();
|
|
|
|
void loadProject(const std::string& projectSettingsFilePath);
|
|
void loadSource(const std::string& sourceDirectoryPath);
|
|
|
|
private:
|
|
Application();
|
|
|
|
virtual void handleMessage(MessageLoadProject* message);
|
|
virtual void handleMessage(MessageLoadSource* message);
|
|
|
|
std::shared_ptr<Project> m_project;
|
|
std::shared_ptr<Storage> m_storage;
|
|
|
|
std::shared_ptr<MainView> m_mainView;
|
|
std::shared_ptr<ComponentManager> m_componentManager;
|
|
};
|
|
|
|
#endif // APPLICATION_H
|