From 4070f2a9b39806b5fd0202b113aca9fe82b50dd1 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Sat, 23 Feb 2008 20:13:48 +0000 Subject: [PATCH] Qt: ADDED version info to about box git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@386 a31d4220-a93d-0410-bf67-fe4944624d44 --- lang/german.ts | 93 +++++++++++++++++++++---------------- project/vc2008/vba-m.vcproj | 4 ++ src/qt/MainWnd.cpp | 11 +++-- src/qt/vba-m.rc | 4 +- src/qt/version.h | 26 +++++++++++ 5 files changed, 91 insertions(+), 47 deletions(-) create mode 100644 src/qt/version.h diff --git a/lang/german.ts b/lang/german.ts index 2357f5a2..33c02857 100644 --- a/lang/german.ts +++ b/lang/german.ts @@ -1,5 +1,6 @@ + @default @@ -166,11 +167,6 @@ MainWnd - - - VBA-M - - &File @@ -207,57 +203,57 @@ Über &Qt... - + This program is licensed under terms of the GNU General Public License. Dieses Programm ist unter den Bedingungen der GNU General Public License lizenziert. - + OpenGL version 2.1 is present. OpenGL Version 2.1 ist verfügbar. - + OpenGL version 2.0 is present. OpenGL Version 2.0 ist verfügbar. - + OpenGL version 1.5 is present. OpenGL Version 1.5 ist verfügbar. - + OpenGL version 1.4 is present. OpenGL Version 1.4 ist verfügbar. - + OpenGL version 1.3 is present. OpenGL Version 1.3 ist verfügbar. - + OpenGL version 1.2 is present. OpenGL Version 1.2 ist verfügbar. - + OpenGL version 1.1 is present. OpenGL Version 1.1 ist verfügbar. - + OpenGL is NOT available! OpenGL ist NICHT verfügbar! - + About VBA-M Über VBA-M - + About OpenGL Über OpenGL @@ -277,117 +273,132 @@ Übersetzungsdateien (*.qm) - + .qm - + Exit Beenden - + Select language... Sprache auswählen... - + Select language Sprache auswählen - + Language files (*.qm) Sprachdateien (*.qm) - + Error! Fehler! - + Language file can not be loaded! Sprachdatei kann nicht geladen werden! - + Enable translation Übersetzung aktivieren - + No language file loaded. - + Deutsche Übersetzung von spacy. - + Cheats - + Show cheats sidebar Cheats-Seitenleiste anzeigen - + File Datei - + Open ROM ROM laden - + Settings Einstellungen - + Main options... Optionen... - + Tools Werkzeuge - + Help Hilfe - + About VBA-M... Über VBA-M... - + About OpenGL... Über OpenGL... - + About Qt... Über Qt... - + Enter ROM loader code here. Funktionalität noch nicht vorhanden. - + Status + + + Version + Version + + + + Compile date: + Bau-Datum: + + + + No language file loaded. + Deutsche Übersetzung von spacy. + VideoOptionsPage @@ -420,12 +431,12 @@ Deutsche Übersetzung von spacy. sidewidget_cheats - + Enable Aktivieren - + Search... Suchen... diff --git a/project/vc2008/vba-m.vcproj b/project/vc2008/vba-m.vcproj index ff85b26b..968064bf 100644 --- a/project/vc2008/vba-m.vcproj +++ b/project/vc2008/vba-m.vcproj @@ -158,6 +158,10 @@ RelativePath="..\..\src\qt\precompile.h" > + + diff --git a/src/qt/MainWnd.cpp b/src/qt/MainWnd.cpp index 4fde5894..0ced8d24 100644 --- a/src/qt/MainWnd.cpp +++ b/src/qt/MainWnd.cpp @@ -18,6 +18,7 @@ #include "MainWnd.h" +#include "version.h" #include "glwidget.h" #include "configdialog.h" #include "sidewidget_cheats.h" @@ -273,11 +274,15 @@ bool MainWnd::enableTranslation( bool enable ) void MainWnd::showAbout() { - QString info; - info += tr ( "This program is licensed under terms of the GNU General Public License." ); + QString info( "VisualBoyAdvance-M\n" ); + info += tr( "Version" ) + " " + VERSION_STR + "\n"; + + info += tr( "Compile date:" ) + " " + __DATE__ + "\n"; // 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 ); } diff --git a/src/qt/vba-m.rc b/src/qt/vba-m.rc index 061c945b..da291293 100644 --- a/src/qt/vba-m.rc +++ b/src/qt/vba-m.rc @@ -1,6 +1,4 @@ -#define VERSION 0,0,0,0 -#define VERSION_STR "SVN" - +#include "version.h" IDI_ICON1 ICON DISCARDABLE "../../src/win32/VBA-M.ico" diff --git a/src/qt/version.h b/src/qt/version.h new file mode 100644 index 00000000..19458d2a --- /dev/null +++ b/src/qt/version.h @@ -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