SearchWidget.hpp
1 #pragma once
2 
3 #include <score/widgets/SearchLineEdit.hpp>
4 
5 #include <QContextMenuEvent>
6 namespace score
7 {
8 struct GUIApplicationContext;
9 }
10 
11 namespace Scenario
12 {
13 class SearchWidget final : public score::SearchLineEdit
14 {
15 public:
16  explicit SearchWidget(const score::GUIApplicationContext& ctx);
17 
18  void toggle() { this->isHidden() ? this->show() : this->hide(); }
19 
20 private:
21  void search() override;
22  void dragEnterEvent(QDragEnterEvent* event) override;
23  void dropEvent(QDropEvent* event) override;
24  void on_findAddresses(QStringList strlst);
25 
26  const score::GUIApplicationContext& m_ctx;
27 };
28 }
Definition: SearchWidget.hpp:14
Definition: SearchLineEdit.hpp:12
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15