MuseScore  3.4
Music composition and notation
selinstrument.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2002-2009 Werner Schweer and others
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #ifndef __SELINSTRUMENT_H__
21 #define __SELINSTRUMENT_H__
22 
23 #include "ui_selectinstr.h"
24 
25 namespace Ms {
26 
27 class Instrument;
28 class InstrumentTemplate;
29 
30 //---------------------------------------------------------
31 // SelectInstrument
32 //---------------------------------------------------------
33 
34 class SelectInstrument : public QDialog, private Ui::SelectInstrument {
35  Q_OBJECT
36 
37  virtual void hideEvent(QHideEvent*);
38  private slots:
39  void buildTemplateList();
40  void expandOrCollapse(const QModelIndex &);
42  void on_instrumentList_itemDoubleClicked(QTreeWidgetItem* item, int);
43 
44  void on_search_textChanged(const QString&);
45 
47  void filterInstrumentsByGenre(QTreeWidget *, QString);
48 
49  public:
50  SelectInstrument(const Instrument*, QWidget* parent = 0);
51  const InstrumentTemplate* instrTemplate() const;
52  };
53 
54 
55 } // namespace Ms
56 #endif
57 
void on_instrumentList_itemDoubleClicked(QTreeWidgetItem *item, int)
Definition: selinstrument.cpp:98
void on_instrumentList_itemSelectionChanged()
Definition: selinstrument.cpp:87
void buildTemplateList()
Definition: selinstrument.cpp:62
virtual void hideEvent(QHideEvent *)
Definition: selinstrument.cpp:187
void on_search_textChanged(const QString &)
Definition: selinstrument.cpp:122
Definition: instrument.h:250
void filterInstrumentsByGenre(QTreeWidget *, QString)
Definition: selinstrument.cpp:157
Definition: selinstrument.h:34
void on_instrumentGenreFilter_currentIndexChanged(int)
Definition: selinstrument.cpp:139
const InstrumentTemplate * instrTemplate() const
Definition: selinstrument.cpp:109
Definition: aeolus.cpp:26
SelectInstrument(const Instrument *, QWidget *parent=0)
Definition: selinstrument.cpp:35
void expandOrCollapse(const QModelIndex &)
Definition: selinstrument.cpp:75
Definition: instrtemplate.h:48