minor cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23631 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d4000a765f
commit
e615cc513a
@ -104,7 +104,7 @@ BackgroundImage::_NotifyTracker(BDirectory& directory, bool desktop)
|
|||||||
if (reply.FindMessenger("result", &trackerWindow) != B_OK)
|
if (reply.FindMessenger("result", &trackerWindow) != B_OK)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// found a window with poses, ask for its path
|
// found a window with poses, ask for its path
|
||||||
msg.MakeEmpty();
|
msg.MakeEmpty();
|
||||||
msg.what = B_GET_PROPERTY;
|
msg.what = B_GET_PROPERTY;
|
||||||
msg.AddSpecifier("Path");
|
msg.AddSpecifier("Path");
|
||||||
@ -114,7 +114,7 @@ BackgroundImage::_NotifyTracker(BDirectory& directory, bool desktop)
|
|||||||
reply.MakeEmpty();
|
reply.MakeEmpty();
|
||||||
tracker.SendMessage(&msg, &reply);
|
tracker.SendMessage(&msg, &reply);
|
||||||
|
|
||||||
// go on with the next if this din't have a path
|
// go on with the next if this din't have a path
|
||||||
if (reply.what == B_MESSAGE_NOT_UNDERSTOOD)
|
if (reply.what == B_MESSAGE_NOT_UNDERSTOOD)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class BTextControl;
|
|||||||
|
|
||||||
|
|
||||||
class ResizerWindow : public BWindow {
|
class ResizerWindow : public BWindow {
|
||||||
public:
|
public:
|
||||||
ResizerWindow(BMessenger target, int32 width, int32 height );
|
ResizerWindow(BMessenger target, int32 width, int32 height );
|
||||||
|
|
||||||
virtual void MessageReceived(BMessage* msg);
|
virtual void MessageReceived(BMessage* msg);
|
||||||
@ -39,7 +39,7 @@ class ResizerWindow : public BWindow {
|
|||||||
// provides the new size of the image in two "int32" fields "width" and "height"
|
// provides the new size of the image in two "int32" fields "width" and "height"
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum {
|
enum {
|
||||||
kResolutionMsg = 'Rszr',
|
kResolutionMsg = 'Rszr',
|
||||||
kWidthModifiedMsg,
|
kWidthModifiedMsg,
|
||||||
@ -52,15 +52,15 @@ class ResizerWindow : public BWindow {
|
|||||||
void AddSeparatorLine(BView* parent, BRect& rect);
|
void AddSeparatorLine(BView* parent, BRect& rect);
|
||||||
void LeftAlign(BControl* control);
|
void LeftAlign(BControl* control);
|
||||||
|
|
||||||
BTextControl* fWidth;
|
BTextControl* fWidth;
|
||||||
BTextControl* fHeight;
|
BTextControl* fHeight;
|
||||||
BCheckBox* fAspectRatio;
|
BCheckBox* fAspectRatio;
|
||||||
BButton* fApply;
|
BButton* fApply;
|
||||||
// the original size of the image use for aspect ratio calculation
|
// the original size of the image use for aspect ratio calculation
|
||||||
// to avoid rounding errors
|
// to avoid rounding errors
|
||||||
int32 fOriginalWidth;
|
int32 fOriginalWidth;
|
||||||
int32 fOriginalHeight;
|
int32 fOriginalHeight;
|
||||||
BMessenger fTarget;
|
BMessenger fTarget;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _RESIZER_WINDOW_H
|
#endif // _RESIZER_WINDOW_H
|
||||||
|
@ -179,9 +179,9 @@ ShowImageApp::RefsReceived(BMessage *message)
|
|||||||
|
|
||||||
entry_ref ref;
|
entry_ref ref;
|
||||||
for (int32 i = 0; i < count; i++) {
|
for (int32 i = 0; i < count; i++) {
|
||||||
if (message->FindRef("refs", i, &ref) == B_OK)
|
if (message->FindRef("refs", i, &ref) == B_OK)
|
||||||
Open(&ref);
|
Open(&ref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
void SetText(BString &text);
|
void SetText(BString &text);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BString fText;
|
BString fText;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _ShowImageStatusView_h */
|
#endif /* _ShowImageStatusView_h */
|
||||||
|
Loading…
Reference in New Issue
Block a user