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:
Alexandre Almeida
2012-05-20 18:23:43 +02:00
committed by Tobias Doerffel
parent 12221d221f
commit c60e7ba8d1
13 changed files with 246 additions and 270 deletions

View File

@@ -72,6 +72,8 @@ public:
return( "automationeditor" );
}
void updatePlayPauseIcon();
public slots:
void update();

View File

@@ -48,6 +48,8 @@ public:
void removeBBView( int _bb );
void updatePlayPauseIcon();
public slots:
void play();

View File

@@ -147,6 +147,8 @@ public:
return s_controllerRackView;
}
static void updatePlayPauseIcons();
static float framesPerTick()
{
return s_framesPerTick;

View File

@@ -90,6 +90,8 @@ public:
return "pianoroll";
}
void updatePlayPauseIcon();
protected:
virtual void closeEvent( QCloseEvent * _ce );

View File

@@ -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;

View File

@@ -63,6 +63,8 @@ public:
public slots:
void scrolled( int _new_pos );
void updatePlayPauseIcon();
private slots:
void setHighQuality( bool );