[Scummvm-git-logs] scummvm master -> 3f7f27a7a3f6dba0b819b944ba7fbd792f1950b7

sev- noreply at scummvm.org
Sun Nov 12 20:31:53 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3f7f27a7a3 GUI: Add more dialogs to dialog dumper


Commit: 3f7f27a7a3f6dba0b819b944ba7fbd792f1950b7
    https://github.com/scummvm/scummvm/commit/3f7f27a7a3f6dba0b819b944ba7fbd792f1950b7
Author: Rana prathap (fusionbomb2004 at gmail.com)
Date: 2023-11-12T21:31:49+01:00

Commit Message:
GUI: Add more dialogs to dialog dumper

Changed paths:
    gui/dump-all-dialogs.cpp


diff --git a/gui/dump-all-dialogs.cpp b/gui/dump-all-dialogs.cpp
index 9453f4b2341..2e6e57d390e 100644
--- a/gui/dump-all-dialogs.cpp
+++ b/gui/dump-all-dialogs.cpp
@@ -31,6 +31,18 @@
 #include "gui/gui-manager.h"
 #include "gui/launcher.h"
 #include "gui/message.h"
+#include "gui/browser.h"
+#include "gui/downloaddialog.h"
+#include "gui/remotebrowser.h"
+#include "gui/chooser.h"
+#include "gui/cloudconnectionwizard.h"
+#include "gui/dialog.h"
+#include "gui/downloaddialog.h"
+#include "gui/downloadpacksdialog.h"
+#include "gui/fluidsynth-dialog.h"
+#include "gui/themebrowser.h"
+#include "gui/massadd.h"
+#include "gui/options.h"
 
 #include "image/png.h"
 
@@ -49,6 +61,15 @@ void saveGUISnapshot(Graphics::Surface surf, const Common::String &filename) {
 	}
 }
 
+void handleSimpleDialog(GUI::Dialog &dialog, const Common::String &filename,Graphics::Surface surf) {
+	dialog.open();         // For rendering
+	dialog.reflowLayout(); // For updating surface
+	g_gui.redrawFull();
+	g_system->grabOverlay(surf);
+	saveGUISnapshot(surf, filename);
+	dialog.close();
+}
+
 void dumpDialogs(const Common::String &message, int res, const Common::String &lang) {
 #ifdef USE_TRANSLATION
 	// Update GUI language
@@ -67,23 +88,51 @@ void dumpDialogs(const Common::String &message, int res, const Common::String &l
 
 	Common::String filename = Common::String::format("%d-%s.png", res, lang.c_str());
 
+	// Skipping Tooltips as not required
+
 	// MessageDialog
 	GUI::MessageDialog messageDialog(message);
-	messageDialog.open();     // For rendering
-	messageDialog.reflowLayout(); // For updating surface
-	g_gui.redrawFull();
-	g_system->grabOverlay(surf);
-	saveGUISnapshot(surf, "message-" + filename);
-	messageDialog.close();
-
+	handleSimpleDialog(messageDialog, "messageDialog-", surf);
 	// AboutDialog
 	GUI::AboutDialog aboutDialog;
-	aboutDialog.open();     // For rendering
-	aboutDialog.reflowLayout(); // For updating surface
-	g_gui.redrawFull();
-	g_system->grabOverlay(surf);
-	saveGUISnapshot(surf, "about-" + filename);
-	aboutDialog.close();
+	handleSimpleDialog(aboutDialog, "aboutDialog-", surf);
+
+	// CloudConnectingWizard
+	GUI::CloudConnectionWizard cloudConnectingWizard;
+	handleSimpleDialog(cloudConnectingWizard, "cloudConnectingWizard-", surf);
+
+	// FluidSynthSettingsDialog
+	GUI::FluidSynthSettingsDialog fluidSynthSettingsDialog;
+	handleSimpleDialog(fluidSynthSettingsDialog, "fluidSynthSettings-", surf);
+
+	// ThemeBrowserDialog
+	GUI::ThemeBrowser themeBrowser;
+	handleSimpleDialog(themeBrowser, "themeBrowser-", surf);
+
+	// BrowserDialog
+	GUI::BrowserDialog browserDialog(_("Select directory with game data"), true);
+	handleSimpleDialog(browserDialog, "browserDialog-", surf);
+
+	// RemoteBrowserDialog
+	GUI::RemoteBrowserDialog remoteBrowserDialog(_("Select directory with game data"));
+	handleSimpleDialog(remoteBrowserDialog, "remoteBrowserDialog-", surf);
+
+	// ChooserDialog
+	GUI::ChooserDialog chooserDialog(_("Pick the game:"));
+	handleSimpleDialog(chooserDialog, "chooserDialog-", surf);
+
+	// DownloadIconPacksDialog
+	GUI::DownloadPacksDialog downloadIconPacksDialog(_("icon packs"), "LIST", "gui-icons*.dat");
+	handleSimpleDialog(downloadIconPacksDialog, "downloadIconPacksDialog-", surf);
+
+	// DownloadShaderPacksDialog
+	GUI::DownloadPacksDialog downloadShaderPacksDialog(_("shader packs"), "LIST-SHADERS", "shaders*.dat");
+	handleSimpleDialog(downloadShaderPacksDialog, "downloadShaderPacksDialog-", surf);
+
+
+	// MassAddDialog
+	GUI::MassAddDialog massAddDialog(Common::FSNode("."));
+	handleSimpleDialog(massAddDialog, "massAddDialog-", surf);
 
 	// LauncherDialog
 #if 0




More information about the Scummvm-git-logs mailing list