can disable dragging start/end times with config option "disable dragging times" (requested)

Originally committed to SVN as r1669.
This commit is contained in:
Dan Donovan 2008-01-10 20:49:31 +00:00
parent 2c366e76ee
commit e0b5576104
2 changed files with 3 additions and 2 deletions

View File

@ -1496,7 +1496,7 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) {
// Line timing mode
if (!karTime) {
// Grab start
if (abs64 (x - selStart) < 6) {
if (abs64 (x - selStart) < 6 && Options.AsBool(_T("Disable Dragging Times"))==false) {
wxCursor cursor(wxCURSOR_SIZEWE);
SetCursor(cursor);
defCursor = false;
@ -1507,7 +1507,7 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) {
}
// Grab end
else if (abs64 (x - selEnd) < 6) {
else if (abs64 (x - selEnd) < 6 && Options.AsBool(_T("Disable Dragging Times"))==false) {
wxCursor cursor(wxCURSOR_SIZEWE);
SetCursor(cursor);
defCursor = false;

View File

@ -175,6 +175,7 @@ void OptionsManager::LoadDefaults(bool onlyDefaults) {
SetInt(_T("Audio lead out"),300);
SetModificationType(MOD_AUDIO);
SetInt(_T("Audio Inactive Lines Display Mode"),1);
SetBool(_T("Disable Dragging Times"), false);
// Audio Advanced
SetModificationType(MOD_AUDIO_RELOAD);