chiark / gitweb /
Merge branch 'arkkra' into shiny
[mup] / mup / mupmate / Preferences.H
CommitLineData
69695f33
MW
1/* Copyright (c) 2006 by Arkkra Enterprises */
2/* All rights reserved */
3
4#ifndef _PREFERENCES_H_
5#define _PREFERENCES_H_
6
7// This file contains things related to user configuration options
8// and preferences.
9
10#include <FL/Fl_Preferences.H>
11
12// Names and default values for things stored in preferences file
13extern const char * const Mup_program_location;
14extern const char * const Mup_documentation_location;
15extern const char * const Music_files_location;
16extern const char * const MUPPATH_location;
17extern const char * const Viewer_location;
18extern const char * const MIDI_player_location;
19extern const char * const Editor_font_preference;
20extern const char * const Editor_size_preference;
21extern const char * const Auto_display_preference;
22extern const char * const Auto_save_preference;
23extern const char * const Tooltips_delay_preference;
24extern const char * const Showed_startup_hints;
25
26extern const char * const Default_Mup_program_location;
27extern const char * const Default_Mup_documentation_location;
28extern const char * const Default_music_files_location;
29extern const char * const Default_MUPPATH_location;
30extern const char * const Default_viewer_location;
31extern const char * const Default_MIDI_player_location;
32extern const char * const Default_editor_font;
33extern const char * const Default_editor_size;
34extern const int Default_auto_display;
35extern const int Default_auto_save;
36extern const double Default_tooltips_delay;
37extern const int Default_startup_hints_flag;
38
39// This lets us access user preferences that persist across sessions
40extern Fl_Preferences * Preferences_p;
41
42// Minimum and maximum font size we use
43extern const unsigned char Min_size;
44extern const unsigned char Max_size;
45
46// Default and minimum sizes of Main and Help browser windows
47extern const int Min_width;
48extern const int Default_width;
49extern const int Min_height;
50extern const int Default_height;
51
52// The directory containing User's Guide, relative to top of
53// documentation tree
54extern const char * uguide_directory;
55
56// Given a path to Mup's documentation directory,
57// add on the name of the User's Guide index file.
58// Return that in a static area.
59extern const char * users_guide_index_file(const char * const doc_dir);
60
61// This tries to find reasonable default applications for viewing and playing
62extern void deduce_helper_locations(void);
63
64#endif