1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Move methods only used by dialogs from the GMenu2x class to a common base class

for all dialog classes.
This commit is contained in:
Lars-Peter Clausen
2010-05-05 14:35:52 +02:00
parent cb654dd520
commit 6da573f303
18 changed files with 123 additions and 80 deletions

View File

@@ -23,12 +23,13 @@
using namespace std;
WallpaperDialog::WallpaperDialog(GMenu2X *gmenu2x) {
this->gmenu2x = gmenu2x;
WallpaperDialog::WallpaperDialog(GMenu2X *gmenu2x) : Dialog(gmenu2x)
{
selRow = 0;
}
bool WallpaperDialog::exec() {
bool WallpaperDialog::exec()
{
bool close = false, result = true;
FileLister fl("skins/"+gmenu2x->confStr["skin"]+"/wallpapers");
@@ -61,9 +62,9 @@ bool WallpaperDialog::exec() {
gmenu2x->drawTopBar(gmenu2x->s);
gmenu2x->drawBottomBar(gmenu2x->s);
gmenu2x->drawTitleIcon("icons/wallpaper.png",true);
gmenu2x->writeTitle("Wallpaper selection");
gmenu2x->writeSubTitle("Select an image from the list, to use as a wallpaper");
drawTitleIcon("icons/wallpaper.png",true);
writeTitle("Wallpaper selection");
writeSubTitle("Select an image from the list, to use as a wallpaper");
gmenu2x->drawButton(gmenu2x->s, "b", gmenu2x->tr["Select wallpaper"],5);