2012-05-26 14:49:10 +02:00
|
|
|
//=============================================================================
|
2014-08-15 16:42:21 +02:00
|
|
|
// MuseScore
|
|
|
|
// Music Composition & Notation
|
2012-05-26 14:49:10 +02:00
|
|
|
//
|
2014-08-15 16:42:21 +02:00
|
|
|
// Copyright (C) 2002-2014 Werner Schweer
|
2012-05-26 14:49:10 +02:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
2014-08-15 16:42:21 +02:00
|
|
|
// it under the terms of the GNU General Public License version 2
|
|
|
|
// as published by the Free Software Foundation and appearing in
|
|
|
|
// the file LICENCE.GPL
|
2012-05-26 14:49:10 +02:00
|
|
|
//=============================================================================
|
|
|
|
|
|
|
|
#ifndef __INSTRDIALOG_H__
|
|
|
|
#define __INSTRDIALOG_H__
|
|
|
|
|
|
|
|
#include "ui_instrdialog.h"
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
namespace Ms {
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
class Score;
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
// InstrumentsDialog
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
2014-08-15 16:42:21 +02:00
|
|
|
class InstrumentsDialog : public QDialog, public Ui::InstrumentsDialog {
|
2012-05-26 14:49:10 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
2016-07-16 19:44:28 +02:00
|
|
|
void readSettings();
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
private slots:
|
2014-08-15 16:42:21 +02:00
|
|
|
virtual void accept();
|
2012-05-26 14:49:10 +02:00
|
|
|
void on_saveButton_clicked();
|
|
|
|
void on_loadButton_clicked();
|
2013-01-15 10:52:54 +01:00
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
public:
|
|
|
|
InstrumentsDialog(QWidget* parent = 0);
|
2013-10-01 16:22:06 +02:00
|
|
|
void writeSettings();
|
2014-08-16 11:21:56 +02:00
|
|
|
void genPartList(Score*);
|
2014-08-15 16:42:21 +02:00
|
|
|
QTreeWidget* partiturList();
|
2018-06-05 20:17:21 +02:00
|
|
|
void buildInstrumentsList();
|
2012-05-26 14:49:10 +02:00
|
|
|
};
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
} // namespace Ms
|
2013-09-09 23:48:18 +02:00
|
|
|
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
#endif
|
|
|
|
|