From c9a51af4a66fed4a36fea7f93f91e481097cc71e Mon Sep 17 00:00:00 2001 From: Ayla Date: Thu, 15 Sep 2011 21:15:20 +0200 Subject: [PATCH] The WallpaperDialog object now uses a ButtonBox to print the key mapping at the bottom of the screen. --- src/wallpaperdialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wallpaperdialog.cpp b/src/wallpaperdialog.cpp index 1c6cef5..9ce8b99 100644 --- a/src/wallpaperdialog.cpp +++ b/src/wallpaperdialog.cpp @@ -22,6 +22,7 @@ #include "wallpaperdialog.h" #include "filelister.h" +#include "buttonbox.h" #include "debug.h" using namespace std; @@ -70,6 +71,9 @@ bool WallpaperDialog::exec() uint i, selected = 0, firstElement = 0, iY; + ButtonBox buttonbox(gmenu2x); + buttonbox.add(new IconButton(gmenu2x, "skin:imgs/buttons/b.png", gmenu2x->tr["Select wallpaper"])); + while (!close) { if (selected>firstElement+9) firstElement=selected-9; if (selecteddrawButton(gmenu2x->s, "b", gmenu2x->tr["Select wallpaper"],5); + buttonbox.paint(5); //Selection iY = selected-firstElement;