Files
Sourcetrail/src/lib/component/ComponentFactory.h
T
Eberhard Graether 149a305761 logic: Fixed error view related issues
* polished color schemes for error view
* fixed error id column not hidden
* fixed error count shown correctly in each view
* moved storage stats logging to application
* fixed indexed flag of errors broken for indexed headers in cdb project
* fixed scrolling to active error when errors where not visible before
* reverted tictactoe files to no errors
2016-10-13 14:21:22 +02:00

41 lines
1.2 KiB
C++

#ifndef COMPONENT_FACTORY_H
#define COMPONENT_FACTORY_H
#include <memory>
#include "data/access/StorageAccess.h"
class Component;
class ViewFactory;
class ViewLayout;
class ComponentFactory
{
public:
static std::shared_ptr<ComponentFactory> create(ViewFactory* viewFactory, StorageAccess* storageAccess);
~ComponentFactory();
ViewFactory* getViewFactory() const;
StorageAccess* getStorageAccess() const;
std::shared_ptr<Component> createCodeComponent(ViewLayout* viewLayout);
std::shared_ptr<Component> createErrorComponent(ViewLayout* viewLayout);
std::shared_ptr<Component> createFeatureComponent();
std::shared_ptr<Component> createGraphComponent(ViewLayout* viewLayout);
std::shared_ptr<Component> createLogComponent(ViewLayout* viewLayout);
std::shared_ptr<Component> createRefreshComponent(ViewLayout* viewLayout);
std::shared_ptr<Component> createSearchComponent(ViewLayout* viewLayout);
std::shared_ptr<Component> createStatusBarComponent(ViewLayout* viewLayout);
std::shared_ptr<Component> createUndoRedoComponent(ViewLayout* viewLayout);
private:
ComponentFactory();
ComponentFactory(const ComponentFactory&);
ViewFactory* m_viewFactory;
StorageAccess* m_storageAccess;
};
#endif // COMPONENT_FACTORY_H