2b67ff2420
* Factor out the code to add some data to the about window, with a header and a content under it * Make this method public so it's possible to add custom entries in an about box * If the method is called with only the header or only the content, the text is added non-bold and non-indented (like the description entry*). * Make the header text bold. I'm not sure it looks that good, after all. Thoughts ?
56 lines
1.3 KiB
C++
56 lines
1.3 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);
|
|
|
|
void AddText(const char* header,
|
|
const char** contents = NULL);
|
|
|
|
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
|