NetSurf
about.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2008 François Revol <mmu_man@users.sourceforge.net>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#define __STDBOOL_H__ 1
20#include <stdio.h>
21#include <stdlib.h>
22#include <string.h>
23extern "C" {
24#include "desktop/version.h"
25#include "utils/log.h"
26#include "testament.h"
27#include "utils/useragent.h"
28#include "curl/curlver.h"
29#include "netsurf/clipboard.h"
30}
31#include "beos/about.h"
32#include "beos/scaffolding.h"
33#include "beos/window.h"
34
35#include <private/interface/AboutWindow.h>
36#include <Application.h>
37#include <Invoker.h>
38#include <String.h>
39
40
41/**
42 * Creates the about alert
43 */
44void nsbeos_about(struct gui_window *gui)
45{
46 BString text;
47 text << "Netsurf : " << user_agent_string() << "\n";
48 text << "Version : " << netsurf_version << "\n";
49 text << "Build ID : " << WT_REVID << "\n";
50 text << "Date : " << WT_COMPILEDATE << "\n";
51 text << "cURL : " << LIBCURL_VERSION << "\n";
52
53 BAboutWindow *alert = new BAboutWindow("About NetSurf", "application/x-vnd.NetSurf");
54 alert->AddExtraInfo(text);
55 alert->Show();
56 //TODO: i18n-ize
57}
void nsbeos_about(struct gui_window *gui)
Creates the about alert.
Definition: about.cpp:44
const char *const netsurf_version
User friendly version string.
Definition: gui_menu.c:92
Interface to platform-specific clipboard operations.
Interface to utility string handling.
first entry in window list
Definition: gui.c:296
const char * user_agent_string(void)
Retrieve the core user agent for this release.
Definition: useragent.c:79
Version information interface.
static nserror text(const struct redraw_context *ctx, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length)
Text plotting.
Definition: plot.c:978