mirror of https://github.com/stella-emu/stella.git
Added 'Note' textwidget to the launcher window. It's not yet active, but
eventually it will show any associated notes for the currently selected ROM (like StellaX frontend). Resized the launcher window to a more reasonable size of 320x240, instead of 400x300. All the extra space was just wasted. Maybe sometime in the future I'll make the window look more 'Atari like', with graphics, etc. For now, just a list of game names will do. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@416 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
7deea3a6a6
commit
011588bbb1
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: Launcher.hxx,v 1.2 2005-05-06 22:50:15 stephena Exp $
|
||||
// $Id: Launcher.hxx,v 1.3 2005-05-10 01:12:59 stephena Exp $
|
||||
//============================================================================
|
||||
|
||||
#ifndef LAUNCHER_HXX
|
||||
|
@ -24,15 +24,15 @@ class OSystem;
|
|||
#include "DialogContainer.hxx"
|
||||
|
||||
enum {
|
||||
kLauncherWidth = 400,
|
||||
kLauncherHeight = 300
|
||||
kLauncherWidth = 320,
|
||||
kLauncherHeight = 240
|
||||
};
|
||||
|
||||
/**
|
||||
The base dialog for the ROM launcher in Stella.
|
||||
|
||||
@author Stephen Anthony
|
||||
@version $Id: Launcher.hxx,v 1.2 2005-05-06 22:50:15 stephena Exp $
|
||||
@version $Id: Launcher.hxx,v 1.3 2005-05-10 01:12:59 stephena Exp $
|
||||
*/
|
||||
class Launcher : public DialogContainer
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: LauncherDialog.cxx,v 1.4 2005-05-09 18:58:19 stephena Exp $
|
||||
// $Id: LauncherDialog.cxx,v 1.5 2005-05-10 01:12:59 stephena Exp $
|
||||
//
|
||||
// Based on code from ScummVM - Scumm Interpreter
|
||||
// Copyright (C) 2002-2004 The ScummVM project
|
||||
|
@ -75,10 +75,14 @@ LauncherDialog::LauncherDialog(OSystem* osystem, uInt16 x, uInt16 y,
|
|||
xpos += space + width;
|
||||
|
||||
// Add list with game titles
|
||||
myList = new ListWidget(this, 10, 24, _w - 20, _h - 24 - 26 - 10);
|
||||
myList = new ListWidget(this, 10, 24, _w - 20, _h - 24 - 26 - 10 - 10);
|
||||
myList->setEditable(false);
|
||||
myList->setNumberingMode(kListNumberingOff);
|
||||
|
||||
// Add note textwidget to show any notes for the currently selected ROM
|
||||
myNote = new StaticTextWidget(this, 20, _h - 43, w - 20, 16,
|
||||
"Note: ", kTextAlignLeft);
|
||||
|
||||
// Restore last selection
|
||||
/*
|
||||
string last = ConfMan.get(String("lastselectedgame"), ConfigManager::kApplicationDomain);
|
||||
|
@ -344,7 +348,7 @@ void LauncherDialog::handleCommand(CommandSender* sender, uInt32 cmd, uInt32 dat
|
|||
break;
|
||||
|
||||
case kListSelectionChangedCmd:
|
||||
updateButtons();
|
||||
cerr << "change note\n";
|
||||
break;
|
||||
|
||||
case kQuitCmd:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: LauncherDialog.hxx,v 1.1 2005-05-06 18:39:00 stephena Exp $
|
||||
// $Id: LauncherDialog.hxx,v 1.2 2005-05-10 01:12:59 stephena Exp $
|
||||
//
|
||||
// Based on code from ScummVM - Scumm Interpreter
|
||||
// Copyright (C) 2002-2004 The ScummVM project
|
||||
|
@ -25,8 +25,8 @@
|
|||
class CommandSender;
|
||||
class ButtonWidget;
|
||||
class StaticTextWidget;
|
||||
class BrowserDialog;
|
||||
class ListWidget;
|
||||
class BrowserDialog;
|
||||
|
||||
#include "Dialog.hxx"
|
||||
#include "Launcher.hxx"
|
||||
|
@ -55,6 +55,7 @@ class LauncherDialog : public Dialog
|
|||
protected:
|
||||
ListWidget* myList;
|
||||
BrowserDialog* myBrowser;
|
||||
StaticTextWidget* myNote;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue