The Battle for Wesnoth  1.17.0-dev
editor.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2021
3  by Tomasz Sniatowski <kailoran@gmail.com>
4  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY.
12 
13  See the COPYING file for more details.
14 */
15 
16 #pragma once
17 
18 #include <string>
19 #include <vector>
20 
21 namespace preferences {
22 
23 namespace editor {
24 
30  };
31 
33  void set_auto_update_transitions(int value);
34 
35  //std::vector<std::string>* get_editor_history();
36 
37  std::string default_dir();
38 
39  bool draw_terrain_codes();
40  void set_draw_terrain_codes(bool value);
41 
42  bool draw_hex_coordinates();
43  void set_draw_hex_coordinates(bool value);
44 
45  bool draw_num_of_bitmaps();
46  void set_draw_num_of_bitmaps(bool value);
47 
48  /** Retrieves the list of recently opened files. */
49  std::vector<std::string> recent_files();
50  /** Adds an entry to the recent files list. */
51  void add_recent_files_entry(const std::string& path);
52  /** Removes a single entry from the recent files list. */
53  void remove_recent_files_entry(const std::string& path);
54 
55 } //end namespace editor
56 
57 } //end namespace preferences
int auto_update_transitions()
Definition: editor.cpp:25
std::vector< std::string > recent_files()
Retrieves the list of recently opened files.
Definition: editor.cpp:119
bool draw_num_of_bitmaps()
Definition: editor.cpp:53
bool draw_terrain_codes()
Definition: editor.cpp:37
std::string default_dir()
Definition: editor.cpp:33
void set_auto_update_transitions(int value)
Definition: editor.cpp:29
std::string path
Definition: game_config.cpp:39
Modify, read and display user preferences.
bool draw_hex_coordinates()
Definition: editor.cpp:45
Manage the empty-palette in the editor.
Definition: action.cpp:30
void remove_recent_files_entry(const std::string &path)
Removes a single entry from the recent files list.
Definition: editor.cpp:142
void set_draw_terrain_codes(bool value)
Definition: editor.cpp:41
void set_draw_num_of_bitmaps(bool value)
Definition: editor.cpp:57
void set_draw_hex_coordinates(bool value)
Definition: editor.cpp:49
void add_recent_files_entry(const std::string &path)
Adds an entry to the recent files list.
Definition: editor.cpp:124