/*
 * Copyright (C) 2002-2004, 2006-2007 by the Widelands Development Team
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#ifndef __S__EDITOR_TOOL_CHANGE_RESOURCES_OPTIONS_MENU
#define __S__EDITOR_TOOL_CHANGE_RESOURCES_OPTIONS_MENU

#include "editor_tool_options_menu.h"
#include "ui_button.h"
#include "ui_radiobutton.h"
#include "ui_textarea.h"

class Editor_Interactive;
class Editor_Increase_Resources_Tool;

struct Editor_Tool_Change_Resources_Options_Menu : public Editor_Tool_Options_Menu {
	Editor_Tool_Change_Resources_Options_Menu
		(Editor_Interactive             &,
		 Editor_Increase_Resources_Tool &,
		 UI::UniqueWindow::Registry     &);

private:
      void selected(void);
	enum Button {
		Change_By_Increase, Change_By_Decrease,
		Set_To_Increase,    Set_To_Decrease
	};
	void clicked_button(const Button);
      void update(void);
	UI::Textarea                     m_change_by_label;
	UI::IDButton<Editor_Tool_Change_Resources_Options_Menu, const Button>
		m_change_by_increase, m_change_by_decrease;
	UI::Textarea                     m_change_by_value;
	UI::Textarea                     m_set_to_label;
	UI::IDButton<Editor_Tool_Change_Resources_Options_Menu, const Button>
		m_set_to_increase,    m_set_to_decrease;
	UI::Textarea                     m_set_to_value;
	UI::Textarea                     m_cur_selection;
	UI::Radiogroup m_radiogroup;
	Editor_Increase_Resources_Tool & m_increase_tool;
};

#endif
