MuseScore/mscore/masterpalette.h

63 lines
1.6 KiB
C
Raw Normal View History

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;
class TimeDialog;
class KeyEditor;
2012-05-26 14:49:10 +02:00
//---------------------------------------------------------
// MasterPalette
//---------------------------------------------------------
class MasterPalette : public QWidget, Ui::MasterPalette
{
Q_OBJECT
TimeDialog* timeDialog;
KeyEditor* keyEditor;
2016-06-30 15:34:02 +02:00
QTreeWidgetItem* keyItem;
QTreeWidgetItem* timeItem;
QTreeWidgetItem* symbolItem;
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);
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);
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