Mercurial > retraceit
diff src/constants.h @ 44:73e6b6b12412
(issue 1,2) Make the column used for the Timestamp value configurable
If the column contains a number it is interpreted as seconds since
epoch. Otherwise its a verbatim copy of the column string.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 06 May 2015 19:45:26 +0200 |
parents | ae8e859de68e |
children | c4a5ef6db895 |
line wrap: on
line diff
--- a/src/constants.h Wed May 06 18:20:13 2015 +0200 +++ b/src/constants.h Wed May 06 19:45:26 2015 +0200 @@ -84,9 +84,15 @@ #define SORT_ORDER_VALUE true /**@def The column to use (counted from 0 and including index nr) for the filename */ -#define FILENAME_COLUMN 1 +#define FILENAME_COLUMN_IDX 1 -/**@def The column to use as the date */ -#define DATE_COLUMN 2 +/**@def The column to use as the timestamp in the player window */ +#define DATE_COLUMN_KEY "DisplayDate" + +/**@def The default value for the timestamp column */ +#define DATE_COLUMN_DEFAULT "Date" + +/**@def The fallback value in case the DisplayDate column can't be found */ +#define DATE_COLUMN_FALLBACK_IDX 2 #endif // CONSTANTS_H