* only randomize parsing order of source files for multithreaded indexing * fixed overview not displayed when switching projects due to MessageScrollCode being dispatched * avoid adding duplicate TokenLocations that causes highlighting to break in QtCodeArea * clear all controllers when switching project * maximize unindexed file when clicking title instead of activating it
40 lines
812 B
C++
40 lines
812 B
C++
#ifndef COMPONENT_MANAGER_H
|
|
#define COMPONENT_MANAGER_H
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
#include "component/Component.h"
|
|
#include "component/ComponentFactory.h"
|
|
|
|
class CompositeView;
|
|
class NetworkFactory;
|
|
class StorageAccess;
|
|
class View;
|
|
class ViewFactory;
|
|
class ViewLayout;
|
|
|
|
class ComponentManager
|
|
{
|
|
public:
|
|
static std::shared_ptr<ComponentManager> create(ViewFactory* viewFactory, StorageAccess* graphAccess);
|
|
|
|
~ComponentManager();
|
|
|
|
void setup(ViewLayout* viewLayout);
|
|
|
|
void clearComponents();
|
|
void refreshViews();
|
|
|
|
private:
|
|
ComponentManager();
|
|
ComponentManager(const ComponentManager&);
|
|
|
|
std::shared_ptr<ComponentFactory> m_componentFactory;
|
|
|
|
std::vector<std::shared_ptr<CompositeView>> m_compositeViews;
|
|
std::vector<std::shared_ptr<Component>> m_components;
|
|
};
|
|
|
|
#endif // COMPONENT_MANAGER_H
|