#include "QtViewFactory.h" #include "GraphViewStyle.h" #include "QtBookmarkButtonsView.h" #include "QtBookmarkView.h" #include "QtCodeView.h" #include "QtCompositeView.h" #include "QtDialogView.h" #include "QtErrorView.h" #include "QtGraphView.h" #include "QtGraphViewStyleImpl.h" #include "QtMainView.h" #include "QtRefreshView.h" #include "QtScreenSearchView.h" #include "QtSearchView.h" #include "QtStatusBarView.h" #include "QtStatusView.h" #include "QtTabbedView.h" #include "QtTabsView.h" #include "QtTooltipView.h" #include "QtUndoRedoView.h" QtViewFactory::QtViewFactory() { } std::shared_ptr QtViewFactory::createMainView(StorageAccess* storageAccess) const { return std::make_shared(this, storageAccess); } std::shared_ptr QtViewFactory::createCompositeView( ViewLayout* viewLayout, CompositeView::CompositeDirection direction, const std::string& name ) const { std::shared_ptr ptr = std::make_shared(viewLayout, direction, name); ptr->init(); ptr->addToLayout(); return ptr; } std::shared_ptr QtViewFactory::createTabbedView(ViewLayout* viewLayout, const std::string& name) const { std::shared_ptr ptr = std::make_shared(viewLayout, name); ptr->init(); ptr->addToLayout(); return ptr; } std::shared_ptr QtViewFactory::createBookmarkButtonsView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createBookmarkView(ViewLayout* viewLayout) const { return View::createAndInit(viewLayout); } std::shared_ptr QtViewFactory::createCodeView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createErrorView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createStatusView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createGraphView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createRefreshView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createScreenSearchView(ViewLayout* viewLayout) const { return View::createAndInit(viewLayout); } std::shared_ptr QtViewFactory::createSearchView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createStatusBarView(ViewLayout* viewLayout) const { return View::createAndInit(viewLayout); } std::shared_ptr QtViewFactory::createTabsView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createTooltipView(ViewLayout* viewLayout) const { return View::createAndInit(viewLayout); } std::shared_ptr QtViewFactory::createUndoRedoView(ViewLayout* viewLayout) const { return View::createInitAndAddToLayout(viewLayout); } std::shared_ptr QtViewFactory::createDialogView( ViewLayout* viewLayout, DialogView::UseCase useCase, StorageAccess* storageAccess) const { return std::make_shared(dynamic_cast(viewLayout)->getMainWindow(), useCase, storageAccess); } std::shared_ptr QtViewFactory::createGraphStyleImpl() const { return std::make_shared(); }