Create a BWindow::AlertPosition() method and use it

...to position alert's and open/save dialogs nicely inside of the parent window,
or if that is unavailable, the screen frame.

AlertPosition() is private (for now) but BAlert and BFilePanel are BWindow's friends so
BWindow allows those classes to touch it's privates.
This commit is contained in:
John Scipione
2013-04-30 20:15:32 -04:00
parent f74ff8d324
commit 6723d9fc94
4 changed files with 67 additions and 6 deletions
+2
View File
@@ -283,6 +283,7 @@ private:
struct unpack_cookie;
class Shortcut;
friend class BAlert;
friend class BApplication;
friend class BBitmap;
friend class BView;
@@ -303,6 +304,7 @@ private:
virtual void task_looper();
BPoint AlertPosition(const BRect& frame);
virtual BMessage* ConvertToMessage(void* raw, int32 code);
void AddShortcut(uint32 key, uint32 modifiers,