13 #ifndef __INSTRWIDGET_H__ 14 #define __INSTRWIDGET_H__ 16 #include "ui_instrwidget.h" 19 class QTreeWidgetItem;
24 class InstrumentTemplate;
30 class InstrumentGenre;
49 void setVisible(
bool val);
63 QComboBox* _staffTypeCombo {
nullptr };
69 static constexpr
int CUSTOM_STAFF_TYPE_IDX = -1000;
71 int staffTypeIdx(
int idx)
const;
74 void staffTypeChanged(
int);
81 void setPartIdx(
int val);
89 void setLinked(
bool val);
90 bool linked()
const {
return _linked; }
92 void setStaffType(
int);
94 int staffTypeIdx()
const;
95 void initStaffTypeCombo(
bool forceRecreate =
false);
119 virtual QString text(
int col)
const;
131 void on_instrumentList_itemSelectionChanged();
132 void on_instrumentList_itemActivated(QTreeWidgetItem* item,
int);
133 void on_partiturList_itemSelectionChanged();
134 void on_addButton_clicked();
135 void on_removeButton_clicked();
136 void on_upButton_clicked();
137 void on_downButton_clicked();
139 void on_addLinkedStaffButton_clicked();
141 void on_instrumentSearch_textChanged(
const QString &);
143 void on_instrumentGenreFilter_currentIndexChanged(
int);
144 void filterInstrumentsByGenre(QTreeWidget *, QString);
147 void buildTemplateList();
150 void completeChanged(
bool);
154 void genPartList(
Score*);
157 QTreeWidget* getPartiturList();
static int customTablatureIdx
Definition: instrwidget.h:68
Global staff data not directly related to drawing.
Definition: staff.h:62
InstrumentTemplate * instrumentTemplate() const
Definition: instrwidget.h:118
Definition: instrwidget.h:109
Definition: instrwidget.h:39
ListItemOp op() const
Definition: instrwidget.h:101
static int customPercussionIdx
Definition: instrwidget.h:67
int partIdx() const
Definition: instrwidget.h:80
void createInstruments(Score *score, QList< MTrack > &tracks)
Definition: importmidi_instrument.cpp:385
void setOp(ListItemOp v)
Definition: instrwidget.h:102
bool _linked
Definition: instrwidget.h:60
void setStaff(Staff *s)
Definition: instrwidget.h:100
Staff * staff() const
Definition: instrwidget.h:99
Definition of classes Clef.
ClefTypeList _clefType
Definition: instrwidget.h:62
InstrumentTemplate * _instrumentTemplate
Definition: instrwidget.h:110
Definition: instrwidget.h:33
Definition: instrwidget.h:57
void populateInstrumentList(QTreeWidget *instrumentList)
Definition: instrwidget.cpp:420
Part * part
Definition: instrwidget.h:43
QList< InstrumentGenre * > instrumentGenres
Definition: instrtemplate.cpp:27
ClefTypeList _defaultClefType
Definition: instrwidget.h:61
void setDefaultClefType(const ClefTypeList &val)
Definition: instrwidget.h:86
Definition: aeolus.cpp:26
static int customStandardIdx
Definition: instrwidget.h:66
ListItemOp
Definition: instrwidget.h:32
QString _group
Definition: instrwidget.h:111
Definition: stafftype.h:173
void populateGenreCombo(QComboBox *combo)
Definition: instrwidget.cpp:399
const ClefTypeList & clefType() const
Definition: instrwidget.h:84
Definition: instrwidget.h:33
bool linked() const
Definition: instrwidget.h:90
const ClefTypeList & defaultClefType() const
Definition: instrwidget.h:87
int _partIdx
Definition: instrwidget.h:59
ListItemOp op
Definition: instrwidget.h:42
Definition: instrtemplate.h:48
QComboBox * staffTypeCombo()
Definition: instrwidget.h:97
const InstrumentTemplate * it
Definition: instrwidget.h:44