From 20a85d76d94c9c5c7fbe198c3d0e1fbee97a485f Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 9 Nov 2017 01:56:20 +0300 Subject: Move files to subdirectories (#6599) * Move files around --- src/guiTable.h | 256 --------------------------------------------------------- 1 file changed, 256 deletions(-) delete mode 100644 src/guiTable.h (limited to 'src/guiTable.h') diff --git a/src/guiTable.h b/src/guiTable.h deleted file mode 100644 index f9337ff6d..000000000 --- a/src/guiTable.h +++ /dev/null @@ -1,256 +0,0 @@ -/* -Minetest -Copyright (C) 2013 celeron55, Perttu Ahola - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -*/ - -#pragma once - -#include -#include -#include -#include -#include - -#include "irrlichttypes_extrabloated.h" - -class ISimpleTextureSource; - -/* - A table GUI element for GUIFormSpecMenu. - - Sends a EGET_TABLE_CHANGED event to the parent when - an item is selected or double-clicked. - Call checkEvent() to get info. - - Credits: The interface and implementation of this class are (very) - loosely based on the Irrlicht classes CGUITable and CGUIListBox. - CGUITable and CGUIListBox are licensed under the Irrlicht license; - they are Copyright (C) 2002-2012 Nikolaus Gebhardt -*/ -class GUITable : public gui::IGUIElement -{ -public: - /* - Stores dynamic data that should be preserved - when updating a formspec - */ - struct DynamicData - { - s32 selected = 0; - s32 scrollpos = 0; - s32 keynav_time = 0; - core::stringw keynav_buffer; - std::set opened_trees; - }; - - /* - An option of the form = - */ - struct Option - { - std::string name; - std::string value; - - Option(const std::string &name_, const std::string &value_) : - name(name_), - value(value_) - {} - }; - - /* - A list of options that concern the entire table - */ - typedef std::vector