Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sources/Application/Views/SongView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ void SongView::ProcessButtonMask(unsigned short mask,bool pressed) {
deepClonePosition();
mask&=(0xFFFF-(EPBM_A|EPBM_L));
canDeepClone_ = false;
deepCloneTime = SDL_GetTicks();
}
if (clipboard_.active_) {
viewMode_=VM_SELECTION ;
Expand Down Expand Up @@ -872,6 +873,11 @@ void SongView::DrawView() {
std::string buffer(os.str());

DrawString(pos._x,pos._y,buffer.c_str(),props) ;

uint32_t elapsedTime = (SDL_GetTicks() - deepCloneTime);
if(elapsedTime <= 1000) {
DrawString(pos._x+10, pos._y+2, "Deep clone", props);
}
// Compute song grid location

GUIPoint anchor=GetAnchor() ;
Expand Down
2 changes: 2 additions & 0 deletions sources/Application/Views/SongView.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#define _SONG_VIEW_H_

#include "BaseClasses/View.h"
#include <SDL/SDL.h>

class SongView ;

Expand Down Expand Up @@ -81,6 +82,7 @@ class SongView: public View {
bool invertBatt_ ;
bool needClear_ ;
bool canDeepClone_;
uint32_t deepCloneTime;
} ;

#endif