Merge remote-tracking branch 'origin/master' into refac/memory

This commit is contained in:
Lukas W
2020-05-12 13:54:19 +02:00
29 changed files with 186 additions and 121 deletions

View File

@@ -214,6 +214,10 @@ public:
void setPreviewMode( const bool );
bool isPreviewMode() const
{
return m_previewMode;
}
signals:
void instrumentChanged();
@@ -230,6 +234,9 @@ protected:
return "instrumenttrack";
}
// get the name of the instrument in the saved data
QString getSavedInstrumentName(const QDomElement & thisElement) const;
protected slots:
void updateBaseNote();

View File

@@ -1,5 +1,5 @@
/*
* VisualizationWidget.h - widget for visualization of sound-data
* Oscilloscope.h
*
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -23,8 +23,8 @@
*/
#ifndef _VISUALIZATION_WIDGET
#define _VISUALIZATION_WIDGET
#ifndef _OSCILLOSCOPE
#define _OSCILLOSCOPE
#include <QWidget>
#include <QPixmap>
@@ -32,21 +32,16 @@
#include "lmms_basics.h"
class VisualizationWidget : public QWidget
class Oscilloscope : public QWidget
{
Q_OBJECT
public:
Q_PROPERTY( QColor normalColor READ normalColor WRITE setNormalColor )
Q_PROPERTY( QColor warningColor READ warningColor WRITE setWarningColor )
Q_PROPERTY( QColor clippingColor READ clippingColor WRITE setClippingColor )
enum visualizationTypes
{
Simple // add more here
} ;
VisualizationWidget( const QPixmap & _bg, QWidget * _parent,
visualizationTypes _vtype = Simple );
virtual ~VisualizationWidget();
Oscilloscope( QWidget * _parent );
virtual ~Oscilloscope();
void setActive( bool _active );
@@ -72,7 +67,7 @@ private:
QColor const & determineLineColor(float level) const;
private:
QPixmap s_background;
QPixmap m_background;
QPointF * m_points;
sampleFrame * m_buffer;

View File

@@ -283,6 +283,7 @@ private:
QList<int> m_markedSemiTones;
QMenu * m_semiToneMarkerMenu; // when you right click on the key area
int m_pianoKeySelected;
PianoRoll();
PianoRoll( const PianoRoll & );

View File

@@ -74,6 +74,7 @@ private slots:
void toggleNoteLabels(bool enabled);
void toggleCompactTrackButtons(bool enabled);
void toggleOneInstrumentTrackWindow(bool enabled);
void toggleSideBarOnRight(bool enabled);
void toggleMMPZ(bool enabled);
void toggleDisableBackup(bool enabled);
void toggleOpenLastProject(bool enabled);
@@ -130,6 +131,7 @@ private:
bool m_printNoteLabels;
bool m_compactTrackButtons;
bool m_oneInstrumentTrackWindow;
bool m_sideBarOnRight;
bool m_MMPZ;
bool m_disableBackup;
bool m_openLastProject;