// $Id: level_properties.hpp 3255 2007-09-28 21:52:01Z grumbel $ // // Pingus - A free Lemmings clone // Copyright (C) 2007 Ingo Ruhnke // // 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef HEADER_LEVEL_PROPERTIES_HPP #define HEADER_LEVEL_PROPERTIES_HPP #include "gui/group_component.hpp" namespace Editor { class EditorScreen; class EditorLevel; class Inputbox; /** */ class LevelProperties : public GUI::GroupComponent { private: EditorScreen* editor; EditorLevel* level; Inputbox* author; Inputbox* levelname; Inputbox* description; Inputbox* number_of_pingus; Inputbox* number_to_save; Inputbox* time; Inputbox* width; Inputbox* height; Inputbox* difficulty; Inputbox* comment; Inputbox* music; public: LevelProperties(EditorScreen* editor, const Rect& rect); ~LevelProperties(); void draw_background (DrawingContext& gc); void update(float delta); void set_level(EditorLevel* level); void on_author_change(const std::string& str); void on_levelname_change(const std::string& str); void on_description_change(const std::string& str); void on_number_to_save_change(const std::string& str); void on_number_of_pingus_change(const std::string& str); void on_time_change(const std::string& str); void on_width_change(const std::string& str); void on_height_change(const std::string& str); void on_difficulty_change(const std::string& str); void on_comment_change(const std::string& str); void on_music_change(const std::string& str); void update_layout(); private: LevelProperties (const LevelProperties&); LevelProperties& operator= (const LevelProperties&); }; } // namespace Editor #endif /* EOF */