00001 /* $Id: editor_preferences.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2009 - 2012 by Tomasz Sniatowski <kailoran@gmail.com> 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 EDITOR_PREFERENCES_HPP_INCLUDED 00017 #define EDITOR_PREFERENCES_HPP_INCLUDED 00018 00019 #include <string> 00020 00021 namespace preferences { 00022 00023 namespace editor { 00024 00025 namespace TransitionUpdateMode { 00026 const int off = 0; 00027 const int on = 1; 00028 const int partial = 2; 00029 const int count = 3; 00030 } 00031 00032 int auto_update_transitions(); 00033 void set_auto_update_transitions(int value); 00034 00035 bool use_mdi(); 00036 void set_use_mdi(bool value); 00037 00038 std::string default_dir(); 00039 00040 bool draw_terrain_codes(); 00041 void set_draw_terrain_codes(bool value); 00042 00043 bool draw_hex_coordinates(); 00044 void set_draw_hex_coordinates(bool value); 00045 00046 00047 /** Set editor red tint level. */ 00048 void set_tod_r(int value); 00049 /** Set editor green tint level. */ 00050 void set_tod_g(int value); 00051 /** Set editor blue tint level. */ 00052 void set_tod_b(int value); 00053 00054 /** Get editor red tint level. */ 00055 int tod_r(); 00056 /** Get editor green tint level. */ 00057 int tod_g(); 00058 /** Get editor blue tint level. */ 00059 int tod_b(); 00060 00061 } //end namespace editor 00062 00063 } //end namespace preferences 00064 00065 00066 #endif
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:02:34 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |