ADDED version info to about box
This commit is contained in:
spacy51 2008-02-23 20:13:48 +00:00
parent ac2478d7c2
commit 60070208a4
5 changed files with 91 additions and 47 deletions

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="1.1" language="de_DE"> <!DOCTYPE TS><TS version="1.1" language="de_DE">
<defaultcodec></defaultcodec>
<context> <context>
<name>@default</name> <name>@default</name>
<message> <message>
@ -166,11 +167,6 @@
</context> </context>
<context> <context>
<name>MainWnd</name> <name>MainWnd</name>
<message>
<location filename="../src/qt/MainWnd.cpp" line="38"/>
<source>VBA-M</source>
<translation></translation>
</message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="98"/> <location filename="../src/qt/MainWnd.cpp" line="98"/>
<source>&amp;File</source> <source>&amp;File</source>
@ -207,57 +203,57 @@
<translation type="obsolete">Über &amp;Qt...</translation> <translation type="obsolete">Über &amp;Qt...</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="226"/> <location filename="../src/qt/MainWnd.cpp" line="285"/>
<source>This program is licensed under terms of the GNU General Public License.</source> <source>This program is licensed under terms of the GNU General Public License.</source>
<translation>Dieses Programm ist unter den Bedingungen der GNU General Public License lizenziert.</translation> <translation>Dieses Programm ist unter den Bedingungen der GNU General Public License lizenziert.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="257"/> <location filename="../src/qt/MainWnd.cpp" line="313"/>
<source>OpenGL version 2.1 is present.</source> <source>OpenGL version 2.1 is present.</source>
<translation>OpenGL Version 2.1 ist verfügbar.</translation> <translation>OpenGL Version 2.1 ist verfügbar.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="260"/> <location filename="../src/qt/MainWnd.cpp" line="316"/>
<source>OpenGL version 2.0 is present.</source> <source>OpenGL version 2.0 is present.</source>
<translation>OpenGL Version 2.0 ist verfügbar.</translation> <translation>OpenGL Version 2.0 ist verfügbar.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="263"/> <location filename="../src/qt/MainWnd.cpp" line="319"/>
<source>OpenGL version 1.5 is present.</source> <source>OpenGL version 1.5 is present.</source>
<translation>OpenGL Version 1.5 ist verfügbar.</translation> <translation>OpenGL Version 1.5 ist verfügbar.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="266"/> <location filename="../src/qt/MainWnd.cpp" line="322"/>
<source>OpenGL version 1.4 is present.</source> <source>OpenGL version 1.4 is present.</source>
<translation>OpenGL Version 1.4 ist verfügbar.</translation> <translation>OpenGL Version 1.4 ist verfügbar.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="269"/> <location filename="../src/qt/MainWnd.cpp" line="325"/>
<source>OpenGL version 1.3 is present.</source> <source>OpenGL version 1.3 is present.</source>
<translation>OpenGL Version 1.3 ist verfügbar.</translation> <translation>OpenGL Version 1.3 ist verfügbar.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="272"/> <location filename="../src/qt/MainWnd.cpp" line="328"/>
<source>OpenGL version 1.2 is present.</source> <source>OpenGL version 1.2 is present.</source>
<translation>OpenGL Version 1.2 ist verfügbar.</translation> <translation>OpenGL Version 1.2 ist verfügbar.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="275"/> <location filename="../src/qt/MainWnd.cpp" line="331"/>
<source>OpenGL version 1.1 is present.</source> <source>OpenGL version 1.1 is present.</source>
<translation>OpenGL Version 1.1 ist verfügbar.</translation> <translation>OpenGL Version 1.1 ist verfügbar.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="281"/> <location filename="../src/qt/MainWnd.cpp" line="337"/>
<source>OpenGL is NOT available!</source> <source>OpenGL is NOT available!</source>
<translation>OpenGL ist NICHT verfügbar!</translation> <translation>OpenGL ist NICHT verfügbar!</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="231"/> <location filename="../src/qt/MainWnd.cpp" line="287"/>
<source>About VBA-M</source> <source>About VBA-M</source>
<translation>Über VBA-M</translation> <translation>Über VBA-M</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="284"/> <location filename="../src/qt/MainWnd.cpp" line="340"/>
<source>About OpenGL</source> <source>About OpenGL</source>
<translation>Über OpenGL</translation> <translation>Über OpenGL</translation>
</message> </message>
@ -277,117 +273,132 @@
<translation type="obsolete">Übersetzungsdateien (*.qm)</translation> <translation type="obsolete">Übersetzungsdateien (*.qm)</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="178"/> <location filename="../src/qt/MainWnd.cpp" line="227"/>
<source>.qm</source> <source>.qm</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="99"/> <location filename="../src/qt/MainWnd.cpp" line="138"/>
<source>Exit</source> <source>Exit</source>
<translation>Beenden</translation> <translation>Beenden</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="105"/> <location filename="../src/qt/MainWnd.cpp" line="144"/>
<source>Select language...</source> <source>Select language...</source>
<translation>Sprache auswählen...</translation> <translation>Sprache auswählen...</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="160"/> <location filename="../src/qt/MainWnd.cpp" line="206"/>
<source>Select language</source> <source>Select language</source>
<translation>Sprache auswählen</translation> <translation>Sprache auswählen</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="162"/> <location filename="../src/qt/MainWnd.cpp" line="208"/>
<source>Language files (*.qm)</source> <source>Language files (*.qm)</source>
<translation>Sprachdateien (*.qm)</translation> <translation>Sprachdateien (*.qm)</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="170"/> <location filename="../src/qt/MainWnd.cpp" line="218"/>
<source>Error!</source> <source>Error!</source>
<translation>Fehler!</translation> <translation>Fehler!</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="170"/> <location filename="../src/qt/MainWnd.cpp" line="218"/>
<source>Language file can not be loaded!</source> <source>Language file can not be loaded!</source>
<translation>Sprachdatei kann nicht geladen werden!</translation> <translation>Sprachdatei kann nicht geladen werden!</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="65"/> <location filename="../src/qt/MainWnd.cpp" line="104"/>
<source>Enable translation</source> <source>Enable translation</source>
<translation>Übersetzung aktivieren</translation> <translation>Übersetzung aktivieren</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="229"/> <location filename="../src/qt/MainWnd.cpp" line="280"/>
<source> <source>
No language file loaded.</source> No language file loaded.</source>
<translation> <translation type="obsolete">
Deutsche Übersetzung von spacy.</translation> Deutsche Übersetzung von spacy.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="133"/> <location filename="../src/qt/MainWnd.cpp" line="172"/>
<source>Cheats</source> <source>Cheats</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="112"/> <location filename="../src/qt/MainWnd.cpp" line="151"/>
<source>Show cheats sidebar</source> <source>Show cheats sidebar</source>
<translation>Cheats-Seitenleiste anzeigen</translation> <translation>Cheats-Seitenleiste anzeigen</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="97"/> <location filename="../src/qt/MainWnd.cpp" line="136"/>
<source>File</source> <source>File</source>
<translation>Datei</translation> <translation>Datei</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="98"/> <location filename="../src/qt/MainWnd.cpp" line="137"/>
<source>Open ROM</source> <source>Open ROM</source>
<translation>ROM laden</translation> <translation>ROM laden</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="103"/> <location filename="../src/qt/MainWnd.cpp" line="142"/>
<source>Settings</source> <source>Settings</source>
<translation>Einstellungen</translation> <translation>Einstellungen</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="104"/> <location filename="../src/qt/MainWnd.cpp" line="143"/>
<source>Main options...</source> <source>Main options...</source>
<translation>Optionen...</translation> <translation>Optionen...</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="110"/> <location filename="../src/qt/MainWnd.cpp" line="149"/>
<source>Tools</source> <source>Tools</source>
<translation>Werkzeuge</translation> <translation>Werkzeuge</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="117"/> <location filename="../src/qt/MainWnd.cpp" line="156"/>
<source>Help</source> <source>Help</source>
<translation>Hilfe</translation> <translation>Hilfe</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="119"/> <location filename="../src/qt/MainWnd.cpp" line="158"/>
<source>About VBA-M...</source> <source>About VBA-M...</source>
<translation>Über VBA-M...</translation> <translation>Über VBA-M...</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="120"/> <location filename="../src/qt/MainWnd.cpp" line="159"/>
<source>About OpenGL...</source> <source>About OpenGL...</source>
<translation>Über OpenGL...</translation> <translation>Über OpenGL...</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="121"/> <location filename="../src/qt/MainWnd.cpp" line="160"/>
<source>About Qt...</source> <source>About Qt...</source>
<translation>Über Qt...</translation> <translation>Über Qt...</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="238"/> <location filename="../src/qt/MainWnd.cpp" line="294"/>
<source>Enter ROM loader code here.</source> <source>Enter ROM loader code here.</source>
<translation>Funktionalität noch nicht vorhanden.</translation> <translation>Funktionalität noch nicht vorhanden.</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/MainWnd.cpp" line="240"/> <location filename="../src/qt/MainWnd.cpp" line="296"/>
<source>Status</source> <source>Status</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<location filename="../src/qt/MainWnd.cpp" line="278"/>
<source>Version</source>
<translation>Version</translation>
</message>
<message>
<location filename="../src/qt/MainWnd.cpp" line="280"/>
<source>Compile date:</source>
<translation>Bau-Datum:</translation>
</message>
<message>
<location filename="../src/qt/MainWnd.cpp" line="283"/>
<source>No language file loaded.</source>
<translation>Deutsche Übersetzung von spacy.</translation>
</message>
</context> </context>
<context> <context>
<name>VideoOptionsPage</name> <name>VideoOptionsPage</name>
@ -420,12 +431,12 @@ Deutsche Übersetzung von spacy.</translation>
<context> <context>
<name>sidewidget_cheats</name> <name>sidewidget_cheats</name>
<message> <message>
<location filename="../src/qt/sidewidget_cheats.ui" line="25"/> <location filename="../src/qt/sidewidget_cheats.ui" line="27"/>
<source>Enable</source> <source>Enable</source>
<translation>Aktivieren</translation> <translation>Aktivieren</translation>
</message> </message>
<message> <message>
<location filename="../src/qt/sidewidget_cheats.ui" line="32"/> <location filename="../src/qt/sidewidget_cheats.ui" line="34"/>
<source>Search...</source> <source>Search...</source>
<translation>Suchen...</translation> <translation>Suchen...</translation>
</message> </message>

View File

@ -158,6 +158,10 @@
RelativePath="..\..\src\qt\precompile.h" RelativePath="..\..\src\qt\precompile.h"
> >
</File> </File>
<File
RelativePath="..\..\src\qt\version.h"
>
</File>
<Filter <Filter
Name="OpenGL" Name="OpenGL"
> >

View File

@ -18,6 +18,7 @@
#include "MainWnd.h" #include "MainWnd.h"
#include "version.h"
#include "glwidget.h" #include "glwidget.h"
#include "configdialog.h" #include "configdialog.h"
#include "sidewidget_cheats.h" #include "sidewidget_cheats.h"
@ -273,11 +274,15 @@ bool MainWnd::enableTranslation( bool enable )
void MainWnd::showAbout() void MainWnd::showAbout()
{ {
QString info; QString info( "VisualBoyAdvance-M\n" );
info += tr ( "This program is licensed under terms of the GNU General Public License." ); info += tr( "Version" ) + " " + VERSION_STR + "\n";
info += tr( "Compile date:" ) + " " + __DATE__ + "\n";
// translators may use this string to give informations about the language file // translators may use this string to give informations about the language file
info += tr ( "\nNo language file loaded." ); info += "\n" + tr ( "No language file loaded." ) + "\n";
info += "\n" + tr ( "This program is licensed under terms of the GNU General Public License." );
QMessageBox::about( this, tr( "About VBA-M" ), info ); QMessageBox::about( this, tr( "About VBA-M" ), info );
} }

View File

@ -1,6 +1,4 @@
#define VERSION 0,0,0,0 #include "version.h"
#define VERSION_STR "SVN"
IDI_ICON1 ICON DISCARDABLE "../../src/win32/VBA-M.ico" IDI_ICON1 ICON DISCARDABLE "../../src/win32/VBA-M.ico"

26
src/qt/version.h Normal file
View File

@ -0,0 +1,26 @@
// VBA-M, A Nintendo Handheld Console Emulator
// Copyright (C) 2008 VBA-M development team
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or(at your option)
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef VERSION_H
#define VERSION_H
// Windows VERSIONINFO compatible
#define VERSION 0,0,0,0
#define VERSION_STR "SVN"
#endif