Mercurial > clickerconvert
diff src/constants.h @ 41:f6c53e896008 0.9
Merge
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 15 Apr 2016 15:34:51 +0200 |
parents | 5354cbda7188 |
children | aa47b8e4f807 |
line wrap: on
line diff
--- a/src/constants.h Fri Apr 15 15:25:11 2016 +0200 +++ b/src/constants.h Fri Apr 15 15:34:51 2016 +0200 @@ -63,7 +63,11 @@ /** * @brief The pattern used to match a multiple choice answer. */ -#define CHOICE_PATTERN "\"(.*)\",(\\d+),(\\d+\\.\\d+)" +#define CHOICE_PATTERN "\"(.*)\",(?<num>\\d+)?,(?<percent>\\d+\\.?\\d+)?" + +/** + * @brief The pattern used to match an unfilled choice answer. */ +#define CHOICE_UNFILLED_PATTERN "\"([^\"]*)\"," /** * @brief The pattern used to match a free text answer. */ @@ -79,8 +83,12 @@ #define DEFAULT_TITLE QStringLiteral("Clicker-Fragen und Antworten") -#define HTML_WIDTH 960 - #define BAR_COLOR "#ff9933" +#define IMAGE_WIDTH 200 + +#define HTML_COL1_PERCENT 35 +#define HTML_COL2_PERCENT 30 +#define HTML_COL3_PERCENT 35 + #endif // CONSTANTS_H