00001 /* $Id: wml_separators.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2003 - 2012 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 as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY. 00012 00013 See the COPYING file for more details. 00014 */ 00015 00016 #ifndef WIDGET_DEFINES_HPP_INCLUDED 00017 #define WIDGET_DEFINES_HPP_INCLUDED 00018 00019 char const HELP_STRING_SEPARATOR = '|', DEFAULT_ITEM = '*', COLUMN_SEPARATOR = '=', 00020 IMAGE_PREFIX = '&', IMG_TEXT_SEPARATOR = 1, HEADING_PREFIX = 2; 00021 00022 inline bool is_wml_separator(char c) 00023 { 00024 switch(c) 00025 { 00026 case HELP_STRING_SEPARATOR: 00027 case DEFAULT_ITEM: 00028 case COLUMN_SEPARATOR: 00029 case IMAGE_PREFIX: 00030 case IMG_TEXT_SEPARATOR: 00031 case HEADING_PREFIX: 00032 return true; 00033 default: 00034 return false; 00035 } 00036 } 00037 00038 #endif
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:15 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |