logic: Refreshing reloads the source code and resets the Token ids to start from 1
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "utility/messaging/MessageListener.h"
|
||||
#include "utility/messaging/type/MessageLoadProject.h"
|
||||
#include "utility/messaging/type/MessageLoadSource.h"
|
||||
#include "utility/messaging/type/MessageRefresh.h"
|
||||
|
||||
class ViewFactory;
|
||||
class MainView;
|
||||
@@ -17,6 +18,7 @@ class LocationAccessProxy;
|
||||
class Application
|
||||
: public MessageListener<MessageLoadProject>
|
||||
, public MessageListener<MessageLoadSource>
|
||||
, public MessageListener<MessageRefresh>
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<Application> create(ViewFactory* viewFactory);
|
||||
@@ -25,12 +27,14 @@ public:
|
||||
|
||||
void loadProject(const std::string& projectSettingsFilePath);
|
||||
void loadSource(const std::string& sourceDirectoryPath);
|
||||
void reloadProject();
|
||||
|
||||
private:
|
||||
Application();
|
||||
|
||||
virtual void handleMessage(MessageLoadProject* message);
|
||||
virtual void handleMessage(MessageLoadSource* message);
|
||||
virtual void handleMessage(MessageRefresh* message);
|
||||
|
||||
std::shared_ptr<Project> m_project;
|
||||
std::shared_ptr<GraphAccessProxy> m_graphAccessProxy;
|
||||
|
||||
Reference in New Issue
Block a user