aboutsummaryrefslogtreecommitdiff
path: root/gui/theme.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/theme.h')
-rw-r--r--gui/theme.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gui/theme.h b/gui/theme.h
index e9ce8bb01d..91f59d961c 100644
--- a/gui/theme.h
+++ b/gui/theme.h
@@ -239,6 +239,20 @@ public:
virtual void closeAllDialogs() = 0;
/**
+ * Closes the topmost dialog, and redraws the screen
+ * accordingly.
+ *
+ * TODO: Make this purely virtual by making ThemeClassic
+ * and ThemeModern implement it too.
+ *
+ * @returns True if the dialog was sucessfully closed.
+ * If we weren't able to restore the screen after closing
+ * the dialog, we return false, which means we need to redraw
+ * the dialog stack from scratch.
+ */
+ virtual bool closeDialog() { return false; }
+
+ /**
* Clear the complete GUI screen.
*/
virtual void clearAll() = 0;