We now disable the "Resize..." menu item when a slideshow is started. Not a

huge deal but it doesn't make much sense to resize images during a slideshow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20020 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood 2007-01-30 19:24:12 +00:00
parent ee202d50bc
commit ebaed93917
2 changed files with 5 additions and 2 deletions

View File

@ -344,7 +344,7 @@ ShowImageWindow::AddMenus(BMenuBar *bar)
menu->AddSeparatorItem();
AddItemMenu(menu, "Invert Colors", MSG_INVERT, 0, 0, 'W', true);
menu->AddSeparatorItem();
AddItemMenu(menu, "Resize" B_UTF8_ELLIPSIS, MSG_OPEN_RESIZER_WINDOW, 0, 0, 'W', true);
fResizeItem = AddItemMenu(menu, "Resize" B_UTF8_ELLIPSIS, MSG_OPEN_RESIZER_WINDOW, 0, 0, 'W', true);
bar->AddItem(menu);
menu->AddSeparatorItem();
AddItemMenu(menu, "Use as Desktop Background", MSG_DESKTOP_BACKGROUND, 0, 0, 'W', true);
@ -767,9 +767,11 @@ ShowImageWindow::MessageReceived(BMessage *message)
break;
if (item->IsMarked()) {
item->SetMarked(false);
fResizeItem->SetEnabled(true);
fImageView->StopSlideShow();
} else if (ClosePrompt()) {
item->SetMarked(true);
fResizeItem->SetEnabled(false);
fImageView->StartSlideShow();
}
break;

View File

@ -97,7 +97,8 @@ class ShowImageWindow : public BWindow {
bool fShowCaption;
BMessage *fPrintSettings;
PrintOptions fPrintOptions;
BMessenger* fResizerWindowMessenger;
BMessenger *fResizerWindowMessenger;
BMenuItem *fResizeItem;
int32 fHeight, fWidth;
};