annotate src/constants.h @ 49:60cee4bdee5b

Add Readme to the icon to clarify license of the original artwork.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 07 May 2015 10:23:19 +0200
parents c4a5ef6db895
children 098a10fc2e83
rev   line source
0
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
1 #ifndef CONSTANTS_H
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
2 #define CONSTANTS_H
25
64a51a42c01f Assign copyright correctly
Andre Heinecke <andre.heinecke@intevation.de>
parents: 11
diff changeset
3 /* Copyright (C) 2015 by ETH Zürich
64a51a42c01f Assign copyright correctly
Andre Heinecke <andre.heinecke@intevation.de>
parents: 11
diff changeset
4 * Software engineering by Intevation GmbH
0
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
5 *
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
6 * This file is Free Software under the GNU GPL (v>=2)
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
7 * and comes with ABSOLUTELY NO WARRANTY!
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
8 * See LICENSE.txt for details.
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
9 */
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
10
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
11 /** @file Common definitions for this project.
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
12 *
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
13 * This file can be included to pull in common
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
14 * definitions in the application. */
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
15
41
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
16 /**@def The version of the software package.
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
17 *
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
18 * Usually defined as Build parameter.
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
19 */
0
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
20 #ifndef VERSION
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
21 #define VERSION "0.0.1"
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
22 #endif
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
23
41
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
24 /**@def The user visible application name.
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
25 *
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
26 * Usually defined as Build parameter.
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
27 **/
0
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
28 #ifndef APPNAME
41
ae8e859de68e Clarify some comments about constants
Andre Heinecke <andre.heinecke@intevation.de>
parents: 37
diff changeset
29 #define APPNAME "unknown"
0
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
30 #endif
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
31
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
32 /**@def Short command line description. */
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
33 #define DESCRIPTION "A tool to replay recorded user sessions."
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
34
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
35 /**@def Short copyright notice to show users. */
28
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
36 #define COPYRIGHT "Copyright (C) 2015 ETH Zürich \n\n" \
0
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
37 "This file is Free Software under the GNU GPL (v>=2)\n" \
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
38 "and comes with ABSOLUTELY NO WARRANTY!\n"
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
39
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
40 /**@def the config key for the last selected root folder. */
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
41 #define ROOT_FOLDER_KEY "RootFolder"
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
42
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
43 /**@def the config key for the root folder info pattern. */
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
44 #define ROOT_FOLDER_PATTERN_KEY "RootFolderPattern"
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
45
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
46 /**@def the default value for the root folder pattern */
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
47 #define DEFAULT_ROOT_PATTERN "Datum_Fachnummr_Batch-Nr."
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
48
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
49 /**@def the config key for the last selected subfolder. */
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
50 #define SUB_FOLDER_KEY "SubFolder"
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
51
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
52 /**@def the config key for the sub folder info pattern. */
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
53 #define SUB_FOLDER_PATTERN_KEY "SubFolderPattern"
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
54
11
2881cd0d9da7 Update subfolder default pattern for new testdata
Andre Heinecke <andre.heinecke@intevation.de>
parents: 9
diff changeset
55 /**@def the default value for the sub folder pattern */
2881cd0d9da7 Update subfolder default pattern for new testdata
Andre Heinecke <andre.heinecke@intevation.de>
parents: 9
diff changeset
56 //#define SUB_FOLDER_PATTERN "IP-Addr_Nethz-Login"
2881cd0d9da7 Update subfolder default pattern for new testdata
Andre Heinecke <andre.heinecke@intevation.de>
parents: 9
diff changeset
57 #define SUB_FOLDER_PATTERN "IP-Addr"
0
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
58
3
248d5d1cdb38 Add functionalty to control buttons and make picture resizable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 0
diff changeset
59 /**@def how to format a timestamp */
248d5d1cdb38 Add functionalty to control buttons and make picture resizable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 0
diff changeset
60 #define LONG_DATE_FORMAT "dd.MM.yyyy, hh:mm:ss.zzz"
248d5d1cdb38 Add functionalty to control buttons and make picture resizable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 0
diff changeset
61
248d5d1cdb38 Add functionalty to control buttons and make picture resizable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 0
diff changeset
62 /**@def the config key for the replay speed */
5
107e435cb569 Enable speed slider in pngplayer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 3
diff changeset
63 #define REPLAY_SPEED_KEY "Speed"
3
248d5d1cdb38 Add functionalty to control buttons and make picture resizable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 0
diff changeset
64
34
40a683d1a318 (issue15) Change picture speed setting to seconds and default to 1s
Andre Heinecke <andre.heinecke@intevation.de>
parents: 31
diff changeset
65 /**@def the default value for the replay speed in seconds */
40a683d1a318 (issue15) Change picture speed setting to seconds and default to 1s
Andre Heinecke <andre.heinecke@intevation.de>
parents: 31
diff changeset
66 #define REPLAY_SPEED_DEFAULT 1.
5
107e435cb569 Enable speed slider in pngplayer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 3
diff changeset
67
107e435cb569 Enable speed slider in pngplayer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 3
diff changeset
68 /**@def the value for a step in the speed slider */
107e435cb569 Enable speed slider in pngplayer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 3
diff changeset
69 #define REPLAY_SPEED_STEP_MS 500
3
248d5d1cdb38 Add functionalty to control buttons and make picture resizable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 0
diff changeset
70
9
e3c8f61e45a9 Implement folderselection dialogs
Andre Heinecke <andre.heinecke@intevation.de>
parents: 5
diff changeset
71 /**@def The seperator used in the patterns. */
e3c8f61e45a9 Implement folderselection dialogs
Andre Heinecke <andre.heinecke@intevation.de>
parents: 5
diff changeset
72 #define PATTERN_SEPERATOR "_"
e3c8f61e45a9 Implement folderselection dialogs
Andre Heinecke <andre.heinecke@intevation.de>
parents: 5
diff changeset
73
28
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
74 /**@def The default sort column */
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
75 #define SORT_COLUMN_KEY "Sort"
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
76
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
77 /**@def The default value for the sort column */
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
78 #define SORT_COLUMN_DEFAULT "Date"
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
79
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
80 /**@def The default sort order (boolean) */
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
81 #define SORT_ORDER_KEY "SortAscending"
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
82
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
83 /**@def The default sort order value. */
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
84 #define SORT_ORDER_VALUE true
4e16fbd10945 (issue3-5) Make the default sort order configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 25
diff changeset
85
37
0c05958d254c (issue 13, 6) Add constant index number column to data and view
Andre Heinecke <andre.heinecke@intevation.de>
parents: 34
diff changeset
86 /**@def The column to use (counted from 0 and including index nr) for the filename */
44
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
87 #define FILENAME_COLUMN_IDX 1
37
0c05958d254c (issue 13, 6) Add constant index number column to data and view
Andre Heinecke <andre.heinecke@intevation.de>
parents: 34
diff changeset
88
44
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
89 /**@def The column to use as the timestamp in the player window */
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
90 #define DATE_COLUMN_KEY "DisplayDate"
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
91
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
92 /**@def The default value for the timestamp column */
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
93 #define DATE_COLUMN_DEFAULT "Date"
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
94
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
95 /**@def The fallback value in case the DisplayDate column can't be found */
73e6b6b12412 (issue 1,2) Make the column used for the Timestamp value configurable
Andre Heinecke <andre.heinecke@intevation.de>
parents: 41
diff changeset
96 #define DATE_COLUMN_FALLBACK_IDX 2
37
0c05958d254c (issue 13, 6) Add constant index number column to data and view
Andre Heinecke <andre.heinecke@intevation.de>
parents: 34
diff changeset
97
47
c4a5ef6db895 Add definitions used for the detachable image configuration.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 44
diff changeset
98 /**@def Setting to control wether or not the image can be detached. */
c4a5ef6db895 Add definitions used for the detachable image configuration.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 44
diff changeset
99 #define DETACHABLE_IMAGE_KEY "DetachableImage"
c4a5ef6db895 Add definitions used for the detachable image configuration.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 44
diff changeset
100
c4a5ef6db895 Add definitions used for the detachable image configuration.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 44
diff changeset
101 /**@def Default value for the detachable image. */
c4a5ef6db895 Add definitions used for the detachable image configuration.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 44
diff changeset
102 #define DETACHABLE_IMAGE_DEFAULT false
c4a5ef6db895 Add definitions used for the detachable image configuration.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 44
diff changeset
103
0
147b08bc7d64 Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
104 #endif // CONSTANTS_H
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)