Add AddText method to AboutWindow

* 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 ?
This commit is contained in:
Adrien Destugues
2013-05-09 21:27:43 +02:00
parent 01c5671de8
commit 2b67ff2420
2 changed files with 41 additions and 38 deletions
+3
View File
@@ -37,6 +37,9 @@ class BAboutWindow : public BWindow {
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);