mirror of
https://review.haiku-os.org/haiku
synced 2025-02-05 05:14:57 +01:00
0046f44436
* Grabs the app icon and version from the resource file. * Allow you to specify the copyright holder instead of hardcoding "Haiku, Inc." * Support multiple extra copyright fields. * Modify BAlert to take a custom icon. * Set the custom icon of the BAlert to the app icon. * Also set the app version. * Convert BAboutWindow to derive from BWindow * Place a 128x128 icon and fill out a scrolling BTextView with options such as authors, version history, copyright, license, etc. Still needs some work but is coming along. * Add the word Version to the version line, i8n'ed of course, and tweak the info box and default sizes.
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/*
|
|
* Copyright 2007-2012 Haiku, Inc.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef B_ABOUT_WINDOW_H
|
|
#define B_ABOUT_WINDOW_H
|
|
|
|
|
|
#include <GroupView.h>
|
|
#include <Window.h>
|
|
#include <View.h>
|
|
|
|
|
|
class AboutView;
|
|
class BPoint;
|
|
|
|
class BAboutWindow : public BWindow {
|
|
public:
|
|
BAboutWindow(const char* appName,
|
|
int32 firstCopyrightYear,
|
|
const char** authors = NULL,
|
|
const char* extraInfo = NULL);
|
|
BAboutWindow(const char* appName,
|
|
const char* signature);
|
|
virtual ~BAboutWindow();
|
|
|
|
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);
|
|
|
|
BPoint AboutPosition(float width, float height);
|
|
|
|
protected:
|
|
void _Init(const char* appName, const char* signature);
|
|
|
|
private:
|
|
AboutView* fAboutView;
|
|
};
|
|
|
|
#endif // B_ABOUT_WINDOW_H
|