MuseScore  3.4
Music composition and notation
editstafftype.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2010-2014 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 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __EDITSTAFFTYPE_H__
14 #define __EDITSTAFFTYPE_H__
15 
16 #include "ui_editstafftype.h"
17 #include "ui_stafftypetemplates.h"
18 #include "libmscore/mscore.h"
19 #include "libmscore/stafftype.h"
20 
21 namespace Ms {
22 
23 class ScoreView;
24 class StaffType;
25 class Staff;
26 
27 //---------------------------------------------------------
28 // EditStaffType
29 //---------------------------------------------------------
30 
31 class EditStaffType : public QDialog, private Ui::EditStaffType {
32  Q_OBJECT
33 
36 
37  virtual void hideEvent(QHideEvent *);
38  void blockSignals(bool block);
39 
40  void setFromDlg();
41 
42  void tabStemsCompatibility(bool checked);
43  void tabMinimShortCompatibility(bool checked);
44  void tabStemThroughCompatibility(bool checked);
46  void setValues();
47 
48  private slots:
49  void nameEdited(const QString&);
50  void durFontNameChanged(int idx);
51  void fretFontNameChanged(int idx);
52  void tabStemThroughToggled(bool checked);
53  void tabMinimShortToggled(bool checked);
54  void tabStemsToggled(bool checked);
55  void updatePreview();
56 
57  void savePresets();
58  void loadPresets();
60  void addToTemplatesClicked();
61 // void staffGroupChanged(int);
62 
63  public:
64  EditStaffType(QWidget* parent, Staff*);
66  const StaffType* getStaffType() const { return &staffType; }
67  };
68 
69 //---------------------------------------------------------
70 // StaffTypeTemplates
71 //---------------------------------------------------------
72 
73 class StaffTypeTemplates : public QDialog, private Ui::StaffTypeTemplates {
74  Q_OBJECT
75 
76  public:
77  StaffTypeTemplates(const StaffType&, QWidget* parent = 0);
78  StaffType* staffType() const;
79  };
80 
81 } // namespace Ms
82 #endif
83 
void savePresets()
Definition: editstafftype.cpp:592
Global staff data not directly related to drawing.
Definition: staff.h:62
virtual void hideEvent(QHideEvent *)
Definition: editstafftype.cpp:167
void blockSignals(bool block)
Definition: editstafftype.cpp:429
void addToTemplatesClicked()
Definition: editstafftype.cpp:634
void loadPresets()
Definition: editstafftype.cpp:601
EditStaffType(QWidget *parent, Staff *)
Definition: editstafftype.cpp:53
void tabStemThroughToggled(bool checked)
Definition: editstafftype.cpp:362
void setFromDlg()
Definition: editstafftype.cpp:374
StaffGroup
Definition: mscore.h:177
~EditStaffType()
Definition: editstafftype.h:65
void durFontNameChanged(int idx)
Definition: editstafftype.cpp:314
void tabMinimShortToggled(bool checked)
Definition: editstafftype.cpp:352
const StaffType * getStaffType() const
Definition: editstafftype.h:66
void resetToTemplateClicked()
Definition: editstafftype.cpp:621
void nameEdited(const QString &)
Definition: editstafftype.cpp:294
Definition: aeolus.cpp:26
void tabStemThroughCompatibility(bool checked)
Definition: editstafftype.cpp:519
Definition: stafftype.h:173
Definition: editstafftype.h:73
Staff * staff
Definition: editstafftype.h:34
void updatePreview()
update staff type in preview score
Definition: editstafftype.cpp:539
QString createUniqueStaffTypeName(StaffGroup group)
create unique new name for StaffType
Definition: editstafftype.cpp:560
void tabMinimShortCompatibility(bool checked)
Definition: editstafftype.cpp:499
void fretFontNameChanged(int idx)
Definition: editstafftype.cpp:324
void tabStemsToggled(bool checked)
Definition: editstafftype.cpp:340
StaffType staffType
Definition: editstafftype.h:35
void tabStemsCompatibility(bool checked)
Definition: editstafftype.cpp:477
void setValues()
Definition: editstafftype.cpp:189
Definition: editstafftype.h:31