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:
parent
ee202d50bc
commit
ebaed93917
@ -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;
|
||||
|
@ -97,7 +97,8 @@ class ShowImageWindow : public BWindow {
|
||||
bool fShowCaption;
|
||||
BMessage *fPrintSettings;
|
||||
PrintOptions fPrintOptions;
|
||||
BMessenger* fResizerWindowMessenger;
|
||||
BMessenger *fResizerWindowMessenger;
|
||||
BMenuItem *fResizeItem;
|
||||
int32 fHeight, fWidth;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user