The Battle for Wesnoth  1.15.2+dev
editor.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2018 by Tomasz Sniatowski <kailoran@gmail.com>
3  Part of the Battle for Wesnoth Project https://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 #pragma once
16 
17 #include <string>
18 #include <vector>
19 
20 namespace preferences {
21 
22 namespace editor {
23 
29  };
30 
32  void set_auto_update_transitions(int value);
33 
34  //std::vector<std::string>* get_editor_history();
35 
36  std::string default_dir();
37 
38  bool draw_terrain_codes();
39  void set_draw_terrain_codes(bool value);
40 
41  bool draw_hex_coordinates();
42  void set_draw_hex_coordinates(bool value);
43 
44  bool draw_num_of_bitmaps();
45  void set_draw_num_of_bitmaps(bool value);
46 
47  /** Retrieves the list of recently opened files. */
48  std::vector<std::string> recent_files();
49  /** Adds an entry to the recent files list. */
50  void add_recent_files_entry(const std::string& path);
51  /** Removes a single entry from the recent files list. */
52  void remove_recent_files_entry(const std::string& path);
53 
54 } //end namespace editor
55 
56 } //end namespace preferences
int auto_update_transitions()
Definition: editor.cpp:24
std::vector< std::string > recent_files()
Retrieves the list of recently opened files.
Definition: editor.cpp:118
bool draw_num_of_bitmaps()
Definition: editor.cpp:52
bool draw_terrain_codes()
Definition: editor.cpp:36
std::string default_dir()
Definition: editor.cpp:32
void set_auto_update_transitions(int value)
Definition: editor.cpp:28
std::string path
Definition: game_config.cpp:39
Modify, read and display user preferences.
bool draw_hex_coordinates()
Definition: editor.cpp:44
Manage the empty-palette in the editor.
Definition: action.cpp:29
void remove_recent_files_entry(const std::string &path)
Removes a single entry from the recent files list.
Definition: editor.cpp:141
void set_draw_terrain_codes(bool value)
Definition: editor.cpp:40
void set_draw_num_of_bitmaps(bool value)
Definition: editor.cpp:56
void set_draw_hex_coordinates(bool value)
Definition: editor.cpp:48
void add_recent_files_entry(const std::string &path)
Adds an entry to the recent files list.
Definition: editor.cpp:123