Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (42 sloc) 1.485 kb
dec234c @fingolfin factored out ChooserDialog into it's own header/source file, and made…
fingolfin authored
1 /* ScummVM - Scumm Interpreter
47280d9 @fingolfin Updated copyright
fingolfin authored
2 * Copyright (C) 2002-2005 The ScummVM project
dec234c @fingolfin factored out ChooserDialog into it's own header/source file, and made…
fingolfin authored
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
b36677a @sev- Update FSF address. Eek. Actually that took place on May 1, 2005
sev- authored
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
dec234c @fingolfin factored out ChooserDialog into it's own header/source file, and made…
fingolfin authored
17 *
18 * $Header$
19 */
20
21 #ifndef CHOOSER_DIALOG_H
22 #define CHOOSER_DIALOG_H
23
24 #include "common/str.h"
3f14767 @fingolfin Make ChooserDialog height & button label customizable; make its ListW…
fingolfin authored
25 #include "gui/dialog.h"
dec234c @fingolfin factored out ChooserDialog into it's own header/source file, and made…
fingolfin authored
26
22c22d1 @fingolfin added namespace GUI
fingolfin authored
27 namespace GUI {
28
dec234c @fingolfin factored out ChooserDialog into it's own header/source file, and made…
fingolfin authored
29 class ButtonWidget;
30 class ListWidget;
31
32 /*
33 * A dialog that allows the user to choose between a selection of items
34 */
35
36 class ChooserDialog : public Dialog {
0e645f8 @fingolfin renamed namespace ScummVM to Common
fingolfin authored
37 typedef Common::String String;
38 typedef Common::StringList StringList;
dec234c @fingolfin factored out ChooserDialog into it's own header/source file, and made…
fingolfin authored
39 protected:
40 ListWidget *_list;
41 ButtonWidget *_chooseButton;
3f14767 @fingolfin Make ChooserDialog height & button label customizable; make its ListW…
fingolfin authored
42
43 public:
54aa333 @fingolfin reuse SaveLoadChooser in main dialog -> this means the SaveLoadChoose…
fingolfin authored
44 ChooserDialog(const String &title, const String &buttonLabel = "Choose", int height = 140);
45
46 void setList(const StringList& list);
3f14767 @fingolfin Make ChooserDialog height & button label customizable; make its ListW…
fingolfin authored
47
48 virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
dec234c @fingolfin factored out ChooserDialog into it's own header/source file, and made…
fingolfin authored
49 };
50
22c22d1 @fingolfin added namespace GUI
fingolfin authored
51 } // End of namespace GUI
52
dec234c @fingolfin factored out ChooserDialog into it's own header/source file, and made…
fingolfin authored
53 #endif
Something went wrong with that request. Please try again.