1
//============================================================================
5
// SS tttttt eeee ll ll aaaa
6
// SSSS tt ee ee ll ll aa
7
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emulator"
8
// SS SS tt ee ll ll aa aa
9
// SSSS ttt eeeee llll llll aaaaa
11
// Copyright (c) 1995-2010 by Bradford W. Mott, Stephen Anthony
12
// and the Stella Team
14
// See the file "License.txt" for information on usage and redistribution of
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
17
// $Id: LauncherFilterDialog.hxx 2001 2010-04-10 21:37:23Z stephena $
19
// Based on code from ScummVM - Scumm Interpreter
20
// Copyright (C) 2002-2004 The ScummVM project
21
//============================================================================
23
#ifndef LAUNCHER_FILTER_DIALOG_HXX
24
#define LAUNCHER_FILTER_DIALOG_HXX
27
class DialogContainer;
31
#include "OSystem.hxx"
33
#include "Settings.hxx"
34
#include "StringList.hxx"
37
class LauncherFilterDialog : public Dialog, public CommandSender
40
LauncherFilterDialog(GuiObject* boss, const GUI::Font& font);
41
virtual ~LauncherFilterDialog();
43
/** Add valid extensions from 'exts' to the given StringList */
44
static void parseExts(StringList& list, const string& exts);
47
Is this a valid ROM filename (does it have a valid extension from
48
those specified in the list of extensions).
50
@param name Filename of potential ROM file
51
@param exts The list of extensions to consult
53
static bool isValidRomName(const string& name, const StringList& exts);
56
Is this a valid ROM filename (does it have a valid extension?).
58
@param name Filename of potential ROM file
59
@param ext The extension extracted from the given file
61
static bool isValidRomName(const string& name, string& ext);
68
void handleFileTypeChange(const string& type);
69
virtual void handleCommand(CommandSender* sender, int cmd, int data, int id);
72
PopUpWidget* myFileType;
73
CheckboxWidget* myRomType[5];
76
kFileTypeChanged = 'LFDc'
79
// Holds static strings representing ROM types
80
static const char* ourRomTypes[2][5];