Toolbar buttons for background color of the preview panel. (Issue 1391)

Shortcuts: Theme-based - 8; Black - 9; White - 0
This commit is contained in:
Michael Ezra
2012-06-08 23:12:34 -04:00
parent 34a2c3cc68
commit 025a43f4ce
17 changed files with 128 additions and 5 deletions

View File

@@ -842,6 +842,16 @@ bool EditorPanel::handleShortcutKey (GdkEventKey* event) {
iareapanel->imageArea->zoomPanel->zoom11Clicked();
return true;
case GDK_8: //background color of the preview 0
iareapanel->imageArea->previewModePanel->togglebackColor0();
return true;
case GDK_9: //background color of the preview 1
iareapanel->imageArea->previewModePanel->togglebackColor1();
return true;
case GDK_0: //background color of the preview 2
iareapanel->imageArea->previewModePanel->togglebackColor2();
return true;
case GDK_r: //preview mode Red
iareapanel->imageArea->previewModePanel->toggleR();
return true;