3
* Copyright (C) 2010 Aethyra Development Team
5
* This file is part of Aethyra.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
#ifndef SELECTION_DIALOG_H
23
#define SELECTION_DIALOG_H
27
#include <guichan/actionlistener.hpp>
29
#include "../widgets/window.h"
39
class SelectionDialog : public Window, public gcn::ActionListener
47
SelectionDialog(const std::string &title, const std::string &msg,
48
Window *parent = NULL, bool modal = false);
52
unsigned int getNumRows();
55
* Called when receiving actions from the widgets.
57
void action(const gcn::ActionEvent &event);
64
* Adds an option to select from.
66
void addOption(std::string key, std::string label);
69
gcn::Button *mOkButton;
70
std::vector<RadioButton*> mRadioButtons;
71
std::string mDialogKey;
72
static int mInstances;