MuseScore  3.4
Music composition and notation
stafftextproperties.h
Go to the documentation of this file.
1 //=============================================================================
2 // MusE Score
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2002-2010 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 __STAFFTEXTPROPERTIES_H__
21 #define __STAFFTEXTPROPERTIES_H__
22 
23 #include "ui_stafftext.h"
24 
25 namespace Ms {
26 
27 class StaffTextBase;
28 
29 //---------------------------------------------------------
30 // StaffTextProperties
31 // Dialog
32 //---------------------------------------------------------
33 
34 class StaffTextProperties : public QDialog, public Ui::StaffTextProperties {
35  Q_OBJECT
36 
38  QToolButton* vb[4][4];
39  QComboBox* channelCombo[4];
40  QPushButton* stops[4][16];
42  void saveChannel(int channel);
43 
44  virtual void hideEvent(QHideEvent*);
45  private slots:
46  void saveValues();
47  void channelItemChanged(QTreeWidgetItem*, QTreeWidgetItem*);
48  void voiceButtonClicked(int);
49  void tabChanged(int tab);
50  void setSwingControls(bool);
51 
52  public:
53  StaffTextProperties(const StaffTextBase*, QWidget* parent = 0);
55 
56  const StaffTextBase* staffTextBase() const { return _staffText; }
57  };
58 }
59 
60 #endif
int curTabIndex
Definition: stafftextproperties.h:41
virtual void hideEvent(QHideEvent *)
Definition: stafftextproperties.cpp:492
QComboBox * channelCombo[4]
Definition: stafftextproperties.h:39
const StaffTextBase * staffTextBase() const
Definition: stafftextproperties.h:56
Definition: stafftextbase.h:35
void setSwingControls(bool)
Definition: stafftextproperties.cpp:290
QToolButton * vb[4][4]
Definition: stafftextproperties.h:38
QPushButton * stops[4][16]
Definition: stafftextproperties.h:40
StaffTextProperties(const StaffTextBase *, QWidget *parent=0)
Definition: stafftextproperties.cpp:52
StaffTextBase * _staffText
Definition: stafftextproperties.h:37
Definition: aeolus.cpp:26
~StaffTextProperties()
Definition: stafftextproperties.cpp:281
void tabChanged(int tab)
Definition: stafftextproperties.cpp:306
void saveChannel(int channel)
Definition: stafftextproperties.cpp:347
void saveValues()
Definition: stafftextproperties.cpp:432
void channelItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)
Definition: stafftextproperties.cpp:374
void voiceButtonClicked(int)
Definition: stafftextproperties.cpp:332
Definition: stafftextproperties.h:34