31535ac63b
Ã* Set its type to B_MODAL_WINDO, and also set B_NOT_MOVABLE * Since this removes the window tab, add an "Ok" button to close the window * Remove the GetWindow mess and just use it as any regular window * Adjust all callers again The AlertPosition method doesn't seem to work right, the window pops up offset to the right. I also noticed that some of our calls to BAboutWindow are actually not reacable because we removed Abutrequested from the apps. Maybe we should clean them up (locale preflet and activity monitor are examples) More annoying is the fact that opening a modal window from a deskbar replicant is modal against the whole deskbar. Not sure what to do about that.
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
/*
|
|
* Copyright 2007-2012 Haiku, Inc.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Ryan Leavengood <leavengood@gmail.com>
|
|
* John Scipione <jscipione@gmail.com>
|
|
*/
|
|
#ifndef B_ABOUT_WINDOW_H
|
|
#define B_ABOUT_WINDOW_H
|
|
|
|
|
|
#include <GroupView.h>
|
|
#include <Window.h>
|
|
#include <View.h>
|
|
|
|
|
|
class AboutView;
|
|
class BBitmap;
|
|
class BPoint;
|
|
|
|
class BAboutWindow : public BWindow {
|
|
public:
|
|
BAboutWindow(const char* appName,
|
|
const char* signature);
|
|
virtual ~BAboutWindow();
|
|
|
|
virtual void Show();
|
|
|
|
BPoint AboutPosition(float width, float height);
|
|
void AddDescription(const char* description);
|
|
void AddCopyright(int32 firstCopyrightYear,
|
|
const char* copyrightHolder,
|
|
const char** extraCopyrights = NULL);
|
|
void AddAuthors(const char** authors);
|
|
void AddSpecialThanks(const char** thanks);
|
|
void AddVersionHistory(const char** history);
|
|
void AddExtraInfo(const char* extraInfo);
|
|
|
|
BBitmap* Icon();
|
|
void SetIcon(BBitmap* icon);
|
|
|
|
const char* Name();
|
|
void SetName(const char* name);
|
|
|
|
const char* Version();
|
|
void SetVersion(const char* version);
|
|
private:
|
|
AboutView* fAboutView;
|
|
};
|
|
|
|
#endif // B_ABOUT_WINDOW_H
|