2007-06-13 06:36:18 +04:00
|
|
|
/*
|
2012-08-01 15:25:56 +04:00
|
|
|
* Copyright 2007-2012 Haiku, Inc.
|
2007-06-13 06:36:18 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
2012-11-13 09:28:06 +04:00
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Ryan Leavengood <leavengood@gmail.com>
|
|
|
|
* John Scipione <jscipione@gmail.com>
|
2007-06-13 06:36:18 +04:00
|
|
|
*/
|
|
|
|
#ifndef B_ABOUT_WINDOW_H
|
|
|
|
#define B_ABOUT_WINDOW_H
|
|
|
|
|
|
|
|
|
2012-08-01 15:25:56 +04:00
|
|
|
#include <GroupView.h>
|
|
|
|
#include <Window.h>
|
|
|
|
#include <View.h>
|
2007-06-13 06:36:18 +04:00
|
|
|
|
|
|
|
|
2012-08-01 15:25:56 +04:00
|
|
|
class AboutView;
|
2013-02-11 03:11:01 +04:00
|
|
|
class BBitmap;
|
2012-08-01 15:25:56 +04:00
|
|
|
class BPoint;
|
2007-06-13 06:36:18 +04:00
|
|
|
|
2012-08-01 15:25:56 +04:00
|
|
|
class BAboutWindow : public BWindow {
|
|
|
|
public:
|
2012-08-19 00:01:31 +04:00
|
|
|
BAboutWindow(const char* appName,
|
2012-08-01 15:25:56 +04:00
|
|
|
const char* signature);
|
|
|
|
virtual ~BAboutWindow();
|
2007-06-13 06:36:18 +04:00
|
|
|
|
2013-02-12 06:25:51 +04:00
|
|
|
virtual void Show();
|
2012-08-17 10:19:40 +04:00
|
|
|
|
2012-08-19 00:22:23 +04:00
|
|
|
BPoint AboutPosition(float width, float height);
|
2012-08-01 15:25:56 +04:00
|
|
|
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);
|
|
|
|
|
2013-05-09 23:27:43 +04:00
|
|
|
void AddText(const char* header,
|
|
|
|
const char** contents = NULL);
|
|
|
|
|
2013-02-11 03:11:01 +04:00
|
|
|
BBitmap* Icon();
|
|
|
|
void SetIcon(BBitmap* icon);
|
|
|
|
|
|
|
|
const char* Name();
|
|
|
|
void SetName(const char* name);
|
|
|
|
|
|
|
|
const char* Version();
|
|
|
|
void SetVersion(const char* version);
|
2012-08-01 15:25:56 +04:00
|
|
|
private:
|
|
|
|
AboutView* fAboutView;
|
2007-06-13 06:36:18 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // B_ABOUT_WINDOW_H
|