diff options
author | Lothar Serra Mari | 2018-04-15 18:10:09 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-04-29 21:47:10 +0100 |
commit | 4220e14522c69205e08de8c2676b6fdc858e5a42 (patch) | |
tree | 8e0ffea33de27b1a32ea26eff39fd8e24bf0c17a /engines/unknown-game-dialog.h | |
parent | 05c1e593c03a2298c50f55b58ef48d70a9ce9b6d (diff) | |
download | scummvm-rg350-4220e14522c69205e08de8c2676b6fdc858e5a42.tar.gz scummvm-rg350-4220e14522c69205e08de8c2676b6fdc858e5a42.tar.bz2 scummvm-rg350-4220e14522c69205e08de8c2676b6fdc858e5a42.zip |
ENGINES: Add a dialog for reporting unknown games
Thanks to the great help of @criezy, here's my implementation of an GUI
dialog that appears when an unknown game is detected.
Features:
- Allows copying the data collected by game detector to the clipboard
- Allows opening the bug tracker and pre-filling the form fiels
This closes https://bugs.scummvm.org/ticket/10435.
Diffstat (limited to 'engines/unknown-game-dialog.h')
-rw-r--r-- | engines/unknown-game-dialog.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/engines/unknown-game-dialog.h b/engines/unknown-game-dialog.h new file mode 100644 index 0000000000..51adf27996 --- /dev/null +++ b/engines/unknown-game-dialog.h @@ -0,0 +1,37 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * 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 + * of the License, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "gui/dialog.h" + +class UnknownGameDialog : public GUI::Dialog { +public: + UnknownGameDialog(const Common::String &reportData, const Common::String &reportTranslated, const Common::String &bugtrackerAffectedEngine); + void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data); + virtual Common::String generateBugtrackerURL(); + virtual void reflowLayout(); + +private: + Common::String _reportData; + Common::String _reportTranslated; + Common::String _bugtrackerGameData; + Common::String _bugtrackerAffectedEngine; +}; |