aboutsummaryrefslogtreecommitdiff
path: root/lib/gtk-experiment-widgets/gtk-experiment-transcript-formats.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-06when parsing a format file, check whether each line could be read ↵Robin Haberkorn1-7/+20
completely, otherwise throw error * arbitrary limit (1024 bytes) per line - reading lines of arbritrary length is difficult and will be seldomly used * introduced is_newline() helper function
2012-08-06resolved pattern-length restriction bug by calculating the pattern+captures sizeRobin Haberkorn1-4/+24
* also made gtk_experiment_transcript_free_formats() an internal function * declare static functions in gtk-experiment-transcript-formats.c
2012-06-21fixed handling of regexp patterns at the end of "format" expressionsRobin Haberkorn1-26/+31
also required stripping trailing newlines when processing "format" files since "format" files only worked because the newline was part of the "format" expression and ignored
2012-06-17use more glib macros to improve portabilityRobin Haberkorn1-1/+1
2012-06-13implemented topdown (reverse) rendering of contributionsRobin Haberkorn1-0/+1
code has been refactored allowing for greater flexibility in rendering
2012-06-11include filename in GError describing an error while opening the fileRobin Haberkorn1-2/+2
2012-06-07format-file related transcript widget methods return a GError which is used ↵Robin Haberkorn1-26/+78
to display meaningful error messages * also cleaned up return value confusion: in GLib world, TRUE means successful
2012-06-07added missing documentation for GtkExperimentTranscript API methodsRobin Haberkorn1-0/+37
2012-06-07added copyright headers and Doxygen @file comments (where they were still ↵Robin Haberkorn1-0/+17
missing)
2012-06-04load default interactive format font and colors from config file and also ↵Robin Haberkorn1-39/+28
save them * pango attributes cannot be "cached" anymore and must be recreated every time the interactive format is configured
2012-06-04fixed and simplified handling of default config valuesRobin Haberkorn1-6/+8
they must be set after loading a keyfile since when setting them before they are overwritten when a keyfile can be loaded even if they don't exist in the keyfile
2012-06-01handle windows linebreaks in format filesRobin Haberkorn1-0/+1
2012-05-31allow transcript formatting without markup (like search-as-you type)Robin Haberkorn1-19/+94
* controlled via checkbox * if markup is disabled the entered text is only regular expressions * default text attributes are used according to some constants (in configure.ac, later they will be configurable via config file) * fixed return value of gtk_experiment_transcript_load_formats() * care about possible capture mismatches in regular expressions (capture braces are inserted automatically - the user is not allowed specify own captures) * display state of interactive format via icon (successful/error)
2012-05-30allow empty filename when loading a format file into the transcript widgetRobin Haberkorn1-3/+7
this resets any active formats
2012-05-30implemented "format" file and expression parsing as well as application to ↵Robin Haberkorn1-0/+201
the transcript * "formats" are regular expressions encapsulated in Pango markup that allow the description of powerful highlighting rules * highlight as you type via entry boxes * loading from files implemented and tested but cannot yet be done via the UI * transcript widget is built as libtool convenience library * some renamings were necessary * install transcript widget header