* Use menu action "Edit -> Find in View" or Ctrl + D * UI displayed as search bar at bottom of main window * Hide search bar with ECS or close button * Entering a query searches in name of graph nodes and code contents of code view * Use Enter to iterate through matches, well move match into view in graph and code view * Checkboxes allow for adding/removing results for certain views * Create Bookmark shortcut is now CTRL + S bug id = 79
54 lines
2.0 KiB
C++
54 lines
2.0 KiB
C++
#ifndef VIEW_FACTORY_H
|
|
#define VIEW_FACTORY_H
|
|
|
|
#include <memory>
|
|
|
|
#include "component/view/CompositeView.h"
|
|
|
|
class BookmarkView;
|
|
class CodeView;
|
|
class DialogView;
|
|
class ErrorView;
|
|
class GraphView;
|
|
class MainView;
|
|
class LogView;
|
|
class RefreshView;
|
|
class ScreenSearchView;
|
|
class SearchView;
|
|
class StatusBarView;
|
|
class StatusView;
|
|
class StorageAccess;
|
|
class TabbedView;
|
|
class TooltipView;
|
|
class UndoRedoView;
|
|
class ViewLayout;
|
|
|
|
class ViewFactory
|
|
{
|
|
public:
|
|
ViewFactory();
|
|
virtual ~ViewFactory();
|
|
|
|
virtual std::shared_ptr<MainView> createMainView() const = 0;
|
|
virtual std::shared_ptr<CompositeView> createCompositeView(
|
|
ViewLayout* viewLayout, CompositeView::CompositeDirection direction, const std::string& name) const = 0;
|
|
virtual std::shared_ptr<TabbedView> createTabbedView(ViewLayout* viewLayout, const std::string& name) const = 0;
|
|
|
|
virtual std::shared_ptr<BookmarkView> createBookmarkView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<CodeView> createCodeView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<ErrorView> createErrorView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<GraphView> createGraphView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<LogView> createLogView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<RefreshView> createRefreshView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<ScreenSearchView> createScreenSearchView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<SearchView> createSearchView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<StatusBarView> createStatusBarView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<StatusView> createStatusView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<TooltipView> createTooltipView(ViewLayout* viewLayout) const = 0;
|
|
virtual std::shared_ptr<UndoRedoView> createUndoRedoView(ViewLayout* viewLayout) const = 0;
|
|
|
|
virtual std::shared_ptr<DialogView> createDialogView(ViewLayout* viewLayout, StorageAccess* storageAccess) const = 0;
|
|
};
|
|
|
|
#endif // VIEW_FACTORY_H
|