Merge
This commit is contained in:
@@ -2010,7 +2010,7 @@ SmallBanner6OffCommand=
|
|||||||
[ScreenPractice]
|
[ScreenPractice]
|
||||||
|
|
||||||
[ScreenEditOptions]
|
[ScreenEditOptions]
|
||||||
LineNames="1,2,3,4,5,6,R,7,8,9,10,Attacks,11,12,13,14,15,16,SF"
|
LineNames="1,2,3,4,5,6,R1,R2,7,8,9,10,Attacks,11,12,13,14,15,16,SF"
|
||||||
Line1="lua,SpeedMods()"
|
Line1="lua,SpeedMods()"
|
||||||
LineSF="lua,OptionRowScreenFilter()"
|
LineSF="lua,OptionRowScreenFilter()"
|
||||||
|
|
||||||
|
|||||||
@@ -600,9 +600,6 @@ static MenuDef g_AlterMenu(
|
|||||||
MenuRowDef(ScreenEdit::copy,
|
MenuRowDef(ScreenEdit::copy,
|
||||||
"Copy",
|
"Copy",
|
||||||
true, EditMode_Practice, true, true, 0, NULL ),
|
true, EditMode_Practice, true, true, 0, NULL ),
|
||||||
MenuRowDef(ScreenEdit::copy_partial_timing,
|
|
||||||
"Copy Partial Timing",
|
|
||||||
true, EditMode_Practice, true, true, 0, NULL ),
|
|
||||||
MenuRowDef(ScreenEdit::clear, "Clear area", true,
|
MenuRowDef(ScreenEdit::clear, "Clear area", true,
|
||||||
EditMode_Practice, true, true, 0, NULL ),
|
EditMode_Practice, true, true, 0, NULL ),
|
||||||
MenuRowDef(ScreenEdit::quantize, "Quantize", true,
|
MenuRowDef(ScreenEdit::quantize, "Quantize", true,
|
||||||
@@ -675,9 +672,6 @@ static MenuDef g_AreaMenu(
|
|||||||
MenuRowDef(ScreenEdit::paste_at_begin_marker,
|
MenuRowDef(ScreenEdit::paste_at_begin_marker,
|
||||||
"Paste at begin marker",
|
"Paste at begin marker",
|
||||||
true, EditMode_Practice, true, true, 0, NULL ),
|
true, EditMode_Practice, true, true, 0, NULL ),
|
||||||
MenuRowDef(ScreenEdit::paste_partial_timing_at_beat,
|
|
||||||
"Paste Partial Timing at current beat",
|
|
||||||
true, EditMode_Practice, true, true, 0, NULL ),
|
|
||||||
MenuRowDef(ScreenEdit::insert_and_shift,
|
MenuRowDef(ScreenEdit::insert_and_shift,
|
||||||
"Insert beat and shift down",
|
"Insert beat and shift down",
|
||||||
true, EditMode_Practice, true, true, 0, "4th","8th","12th","16th","24th","32nd","48th","64th","192nd" ),
|
true, EditMode_Practice, true, true, 0, "4th","8th","12th","16th","24th","32nd","48th","64th","192nd" ),
|
||||||
@@ -2072,7 +2066,6 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB )
|
|||||||
g_AreaMenu.rows[shift_pauses_forward].bEnabled = (GetBeat() != 0);
|
g_AreaMenu.rows[shift_pauses_forward].bEnabled = (GetBeat() != 0);
|
||||||
g_AreaMenu.rows[paste_at_current_beat].bEnabled = !m_Clipboard.IsEmpty();
|
g_AreaMenu.rows[paste_at_current_beat].bEnabled = !m_Clipboard.IsEmpty();
|
||||||
g_AreaMenu.rows[paste_at_begin_marker].bEnabled = !m_Clipboard.IsEmpty() != 0 && m_NoteFieldEdit.m_iBeginMarker!=-1;
|
g_AreaMenu.rows[paste_at_begin_marker].bEnabled = !m_Clipboard.IsEmpty() != 0 && m_NoteFieldEdit.m_iBeginMarker!=-1;
|
||||||
g_AreaMenu.rows[paste_partial_timing_at_beat].bEnabled = !this->clipboardTiming.empty();
|
|
||||||
g_AreaMenu.rows[undo].bEnabled = m_bHasUndo;
|
g_AreaMenu.rows[undo].bEnabled = m_bHasUndo;
|
||||||
EditMiniMenu( &g_AreaMenu, SM_BackFromAreaMenu );
|
EditMiniMenu( &g_AreaMenu, SM_BackFromAreaMenu );
|
||||||
}
|
}
|
||||||
@@ -4585,12 +4578,6 @@ void ScreenEdit::HandleAlterMenuChoice(AlterMenuChoice c, const vector<int> &iAn
|
|||||||
m_Clipboard.CopyRange( m_NoteDataEdit, m_NoteFieldEdit.m_iBeginMarker, m_NoteFieldEdit.m_iEndMarker );
|
m_Clipboard.CopyRange( m_NoteDataEdit, m_NoteFieldEdit.m_iBeginMarker, m_NoteFieldEdit.m_iEndMarker );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case copy_partial_timing:
|
|
||||||
{
|
|
||||||
this->clipboardTiming = GetAppropriateTiming().CopyRange(m_NoteFieldEdit.m_iBeginMarker,
|
|
||||||
m_NoteFieldEdit.m_iEndMarker);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case clear:
|
case clear:
|
||||||
{
|
{
|
||||||
m_NoteDataEdit.ClearRange( m_NoteFieldEdit.m_iBeginMarker, m_NoteFieldEdit.m_iEndMarker );
|
m_NoteDataEdit.ClearRange( m_NoteFieldEdit.m_iBeginMarker, m_NoteFieldEdit.m_iEndMarker );
|
||||||
@@ -4957,32 +4944,6 @@ void ScreenEdit::HandleAreaMenuChoice( AreaMenuChoice c, const vector<int> &iAns
|
|||||||
m_NoteDataEdit.CopyRange( m_Clipboard, 0, iRowsToCopy, iDestFirstRow );
|
m_NoteDataEdit.CopyRange( m_Clipboard, 0, iRowsToCopy, iDestFirstRow );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case paste_partial_timing_at_beat:
|
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
int firstRow = BeatToNoteRow(GetAppropriatePosition().m_fSongBeat);
|
|
||||||
|
|
||||||
FOREACH_TimingSegmentType( tst )
|
|
||||||
{
|
|
||||||
/* TODO: Maybe wipe out the already there timing data first?
|
|
||||||
* We need to identify the max row within the timing data first. */
|
|
||||||
const vector<TimingSegment*> &vSegs = clipboardTiming.GetTimingSegments(tst);
|
|
||||||
|
|
||||||
/* TODO: this is an exact dupe of TimingData::CopyRange... */
|
|
||||||
for (unsigned i = 0; i < vSegs.size(); i++)
|
|
||||||
{
|
|
||||||
const TimingSegment *seg = vSegs[i];
|
|
||||||
TimingSegment *cpy = seg->Copy();
|
|
||||||
|
|
||||||
int oldRow = cpy->GetRow() + firstRow;
|
|
||||||
int newRow = oldRow + firstRow;
|
|
||||||
cpy->SetRow(newRow);
|
|
||||||
GetAppropriateTiming().AddSegment( cpy );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case insert_and_shift:
|
case insert_and_shift:
|
||||||
NoteDataUtil::InsertRows( m_NoteDataEdit, GetRow(),
|
NoteDataUtil::InsertRows( m_NoteDataEdit, GetRow(),
|
||||||
|
|||||||
+2
-5
@@ -283,11 +283,10 @@ protected:
|
|||||||
TimingData backupStepTiming;
|
TimingData backupStepTiming;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Allow for copying and pasting a song's (or steps's) full Timing Data. */
|
* @brief Allow for copying and pasting a song's (or steps's) full Timing Data.
|
||||||
|
*/
|
||||||
TimingData clipboardFullTiming;
|
TimingData clipboardFullTiming;
|
||||||
|
|
||||||
TimingData clipboardTiming;
|
|
||||||
|
|
||||||
/** @brief The current TapNote that would be inserted. */
|
/** @brief The current TapNote that would be inserted. */
|
||||||
TapNote m_selectedTap;
|
TapNote m_selectedTap;
|
||||||
|
|
||||||
@@ -405,7 +404,6 @@ public:
|
|||||||
{
|
{
|
||||||
cut, /**< Cut the notes. */
|
cut, /**< Cut the notes. */
|
||||||
copy, /**< Copy the notes. */
|
copy, /**< Copy the notes. */
|
||||||
copy_partial_timing, /**< Copy selected timing data. */
|
|
||||||
clear, /**< Erase the notes, without putting them in the clipboard. */
|
clear, /**< Erase the notes, without putting them in the clipboard. */
|
||||||
quantize, /**< Sync the notes to an exact level. */
|
quantize, /**< Sync the notes to an exact level. */
|
||||||
turn, /**< Rotate the notes. */
|
turn, /**< Rotate the notes. */
|
||||||
@@ -431,7 +429,6 @@ public:
|
|||||||
{
|
{
|
||||||
paste_at_current_beat, /**< Paste note data starting at the current beat. */
|
paste_at_current_beat, /**< Paste note data starting at the current beat. */
|
||||||
paste_at_begin_marker, /**< Paste note data starting at the first market. */
|
paste_at_begin_marker, /**< Paste note data starting at the first market. */
|
||||||
paste_partial_timing_at_beat, /**< Paste TimingData starting at the current beat. */
|
|
||||||
insert_and_shift,
|
insert_and_shift,
|
||||||
delete_and_shift,
|
delete_and_shift,
|
||||||
shift_pauses_forward, /**< Shift all timing changes forward one beat. */
|
shift_pauses_forward, /**< Shift all timing changes forward one beat. */
|
||||||
|
|||||||
Reference in New Issue
Block a user