summaryrefslogtreecommitdiff
path: root/src/core/params.h
blob: 281e617021352846f31d14e9a9bc29a8ec419173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72

/* Chrysalide - Outil d'analyse de fichiers binaires
 * params.h - prototypes pour les éléments de la configuration principale
 *
 * Copyright (C) 2009-2012 Cyrille Bagard
 *
 *  This file is part of Chrysalide.
 *
 *  Chrysalide is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Chrysalide is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 */


#ifndef _CORE_PARAMS_H
#define _CORE_PARAMS_H


#include "../glibext/configuration.h"



/**
 * Clefs de paramètres de configuration principale.
 */

#define MPK_AUTHOR_NAME         "cdb.default.author"
#define MPK_REMOTE_HOST         "cdb.default.network.remote.server"
#define MPK_REMOTE_PORT         "cdb.default.network.remote.port"
#define MPK_LOCAL_HOST          "cdb.network.local.server"
#define MPK_LOCAL_PORT          "cdb.network.local.port"
#define MPK_SERVER_BACKLOG      "cdb.network.server.backlog"
#define MPK_FORMAT_NO_NAME      "format.symbols.use_phy_instead_of_virt"
#define MPK_TITLE_BAR           "gui.editor.hide_titlebar"
#define MPK_LAST_PROJECT        "gui.editor.last_project"
#define MPK_MAXIMIZED           "gui.editor.start_maximized"
#define MPK_ELLIPSIS_HEADER     "gui.editor.panels.ellipsis_header"
#define MPK_ELLIPSIS_TAB        "gui.editor.panels.ellipsis_tab"
#define MPK_DISPLAY_ON_SEL      "gui.editor.panels.display_on_selection"
#define MPK_WELCOME_STARTUP     "gui.editor.panels.welcome.show_at_startup"
#define MPK_WELCOME_CHECK       "gui.editor.panels.welcome.check_version"
#define MPK_SELECTION_LINE      "gui.editor.views.selection_line"
#define MPK_TOOLTIP_SIZE        "gui.editor.views.tooltip_max_size"
#define MPK_KEYBINDINGS_EDIT    "gui.key_bindings.global.edit"
#define MPK_AUTO_SAVE           "project.autosave"



/* Procède au chargement de la configuration principale. */
bool load_main_config_parameters(void);

/* Procède au déchargement de la configuration principale. */
void unload_main_config_parameters(void);

#define set_main_configuration(cfg) _get_main_configuration(cfg)
#define get_main_configuration() _get_main_configuration(NULL)

/* Fournit un lien vers la configuration principale. */
GGenConfig *_get_main_configuration(GGenConfig *);



#endif  /* _CORE_PARAMS_H */