andre@0: #ifndef CONSTANTS_H andre@0: #define CONSTANTS_H andre@25: /* Copyright (C) 2015 by ETH Zürich andre@25: * Software engineering by Intevation GmbH andre@0: * andre@0: * This file is Free Software under the GNU GPL (v>=2) andre@0: * and comes with ABSOLUTELY NO WARRANTY! andre@0: * See LICENSE.txt for details. andre@0: */ andre@0: andre@66: /** @file constants.h andre@66: * @brief Common definitions for this project. andre@0: * andre@66: * @details This file can be included to pull in common andre@0: * definitions in the application. */ andre@0: andre@66: /** andre@66: * @brief The version of the software package. andre@41: * andre@41: * Usually defined as Build parameter. andre@41: */ andre@0: #ifndef VERSION andre@0: #define VERSION "0.0.1" andre@0: #endif andre@0: andre@66: /** andre@66: * @brief The user visible application name. andre@41: * andre@41: * Usually defined as Build parameter. andre@41: **/ andre@0: #ifndef APPNAME andre@41: #define APPNAME "unknown" andre@0: #endif andre@0: andre@66: /** andre@66: * @brief Short command line description. */ andre@0: #define DESCRIPTION "A tool to replay recorded user sessions." andre@0: andre@66: /** andre@66: * @brief Short copyright notice to show users. */ andre@28: #define COPYRIGHT "Copyright (C) 2015 ETH Zürich \n\n" \ andre@0: "This file is Free Software under the GNU GPL (v>=2)\n" \ andre@0: "and comes with ABSOLUTELY NO WARRANTY!\n" andre@0: andre@66: /** andre@66: * @brief the config key for the last selected root folder. */ andre@0: #define ROOT_FOLDER_KEY "RootFolder" andre@0: andre@66: /** andre@66: * @brief the config key for the root folder info pattern. */ andre@0: #define ROOT_FOLDER_PATTERN_KEY "RootFolderPattern" andre@0: andre@66: /** andre@66: * @brief the default value for the root folder pattern */ andre@85: #define DEFAULT_ROOT_PATTERN "Datum_LK-Nummer_Batch-Nr." andre@0: andre@66: /** andre@66: * @brief the config key for the last selected subfolder. */ andre@0: #define SUB_FOLDER_KEY "SubFolder" andre@0: andre@66: /** andre@66: * @brief the config key for the sub folder info pattern. */ andre@0: #define SUB_FOLDER_PATTERN_KEY "SubFolderPattern" andre@0: andre@66: /** andre@66: * @brief the default value for the sub folder pattern */ andre@11: //#define SUB_FOLDER_PATTERN "IP-Addr_Nethz-Login" andre@11: #define SUB_FOLDER_PATTERN "IP-Addr" andre@0: andre@66: /** andre@66: * @brief how to format a timestamp */ andre@3: #define LONG_DATE_FORMAT "dd.MM.yyyy, hh:mm:ss.zzz" andre@3: andre@66: /** andre@66: * @brief the config key for the replay speed */ andre@5: #define REPLAY_SPEED_KEY "Speed" andre@3: andre@66: /** andre@66: * @brief the default value for the replay speed in seconds */ andre@34: #define REPLAY_SPEED_DEFAULT 1. andre@5: andre@66: /** andre@66: * @brief the value for a step in the speed slider */ andre@5: #define REPLAY_SPEED_STEP_MS 500 andre@3: andre@66: /** andre@66: * @brief The seperator used in the patterns. */ andre@9: #define PATTERN_SEPERATOR "_" andre@9: andre@66: /** andre@66: * @brief The default sort column */ andre@28: #define SORT_COLUMN_KEY "Sort" andre@28: andre@66: /** andre@66: * @brief The default value for the sort column */ andre@28: #define SORT_COLUMN_DEFAULT "Date" andre@28: andre@66: /** andre@66: * @brief The default sort order (boolean) */ andre@28: #define SORT_ORDER_KEY "SortAscending" andre@28: andre@66: /** andre@66: * @brief The default sort order value. */ andre@28: #define SORT_ORDER_VALUE true andre@28: andre@66: /** andre@66: * @brief The column to use (counted from 0 and including index nr) for the filename */ andre@44: #define FILENAME_COLUMN_IDX 1 andre@37: andre@66: /** andre@66: * @brief The column to use as the timestamp in the player window */ andre@44: #define DATE_COLUMN_KEY "DisplayDate" andre@44: andre@66: /** andre@66: * @brief The default value for the timestamp column */ andre@44: #define DATE_COLUMN_DEFAULT "Date" andre@44: andre@66: /** andre@66: * @brief The fallback value in case the DisplayDate column can't be found */ andre@44: #define DATE_COLUMN_FALLBACK_IDX 2 andre@37: andre@66: /** andre@66: * @brief Setting to control wether or not the image can be detached. */ andre@47: #define DETACHABLE_IMAGE_KEY "DetachableImage" andre@47: andre@66: /** andre@66: * @brief Default value for the detachable image. */ andre@47: #define DETACHABLE_IMAGE_DEFAULT false andre@47: andre@81: /** andre@81: * @brief The configuration group for the tooltips. */ andre@81: #define TOOLTIP_CONFIG_GROUP "Tooltips" andre@81: andre@89: /** andre@89: * @brief The configuration group for hide settings */ andre@89: #define HIDE_CONFIG_GROUP "Hidden" andre@89: andre@0: #endif // CONSTANTS_H