ui: Added on-screen search feature (issue #79)
* 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
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#ifndef QT_SCREEN_SEARCH_VIEW_H
|
||||
#define QT_SCREEN_SEARCH_VIEW_H
|
||||
|
||||
#include "component/controller/helper/ControllerProxy.h"
|
||||
#include "component/view/ScreenSearchView.h"
|
||||
#include "qt/utility/QtThreadedFunctor.h"
|
||||
|
||||
class QtScreenSearchBox;
|
||||
class QToolBar;
|
||||
|
||||
class QtScreenSearchView
|
||||
: public QObject
|
||||
, public ScreenSearchView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QtScreenSearchView(ViewLayout* viewLayout);
|
||||
~QtScreenSearchView();
|
||||
|
||||
// View implementation
|
||||
virtual void createWidgetWrapper() override;
|
||||
virtual void initView() override;
|
||||
virtual void refreshView() override;
|
||||
|
||||
// ScreenSearchView implementation
|
||||
virtual void setMatchCount(size_t matchCount) override;
|
||||
virtual void setMatchIndex(size_t matchIndex) override;
|
||||
|
||||
virtual void addResponder(const std::string& name) override;
|
||||
|
||||
public slots:
|
||||
void show();
|
||||
void hide();
|
||||
|
||||
private:
|
||||
ControllerProxy m_controllerProxy;
|
||||
QtThreadedLambdaFunctor m_onQtThread;
|
||||
|
||||
QtScreenSearchBox* m_widget;
|
||||
QToolBar* m_bar;
|
||||
};
|
||||
|
||||
#endif // QT_SCREEN_SEARCH_VIEW_H
|
||||
Reference in New Issue
Block a user