Update the about window of WebPositive.
Also update the version number to 1.1-alpha in the rdef file matching the text on the old about window.
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#include "BrowserApp.h"
|
#include "BrowserApp.h"
|
||||||
|
|
||||||
|
#include <AboutWindow.h>
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Autolock.h>
|
#include <Autolock.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
@@ -75,7 +76,8 @@ BrowserApp::BrowserApp()
|
|||||||
fCookies(NULL),
|
fCookies(NULL),
|
||||||
fCookieJar(NULL),
|
fCookieJar(NULL),
|
||||||
fDownloadWindow(NULL),
|
fDownloadWindow(NULL),
|
||||||
fSettingsWindow(NULL)
|
fSettingsWindow(NULL),
|
||||||
|
fAboutWindow(NULL)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,25 +88,45 @@ BrowserApp::~BrowserApp()
|
|||||||
delete fSettings;
|
delete fSettings;
|
||||||
delete fCookies;
|
delete fCookies;
|
||||||
delete fCookieJar;
|
delete fCookieJar;
|
||||||
|
|
||||||
|
if (fAboutWindow != NULL)
|
||||||
|
fAboutWindow->Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BrowserApp::AboutRequested()
|
BrowserApp::AboutRequested()
|
||||||
{
|
{
|
||||||
BString aboutText("WebPositive\n\nby Ryan Leavengood, Andrea Anzani, "
|
if (fAboutWindow == NULL) {
|
||||||
"Maxime Simon, Michael Lotz, Rene Gollent, Stephan Aßmus and "
|
// create the about window
|
||||||
"Alexandre Deckner");
|
|
||||||
aboutText << "\n\nWebPositive 1.1";
|
|
||||||
aboutText << "\n\nHaikuWebKit " << WebKitInfo::HaikuWebKitVersion();
|
|
||||||
aboutText << " (" << WebKitInfo::HaikuWebKitRevision() << ")";
|
|
||||||
aboutText << "\nWebKit " << WebKitInfo::WebKitVersion();
|
|
||||||
aboutText << " (" << WebKitInfo::WebKitRevision() << ")";
|
|
||||||
|
|
||||||
BAlert* alert = new BAlert("About WebPositive", aboutText.String(),
|
const char* authors[] = {
|
||||||
"Sweet!");
|
"Andrea Anzani",
|
||||||
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
"Stephan Aßmus",
|
||||||
alert->Go(NULL);
|
"Alexandre Deckner",
|
||||||
|
"Rene Gollent",
|
||||||
|
"Ryan Leavengood",
|
||||||
|
"Michael Lotz",
|
||||||
|
"Maxime Simon",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
BString aboutText("");
|
||||||
|
aboutText << "HaikuWebKit " << WebKitInfo::HaikuWebKitVersion();
|
||||||
|
aboutText << " (" << WebKitInfo::HaikuWebKitRevision() << ")";
|
||||||
|
aboutText << "\nWebKit " << WebKitInfo::WebKitVersion();
|
||||||
|
aboutText << " (" << WebKitInfo::WebKitRevision() << ")";
|
||||||
|
|
||||||
|
fAboutWindow = new BAboutWindow(kApplicationName,
|
||||||
|
kApplicationSignature);
|
||||||
|
fAboutWindow->AddCopyright(2007, "Haiku, Inc.");
|
||||||
|
fAboutWindow->AddAuthors(authors);
|
||||||
|
fAboutWindow->AddExtraInfo(aboutText.String());
|
||||||
|
fAboutWindow->Show();
|
||||||
|
} else if (fAboutWindow->IsHidden())
|
||||||
|
fAboutWindow->Show();
|
||||||
|
else
|
||||||
|
fAboutWindow->Activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,8 @@
|
|||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
#include <Rect.h>
|
#include <Rect.h>
|
||||||
|
|
||||||
|
|
||||||
|
class BAboutWindow;
|
||||||
class BNetworkCookieJar;
|
class BNetworkCookieJar;
|
||||||
class DownloadWindow;
|
class DownloadWindow;
|
||||||
class BrowserWindow;
|
class BrowserWindow;
|
||||||
@@ -77,6 +79,8 @@ private:
|
|||||||
|
|
||||||
DownloadWindow* fDownloadWindow;
|
DownloadWindow* fDownloadWindow;
|
||||||
SettingsWindow* fSettingsWindow;
|
SettingsWindow* fSettingsWindow;
|
||||||
|
|
||||||
|
BAboutWindow* fAboutWindow;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ local sources =
|
|||||||
URLInputGroup.cpp
|
URLInputGroup.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
Includes [ FGristFiles $(sources) ] : $(HAIKU_WEBKIT_HEADERS_DEPENDENCY) ;
|
Includes [ FGristFiles $(sources) ] : $(HAIKU_WEBKIT_HEADERS_DEPENDENCY) ;
|
||||||
# Dependency needed to trigger downloading/unzipping the package before
|
# Dependency needed to trigger downloading/unzipping the package before
|
||||||
# compiling the files.
|
# compiling the files.
|
||||||
@@ -60,12 +59,14 @@ Includes [ FGristFiles $(sources) ] : $(HAIKU_WEBKIT_HEADERS_DEPENDENCY) ;
|
|||||||
#MakeLocate $(svnRevisionFile) : $(LOCATE_TARGET) ;
|
#MakeLocate $(svnRevisionFile) : $(LOCATE_TARGET) ;
|
||||||
#CreateSVNRevisionFile $(svnRevisionFile) ;
|
#CreateSVNRevisionFile $(svnRevisionFile) ;
|
||||||
|
|
||||||
|
UsePrivateHeaders shared ;
|
||||||
|
|
||||||
Application WebPositive :
|
Application WebPositive :
|
||||||
$(sources)
|
$(sources)
|
||||||
:
|
:
|
||||||
$(HAIKU_WEBKIT_LIBS)
|
$(HAIKU_WEBKIT_LIBS)
|
||||||
$(TARGET_LIBSTDC++) $(HAIKU_LOCALE_LIBS)
|
$(TARGET_LIBSTDC++) $(HAIKU_LOCALE_LIBS)
|
||||||
be network tracker translation
|
be libshared.a network tracker translation
|
||||||
:
|
:
|
||||||
WebPositive.rdef
|
WebPositive.rdef
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
resource app_signature "application/x-vnd.Haiku-WebPositive";
|
resource app_signature "application/x-vnd.Haiku-WebPositive";
|
||||||
|
|
||||||
resource app_version {
|
resource app_version {
|
||||||
major = 0,
|
major = 1,
|
||||||
middle = 0,
|
middle = 1,
|
||||||
minor = 1,
|
minor = 0,
|
||||||
variety = B_APPV_ALPHA,
|
variety = B_APPV_ALPHA,
|
||||||
internal = 0,
|
internal = 0,
|
||||||
short_info = "WebPositive",
|
short_info = "WebPositive",
|
||||||
long_info = "WebPositive ©2007-2010 The WebKit Haiku Project"
|
long_info = "WebPositive ©2007-2012 The WebKit Haiku Project"
|
||||||
};
|
};
|
||||||
|
|
||||||
resource app_flags B_SINGLE_LAUNCH;
|
resource app_flags B_SINGLE_LAUNCH;
|
||||||
|
|||||||
Reference in New Issue
Block a user