The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
editor_preferences.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2016 by Tomasz Sniatowski <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef EDITOR_PREFERENCES_HPP_INCLUDED
16 #define EDITOR_PREFERENCES_HPP_INCLUDED
17 
18 #include <string>
19 #include <vector>
20 
21 namespace preferences {
22 
23 namespace editor {
24 
25  namespace TransitionUpdateMode {
26  const int off = 0;
27  const int on = 1;
28  const int partial = 2;
29  const int count = 3;
30  }
31 
34 
35  //std::vector<std::string>* get_editor_history();
36 
38 
39  bool draw_terrain_codes();
40  void set_draw_terrain_codes(bool value);
41 
42  bool draw_hex_coordinates();
44 
45  /** Retrieves the list of recently opened files. */
46  std::vector<std::string> recent_files();
47  /** Adds an entry to the recent files list. */
49  /** Removes a single entry from the recent files list. */
51 
52 } //end namespace editor
53 
54 } //end namespace preferences
55 
56 
57 #endif
std::vector< std::string > recent_files()
Retrieves the list of recently opened files.
GLsizei const char ** path
Definition: glew.h:4654
GLsizei const GLfloat * value
Definition: glew.h:1817
void set_auto_update_transitions(int value)
Modify, read and display user preferences.
Manage the empty-palette in the editor.
Definition: action.cpp:28
GLuint GLuint GLsizei count
Definition: glew.h:1221
void remove_recent_files_entry(const std::string &path)
Removes a single entry from the recent files list.
void set_draw_terrain_codes(bool value)
void set_draw_hex_coordinates(bool value)
void add_recent_files_entry(const std::string &path)
Adds an entry to the recent files list.
GLsizei const GLcharARB ** string
Definition: glew.h:4503