00001 /* $Id: wml_separators.hpp 23842 2008-02-16 08:47:16Z mordante $ */ 00002 /* 00003 Copyright (C) 2003 - 2008 by David White <dave@whitevine.net> 00004 Part of the Battle for Wesnoth Project http://www.wesnoth.org/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License version 2 00008 or at your option any later version. 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY. 00011 00012 See the COPYING file for more details. 00013 */ 00014 00015 #ifndef WIDGET_DEFINES_HPP_INCLUDED 00016 #define WIDGET_DEFINES_HPP_INCLUDED 00017 00018 char const HELP_STRING_SEPARATOR = '|', DEFAULT_ITEM = '*', COLUMN_SEPARATOR = '=', 00019 IMAGE_PREFIX = '&', IMG_TEXT_SEPARATOR = 1, HEADING_PREFIX = 2; 00020 00021 inline bool is_wml_separator(char c) 00022 { 00023 switch(c) 00024 { 00025 case HELP_STRING_SEPARATOR: 00026 case DEFAULT_ITEM: 00027 case COLUMN_SEPARATOR: 00028 case IMAGE_PREFIX: 00029 case IMG_TEXT_SEPARATOR: 00030 case HEADING_PREFIX: 00031 return true; 00032 default: 00033 return false; 00034 } 00035 } 00036 00037 #endif
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |