MuseScore  3.4
Music composition and notation
editstringdata.h
Go to the documentation of this file.
1 //=============================================================================
2 // MusE Score
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 EDITSTRINGDATA_H
21 #define EDITSTRINGDATA_H
22 
23 #include "ui_editstringdata.h"
24 #include "libmscore/stringdata.h"
25 
26 namespace Ms {
27 
28 //---------------------------------------------------------
29 // EditStringData
30 //---------------------------------------------------------
31 
32 class EditStringData : public QDialog, private Ui::EditStringDataBase {
33  Q_OBJECT
34 
35  int* _frets;
36  bool _modified;
37  QList<instrString>* _strings; // pointer to original string list
38  QList<instrString> _stringsLoc; // local working copy of string list
39 
40  virtual void hideEvent(QHideEvent*);
41 
42  public:
43  EditStringData(QWidget *parent, QList<instrString> * strings, int * frets);
45 
46  protected:
47  QString midiCodeToStr(int midiCode);
48 
49  private slots:
50  void accept();
51  void deleteStringClicked();
52  void editStringClicked();
53  void listItemClicked(QTableWidgetItem * item);
54  void newStringClicked();
55  };
56 
57 }
58 
59 #endif // EDITSTRINGDATA_H
QList< instrString > * _strings
Definition: editstringdata.h:37
QList< instrString > _stringsLoc
Definition: editstringdata.h:38
EditStringData(QWidget *parent, QList< instrString > *strings, int *frets)
Definition: editstringdata.cpp:31
QString midiCodeToStr(int midiCode)
Definition: editstringdata.cpp:227
virtual void hideEvent(QHideEvent *)
Definition: editstringdata.cpp:89
~EditStringData()
Definition: editstringdata.cpp:81
void deleteStringClicked()
Definition: editstringdata.cpp:99
void listItemClicked(QTableWidgetItem *item)
Definition: editstringdata.cpp:137
Definition: editstringdata.h:32
void accept()
Definition: editstringdata.cpp:187
Definition: aeolus.cpp:26
void newStringClicked()
Definition: editstringdata.cpp:155
void editStringClicked()
Definition: editstringdata.cpp:118
int * _frets
Definition: editstringdata.h:35
bool _modified
Definition: editstringdata.h:36