2012-05-26 14:49:10 +02:00
|
|
|
//=============================================================================
|
|
|
|
// MuseScore
|
|
|
|
// Music Composition & Notation
|
2016-06-30 15:34:02 +02:00
|
|
|
// $Id: masterpalette.h 5242 2012-01-23 17:25:56Z wschweer $
|
2012-05-26 14:49:10 +02:00
|
|
|
//
|
2016-06-30 15:34:02 +02:00
|
|
|
// Copyright (C) 2002-2016 Werner Schweer
|
2012-05-26 14:49:10 +02:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// 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
|
|
|
|
//=============================================================================
|
|
|
|
|
|
|
|
#ifndef __MASTERPALETTE_H__
|
|
|
|
#define __MASTERPALETTE_H__
|
|
|
|
|
|
|
|
#include "ui_masterpalette.h"
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
namespace Ms {
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
class Palette;
|
2013-07-16 14:44:20 +02:00
|
|
|
class TimeDialog;
|
2014-12-04 14:40:26 +01:00
|
|
|
class KeyEditor;
|
2012-05-26 14:49:10 +02:00
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
// MasterPalette
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
class MasterPalette : public QWidget, Ui::MasterPalette
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2013-07-16 14:44:20 +02:00
|
|
|
TimeDialog* timeDialog;
|
2014-12-04 14:40:26 +01:00
|
|
|
KeyEditor* keyEditor;
|
2016-06-30 15:34:02 +02:00
|
|
|
QTreeWidgetItem* keyItem;
|
|
|
|
QTreeWidgetItem* timeItem;
|
|
|
|
QTreeWidgetItem* symbolItem;
|
2014-12-04 14:40:26 +01:00
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
virtual void closeEvent(QCloseEvent*);
|
|
|
|
Palette* createPalette(int w, int h, bool grid, double mag = 1.0);
|
|
|
|
void addPalette(Palette* sp);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void closed(bool);
|
|
|
|
|
2016-05-17 14:44:29 +02:00
|
|
|
private slots:
|
|
|
|
void currentChanged(QTreeWidgetItem*, QTreeWidgetItem*);
|
|
|
|
void clicked(QTreeWidgetItem*, int);
|
|
|
|
|
2016-06-30 15:34:02 +02:00
|
|
|
protected:
|
|
|
|
virtual void changeEvent(QEvent *event);
|
|
|
|
void retranslate(bool firstTime = false);
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
public:
|
|
|
|
MasterPalette(QWidget* parent = 0);
|
2013-02-07 17:34:44 +01:00
|
|
|
void selectItem(const QString& s);
|
2015-01-25 03:33:59 +01:00
|
|
|
QString selectedItem();
|
2012-05-26 14:49:10 +02:00
|
|
|
};
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
} // namespace Ms
|
2012-05-26 14:49:10 +02:00
|
|
|
#endif
|
|
|
|
|