Song, SongEditor, BB-Editor, Piano-Roll: correction of play button problems
Initial implementation of corrected play buttons in individual editor windows.
This commit is contained in:
committed by
Tobias Doerffel
parent
12221d221f
commit
c60e7ba8d1
@@ -72,6 +72,8 @@ public:
|
||||
return( "automationeditor" );
|
||||
}
|
||||
|
||||
void updatePlayPauseIcon();
|
||||
|
||||
|
||||
public slots:
|
||||
void update();
|
||||
|
||||
@@ -48,6 +48,8 @@ public:
|
||||
|
||||
void removeBBView( int _bb );
|
||||
|
||||
void updatePlayPauseIcon();
|
||||
|
||||
|
||||
public slots:
|
||||
void play();
|
||||
|
||||
@@ -147,6 +147,8 @@ public:
|
||||
return s_controllerRackView;
|
||||
}
|
||||
|
||||
static void updatePlayPauseIcons();
|
||||
|
||||
static float framesPerTick()
|
||||
{
|
||||
return s_framesPerTick;
|
||||
|
||||
@@ -90,6 +90,8 @@ public:
|
||||
return "pianoroll";
|
||||
}
|
||||
|
||||
void updatePlayPauseIcon();
|
||||
|
||||
|
||||
protected:
|
||||
virtual void closeEvent( QCloseEvent * _ce );
|
||||
|
||||
@@ -54,6 +54,7 @@ class EXPORT song : public trackContainer
|
||||
public:
|
||||
enum PlayModes
|
||||
{
|
||||
Mode_None,
|
||||
Mode_PlaySong,
|
||||
Mode_PlayTrack,
|
||||
Mode_PlayBB,
|
||||
@@ -104,6 +105,11 @@ public:
|
||||
return m_playing && m_exporting == false;
|
||||
}
|
||||
|
||||
inline bool isStopped() const
|
||||
{
|
||||
return m_playing == false && m_paused == false;
|
||||
}
|
||||
|
||||
bool isFreezingPattern() const;
|
||||
|
||||
inline bool isExporting() const
|
||||
@@ -196,15 +202,14 @@ public:
|
||||
|
||||
|
||||
public slots:
|
||||
void play();
|
||||
void playSong();
|
||||
void record();
|
||||
void playAndRecord();
|
||||
void stop();
|
||||
void playTrack( track * _trackToPlay );
|
||||
void playBB();
|
||||
void playPattern( pattern * _patternToPlay, bool _loop = true );
|
||||
void pause();
|
||||
void resumeFromPause();
|
||||
void togglePause();
|
||||
void stop();
|
||||
|
||||
void importProject();
|
||||
void exportProject();
|
||||
@@ -231,7 +236,7 @@ private slots:
|
||||
|
||||
void masterVolumeChanged();
|
||||
|
||||
void doActions();
|
||||
void savePos();
|
||||
|
||||
void updateFramesPerTick();
|
||||
|
||||
@@ -296,19 +301,6 @@ private:
|
||||
bool m_loopPattern;
|
||||
|
||||
|
||||
enum Actions
|
||||
{
|
||||
ActionStop,
|
||||
ActionPlaySong,
|
||||
ActionPlayTrack,
|
||||
ActionPlayBB,
|
||||
ActionPlayPattern,
|
||||
ActionPause,
|
||||
ActionResumeFromPause
|
||||
} ;
|
||||
QVector<Actions> m_actions;
|
||||
|
||||
|
||||
friend class engine;
|
||||
friend class songEditor;
|
||||
friend class mainWindow;
|
||||
|
||||
@@ -63,6 +63,8 @@ public:
|
||||
public slots:
|
||||
void scrolled( int _new_pos );
|
||||
|
||||
void updatePlayPauseIcon();
|
||||
|
||||
|
||||
private slots:
|
||||
void setHighQuality( bool );
|
||||
|
||||
Reference in New Issue
Block a user