MuseScore  3.4
Music composition and notation
searchComboBox.h
Go to the documentation of this file.
1 #ifndef __SEARCHCOMBOBOX__
2 #define __SEARCHCOMBOBOX__
3 #include <QAccessibleWidget>
4 
5 namespace Ms {
6 
7 class SearchComboBox : public QComboBox {
8  Q_OBJECT
9 public:
10  enum SearchType {
15  };
16 private:
18  bool _found;
19  void searchInit();
20  void setSearchType(SearchType s);
21 private slots:
22  void searchTextChanged(const QString& s);
23 public:
25  bool found() { return _found; }
26  SearchComboBox(QWidget* p = 0);
27 signals:
28  void currentSearchFinished();
29 };
30 
31 class AccessibleSearchBox : public QObject, QAccessibleWidget {
32  Q_OBJECT
34  //JAWS compatibility - no idea why yet. Adjustments needs to be made to the JawsScript.
35  //QAccessible::Role role() const Q_DECL_OVERRIDE { return QAccessible::ComboBox; }
36  QString text(QAccessible::Text t) const Q_DECL_OVERRIDE;
37 public:
39  static QAccessibleInterface* SearchBoxFactory(const QString &classname, QObject *object);
40 
41 public slots:
42  void searchFinished();
43 };
44 
45 }
46 
47 #endif
SearchType
Definition: searchComboBox.h:10
Definition: searchComboBox.h:14
void searchTextChanged(const QString &s)
Definition: searchComboBox.cpp:31
SearchComboBox * searchBox
Definition: searchComboBox.h:33
Definition: searchComboBox.h:13
Definition: searchComboBox.h:7
void searchInit()
Definition: searchComboBox.cpp:20
Definition: searchComboBox.h:31
bool found()
Definition: searchComboBox.h:25
Definition: searchComboBox.h:12
SearchComboBox(QWidget *p=0)
Definition: searchComboBox.cpp:9
void setSearchType(SearchType s)
Definition: searchComboBox.cpp:26
Definition: aeolus.cpp:26
Definition: searchComboBox.h:11
SearchType _searchType
Definition: searchComboBox.h:17
bool _found
Definition: searchComboBox.h:18
void currentSearchFinished()
SearchType searchType()
Definition: searchComboBox.h:24