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)
|
||||
continue;
|
||||
|
||||
// found a window with poses, ask for its path
|
||||
// found a window with poses, ask for its path
|
||||
msg.MakeEmpty();
|
||||
msg.what = B_GET_PROPERTY;
|
||||
msg.AddSpecifier("Path");
|
||||
@ -114,7 +114,7 @@ BackgroundImage::_NotifyTracker(BDirectory& directory, bool desktop)
|
||||
reply.MakeEmpty();
|
||||
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)
|
||||
continue;
|
||||
|
||||
|
@ -23,7 +23,7 @@ class BTextControl;
|
||||
|
||||
|
||||
class ResizerWindow : public BWindow {
|
||||
public:
|
||||
public:
|
||||
ResizerWindow(BMessenger target, int32 width, int32 height );
|
||||
|
||||
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"
|
||||
};
|
||||
|
||||
private:
|
||||
private:
|
||||
enum {
|
||||
kResolutionMsg = 'Rszr',
|
||||
kWidthModifiedMsg,
|
||||
@ -52,15 +52,15 @@ class ResizerWindow : public BWindow {
|
||||
void AddSeparatorLine(BView* parent, BRect& rect);
|
||||
void LeftAlign(BControl* control);
|
||||
|
||||
BTextControl* fWidth;
|
||||
BTextControl* fHeight;
|
||||
BCheckBox* fAspectRatio;
|
||||
BButton* fApply;
|
||||
// the original size of the image use for aspect ratio calculation
|
||||
// to avoid rounding errors
|
||||
int32 fOriginalWidth;
|
||||
int32 fOriginalHeight;
|
||||
BMessenger fTarget;
|
||||
BTextControl* fWidth;
|
||||
BTextControl* fHeight;
|
||||
BCheckBox* fAspectRatio;
|
||||
BButton* fApply;
|
||||
// the original size of the image use for aspect ratio calculation
|
||||
// to avoid rounding errors
|
||||
int32 fOriginalWidth;
|
||||
int32 fOriginalHeight;
|
||||
BMessenger fTarget;
|
||||
};
|
||||
|
||||
#endif // _RESIZER_WINDOW_H
|
||||
|
@ -179,9 +179,9 @@ ShowImageApp::RefsReceived(BMessage *message)
|
||||
|
||||
entry_ref ref;
|
||||
for (int32 i = 0; i < count; i++) {
|
||||
if (message->FindRef("refs", i, &ref) == B_OK)
|
||||
Open(&ref);
|
||||
}
|
||||
if (message->FindRef("refs", i, &ref) == B_OK)
|
||||
Open(&ref);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
void SetText(BString &text);
|
||||
|
||||
private:
|
||||
BString fText;
|
||||
BString fText;
|
||||
};
|
||||
|
||||
#endif /* _ShowImageStatusView_h */
|
||||
|
Loading…
x
Reference in New Issue
Block a user