grantlee:grantlee.git
7 years agoPort the lexer from a QRegExp based state machine to a TextProcessor.
Stephen Kelly [Sat, 15 Jan 2011 03:41:22 +0000 (04:41 +0100)]
Port the lexer from a QRegExp based state machine to a TextProcessor.

7 years agoAdd a state machine for processing a stream of QChars.
Stephen Kelly [Sat, 15 Jan 2011 03:39:28 +0000 (04:39 +0100)]
Add a state machine for processing a stream of QChars.

7 years agoAdd a generic state machine
Stephen Kelly [Sat, 15 Jan 2011 03:38:57 +0000 (04:38 +0100)]
Add a generic state machine

7 years agoFix some encoding issues.
Stephen Kelly [Wed, 26 Jan 2011 20:10:33 +0000 (21:10 +0100)]
Fix some encoding issues.

7 years agoRemove some noise.
Stephen Kelly [Wed, 26 Jan 2011 19:59:38 +0000 (20:59 +0100)]
Remove some noise.

7 years agoBump the patch version in the 0.1 branch.
Stephen Kelly [Wed, 26 Jan 2011 18:05:42 +0000 (19:05 +0100)]
Bump the patch version in the 0.1 branch.

7 years agoUse toUtf8 so as not to constrain the original text. v0.1.8
Stephen Kelly [Mon, 24 Jan 2011 08:32:38 +0000 (09:32 +0100)]
Use toUtf8 so as not to constrain the original text.

7 years agoRedesign to remove the global.
Stephen Kelly [Sat, 22 Jan 2011 17:08:46 +0000 (18:08 +0100)]
Redesign to remove the global.

7 years agoRename the objects to translatable strings.
Stephen Kelly [Sat, 22 Jan 2011 17:02:44 +0000 (18:02 +0100)]
Rename the objects to translatable strings.

7 years agoAdd documentation and simplify the script
Stephen Kelly [Sat, 22 Jan 2011 16:48:31 +0000 (17:48 +0100)]
Add documentation and simplify the script

7 years agoUse liberal BSD style licence for scripts.
Stephen Kelly [Fri, 21 Jan 2011 00:25:09 +0000 (01:25 +0100)]
Use liberal BSD style licence for scripts.

7 years agoClear some containers to avoid processing strings many times.
Stephen Kelly [Thu, 20 Jan 2011 23:10:08 +0000 (00:10 +0100)]
Clear some containers to avoid processing strings many times.

7 years agoRename core/templates and gui/textdocument everywhere practical.
Stephen Kelly [Thu, 20 Jan 2011 22:09:07 +0000 (23:09 +0100)]
Rename core/templates and gui/textdocument everywhere practical.

The libraries themselves can't be renamed for BC reasons

7 years agoAdd some tests showing that garbage input is well handled.
Stephen Kelly [Sat, 15 Jan 2011 23:51:40 +0000 (00:51 +0100)]
Add some tests showing that garbage input is well handled.

7 years agoRemove the settingsToken, which is not used anywhere.
Stephen Kelly [Sun, 16 Jan 2011 22:59:16 +0000 (23:59 +0100)]
Remove the settingsToken, which is not used anywhere.

7 years agoWorkaround MSVC behaviour regarding template initialization.
Stephen Kelly [Wed, 19 Jan 2011 23:08:22 +0000 (00:08 +0100)]
Workaround MSVC behaviour regarding template initialization.

Not sure which compiler has the bug...

7 years agoResolve MinGW warning.
Stephen Kelly [Wed, 19 Jan 2011 22:26:29 +0000 (23:26 +0100)]
Resolve MinGW warning.

The method is defined with inline below.

7 years agoBuild on MSVC.
Stephen Kelly [Wed, 19 Jan 2011 00:53:43 +0000 (01:53 +0100)]
Build on MSVC.

7 years agoDatetimes are internationalized differently on Windows.
Stephen Kelly [Sun, 16 Jan 2011 14:37:03 +0000 (15:37 +0100)]
Datetimes are internationalized differently on Windows.

7 years agoRevert "Create a private library for the template system"
Stephen Kelly [Wed, 19 Jan 2011 12:34:33 +0000 (13:34 +0100)]
Revert "Create a private library for the template system"

This doesn't work on windows. Hopefully this will make Andy happier.

This reverts commit 9a888df3a7d31563d269255947fda09851bd8125.

7 years agoCreate a private library for the template system
Stephen Kelly [Tue, 11 Jan 2011 22:27:12 +0000 (23:27 +0100)]
Create a private library for the template system

This way we don't have to buld the lexer and nulllocalizer one
additional time per test.

7 years agoAdd more flexible handling of multiple catalogs to the KLocale implementation.
Stephen Kelly [Mon, 10 Jan 2011 23:14:30 +0000 (00:14 +0100)]
Add more flexible handling of multiple catalogs to the KLocale implementation.

7 years agoRevert "Be consistent about the use of streamValueInContext, even where it makes...
Stephen Kelly [Sun, 9 Jan 2011 20:32:25 +0000 (21:32 +0100)]
Revert "Be consistent about the use of streamValueInContext, even where it makes no difference."

This reverts commit b996f66cef8637dfd2f6e89975d1d8f5457cd5b7.

7 years agoRevert "Make the cycle tag safe."
Stephen Kelly [Sun, 9 Jan 2011 20:31:51 +0000 (21:31 +0100)]
Revert "Make the cycle tag safe."

This reverts commit 66b7ab7ab6e8108bfe089325bfe9c08b8736b8f2.

7 years agoDocument the i18n features.
Stephen Kelly [Mon, 29 Nov 2010 08:19:04 +0000 (09:19 +0100)]
Document the i18n features.

7 years agoTest nesting of locales.
Stephen Kelly [Sat, 27 Nov 2010 19:42:15 +0000 (20:42 +0100)]
Test nesting of locales.

7 years agoAdd tests for handling of SafeString with i18n.
Stephen Kelly [Sat, 27 Nov 2010 17:53:01 +0000 (18:53 +0100)]
Add tests for handling of SafeString with i18n.

7 years agoTest localization through templates
Stephen Kelly [Sat, 27 Nov 2010 12:54:18 +0000 (13:54 +0100)]
Test localization through templates

7 years agoAdd tests for strings.
Stephen Kelly [Sat, 27 Nov 2010 01:25:00 +0000 (02:25 +0100)]
Add tests for strings.

7 years agoStart i18n and l10n tests.
Stephen Kelly [Sun, 21 Nov 2010 23:00:39 +0000 (00:00 +0100)]
Start i18n and l10n tests.

7 years agoDon't circumvent the autoescaping mechanisms.
Stephen Kelly [Sat, 27 Nov 2010 18:26:07 +0000 (19:26 +0100)]
Don't circumvent the autoescaping mechanisms.

7 years agoDon't require duplication of the source string in templates using QTranslator.
Stephen Kelly [Sat, 27 Nov 2010 18:27:10 +0000 (19:27 +0100)]
Don't require duplication of the source string in templates using QTranslator.

7 years agoFix the NullLocalizer when given localizable content.
Stephen Kelly [Sat, 27 Nov 2010 19:09:29 +0000 (20:09 +0100)]
Fix the NullLocalizer when given localizable content.

7 years agoBe consistent about the use of streamValueInContext, even where it makes no difference.
Stephen Kelly [Sat, 27 Nov 2010 18:31:16 +0000 (19:31 +0100)]
Be consistent about the use of streamValueInContext, even where it makes no difference.

7 years agoMake sure spaceless escaping behaviour is correct.
Stephen Kelly [Sat, 27 Nov 2010 18:21:16 +0000 (19:21 +0100)]
Make sure spaceless escaping behaviour is correct.

7 years agoMake the cycle tag safe.
Stephen Kelly [Sat, 27 Nov 2010 18:08:19 +0000 (19:08 +0100)]
Make the cycle tag safe.

7 years agoFix the media_finder for files with & in the filename.
Stephen Kelly [Sat, 27 Nov 2010 19:03:29 +0000 (20:03 +0100)]
Fix the media_finder for files with & in the filename.

7 years agoRemove duplicate test and rename existing to prevent clash.
Stephen Kelly [Sat, 27 Nov 2010 19:02:37 +0000 (20:02 +0100)]
Remove duplicate test and rename existing to prevent clash.

7 years agoFix capitalization a little bit.
Stephen Kelly [Sat, 27 Nov 2010 00:59:49 +0000 (01:59 +0100)]
Fix capitalization a little bit.

7 years agoDon't convert a QVariant with a QStringList of size one to a QString.
Stephen Kelly [Wed, 17 Nov 2010 13:17:35 +0000 (14:17 +0100)]
Don't convert a QVariant with a QStringList of size one to a QString.

7 years agoAdd localization files for the KDE version of contacts.
Stephen Kelly [Wed, 10 Nov 2010 21:49:04 +0000 (22:49 +0100)]
Add localization files for the KDE version of contacts.

7 years agoAdd KLocale based version of the contacts example.
Stephen Kelly [Wed, 10 Nov 2010 21:47:52 +0000 (22:47 +0100)]
Add KLocale based version of the contacts example.

7 years agoFind the xgettext executable.
Stephen Kelly [Tue, 13 Jul 2010 22:08:55 +0000 (00:08 +0200)]
Find the xgettext executable.

7 years agoAdd a copy of FindGettext.cmake from kdelibs.
Stephen Kelly [Tue, 13 Jul 2010 21:32:35 +0000 (23:32 +0200)]
Add a copy of FindGettext.cmake from kdelibs.

7 years agoAdd Qt catalogs for the contacts example.
Stephen Kelly [Wed, 10 Nov 2010 21:43:59 +0000 (22:43 +0100)]
Add Qt catalogs for the contacts example.

7 years agoAdd the contacts example which uses Qt l10n systems.
Stephen Kelly [Wed, 10 Nov 2010 21:43:02 +0000 (22:43 +0100)]
Add the contacts example which uses Qt l10n systems.

7 years agoMake it possible to use _() to localize any variable or literal, not just strings.
Stephen Kelly [Wed, 3 Nov 2010 04:21:20 +0000 (05:21 +0100)]
Make it possible to use _() to localize any variable or literal, not just strings.

7 years agoExtract all _(localizables) from the templates, not just strings.
Stephen Kelly [Wed, 10 Nov 2010 20:38:28 +0000 (21:38 +0100)]
Extract all _(localizables) from the templates, not just strings.

7 years agoAdd scripts for extracting messages from templates for different i18n systems.
Stephen Kelly [Thu, 15 Jul 2010 01:29:58 +0000 (03:29 +0200)]
Add scripts for extracting messages from templates for different i18n systems.

7 years agoMake it possible to scope locales in templates.
Stephen Kelly [Sat, 6 Nov 2010 16:25:55 +0000 (17:25 +0100)]
Make it possible to scope locales in templates.

7 years agoSupport localization of monetary values.
Stephen Kelly [Thu, 4 Nov 2010 03:00:54 +0000 (04:00 +0100)]
Support localization of monetary values.

7 years agoAdd i18n template tags to Grantlee.
Stephen Kelly [Mon, 12 Jul 2010 11:19:09 +0000 (13:19 +0200)]
Add i18n template tags to Grantlee.

7 years agoAdd a template loader which also loads i18n catalogs if found.
Stephen Kelly [Wed, 3 Nov 2010 19:49:17 +0000 (20:49 +0100)]
Add a template loader which also loads i18n catalogs if found.

7 years agoMake it possible to associate a localizer with a Context object.
Stephen Kelly [Wed, 3 Nov 2010 19:45:19 +0000 (20:45 +0100)]
Make it possible to associate a localizer with a Context object.

7 years agoAdd the abstract localizer and a Qt implementation of it.
Stephen Kelly [Wed, 3 Nov 2010 19:00:11 +0000 (20:00 +0100)]
Add the abstract localizer and a Qt implementation of it.

7 years agoSearch in the template loaders for javascript plugin libraries.
Stephen Kelly [Wed, 10 Nov 2010 19:22:16 +0000 (20:22 +0100)]
Search in the template loaders for javascript plugin libraries.

7 years agoCreate a separate method for getting the filename of a script library to load.
Stephen Kelly [Wed, 10 Nov 2010 19:12:02 +0000 (20:12 +0100)]
Create a separate method for getting the filename of a script library to load.

7 years agoAdd API for removing plugin dirs.
Stephen Kelly [Wed, 10 Nov 2010 18:55:52 +0000 (19:55 +0100)]
Add API for removing plugin dirs.

7 years agoSupport QDate and QTime objects.
Stephen Kelly [Sat, 6 Nov 2010 16:18:26 +0000 (17:18 +0100)]
Support QDate and QTime objects.

7 years agoUse const & for FilterExpressions.
Stephen Kelly [Sat, 6 Nov 2010 16:24:29 +0000 (17:24 +0100)]
Use const & for FilterExpressions.

7 years agoAdd an accessor for the template dirs.
Stephen Kelly [Wed, 3 Nov 2010 19:39:07 +0000 (20:39 +0100)]
Add an accessor for the template dirs.

7 years agoGive this member a more meaningful name and initialize it.
Stephen Kelly [Wed, 3 Nov 2010 19:34:03 +0000 (20:34 +0100)]
Give this member a more meaningful name and initialize it.

7 years agoastyle whitespace fixes.
Stephen Kelly [Wed, 3 Nov 2010 19:12:39 +0000 (20:12 +0100)]
astyle whitespace fixes.

7 years agoFix the license updater script.
Stephen Kelly [Mon, 1 Nov 2010 21:30:00 +0000 (22:30 +0100)]
Fix the license updater script.

7 years agoFix license header in the export header.
Stephen Kelly [Mon, 1 Nov 2010 21:29:27 +0000 (22:29 +0100)]
Fix license header in the export header.

7 years agoFix license headers in the tests.
Stephen Kelly [Mon, 1 Nov 2010 21:27:28 +0000 (22:27 +0100)]
Fix license headers in the tests.

7 years agoAdd missing license header.
Stephen Kelly [Mon, 1 Nov 2010 21:26:42 +0000 (22:26 +0100)]
Add missing license header.

7 years agoSome minor cleanups.
Stephen Kelly [Mon, 1 Nov 2010 21:26:07 +0000 (22:26 +0100)]
Some minor cleanups.

7 years agoBuild only a minimum of tests of the containers by default
Stephen Kelly [Mon, 1 Nov 2010 00:07:16 +0000 (01:07 +0100)]
Build only a minimum of tests of the containers by default

Compilers on some platforms have trouble with the demands of so many templates.

7 years agoSeparate the template related code and the textdocument related code.
Stephen Kelly [Mon, 1 Nov 2010 00:07:01 +0000 (01:07 +0100)]
Separate the template related code and the textdocument related code.

This allows making the templates tests not depend on QtGui.

8 years agoBump the patch version in the 0.1 branch.
Stephen Kelly [Wed, 13 Oct 2010 22:15:23 +0000 (00:15 +0200)]
Bump the patch version in the 0.1 branch.

8 years agoAdd missing std includes. v0.1.7
Raphael Kubo da Costa [Wed, 13 Oct 2010 20:13:16 +0000 (17:13 -0300)]
Add missing std includes.

Commit 7115ab6 added some calls to std::map, std::queue and other STL
data structures, but did not include the respective headers.

This made compilation fail for KDE's proxymodeltestsuite.

8 years agoFix documentation generation in the release script.
Stephen Kelly [Wed, 13 Oct 2010 21:18:10 +0000 (23:18 +0200)]
Fix documentation generation in the release script.

The main fix is being careful about changing directories.

8 years agoAdd a test for paths to media for the media_finder.
Stephen Kelly [Sat, 9 Oct 2010 00:04:41 +0000 (02:04 +0200)]
Add a test for paths to media for the media_finder.

8 years agoCreate links to stl documentation in the Grantlee docs.
Stephen Kelly [Fri, 8 Oct 2010 23:48:01 +0000 (01:48 +0200)]
Create links to stl documentation in the Grantlee docs.

8 years agoAdd some missing pieces to the documentation.
Stephen Kelly [Fri, 8 Oct 2010 23:40:28 +0000 (01:40 +0200)]
Add some missing pieces to the documentation.

8 years agoUse a cast instead of template specialization to avoid unsigned comparison warning...
Stephen Kelly [Fri, 8 Oct 2010 23:34:15 +0000 (01:34 +0200)]
Use a cast instead of template specialization to avoid unsigned comparison warning with stl containers.

8 years agoUse const reference as much as possible.
Stephen Kelly [Wed, 22 Sep 2010 23:11:55 +0000 (01:11 +0200)]
Use const reference as much as possible.

8 years agoSplit the tested containers by macro into builtins and tr1
Stephen Kelly [Wed, 6 Oct 2010 22:51:41 +0000 (00:51 +0200)]
Split the tested containers by macro into builtins and tr1

8 years agoAdd dox for relevant macros.
Stephen Kelly [Wed, 29 Sep 2010 16:41:05 +0000 (18:41 +0200)]
Add dox for relevant macros.

8 years agoAdd APIdox to relevant classes and free functions.
Stephen Kelly [Tue, 28 Sep 2010 23:10:43 +0000 (01:10 +0200)]
Add APIdox to relevant classes and free functions.

8 years agoDocument the new feature set of generic types.
Stephen Kelly [Sat, 18 Sep 2010 14:14:19 +0000 (16:14 +0200)]
Document the new feature set of generic types.

8 years agoAdd recursive autoconditional registration of containers.
Stephen Kelly [Sun, 26 Sep 2010 23:56:03 +0000 (01:56 +0200)]
Add recursive autoconditional registration of containers.

8 years agoAdd autoconditional registration of containers of more types.
Stephen Kelly [Sun, 26 Sep 2010 23:55:15 +0000 (01:55 +0200)]
Add autoconditional registration of containers of more types.

8 years agoMove the registration of builtin QVariant containers to the metatype header.
Stephen Kelly [Tue, 28 Sep 2010 19:05:29 +0000 (21:05 +0200)]
Move the registration of builtin QVariant containers to the metatype header.

This allows the automatic and conditional registration.

8 years agoMove some setup to a separate header file.
Stephen Kelly [Tue, 28 Sep 2010 19:03:33 +0000 (21:03 +0200)]
Move some setup to a separate header file.

8 years agoExternalize the control of locking the CustomTypeRegistry.
Stephen Kelly [Sun, 26 Sep 2010 23:03:57 +0000 (01:03 +0200)]
Externalize the control of locking the CustomTypeRegistry.

8 years agoTest support for third party shared_ptr
Stephen Kelly [Tue, 28 Sep 2010 18:57:07 +0000 (20:57 +0200)]
Test support for third party shared_ptr

8 years agoSupport QSharedPointer<QObject>
Stephen Kelly [Tue, 14 Sep 2010 20:05:44 +0000 (22:05 +0200)]
Support QSharedPointer<QObject>

8 years agoTest support for third party sequential containers
Stephen Kelly [Tue, 28 Sep 2010 02:46:18 +0000 (04:46 +0200)]
Test support for third party sequential containers

8 years agoTest support for third party associative containers.
Stephen Kelly [Thu, 16 Sep 2010 20:21:38 +0000 (22:21 +0200)]
Test support for third party associative containers.

8 years agoAdd built-in support for std::vector std::deque std::list and std::map
Stephen Kelly [Thu, 16 Sep 2010 18:22:33 +0000 (20:22 +0200)]
Add built-in support for std::vector std::deque std::list and std::map

8 years agoSupport Associative containers which are keyed by number instead of QString.
Stephen Kelly [Wed, 22 Sep 2010 23:23:30 +0000 (01:23 +0200)]
Support Associative containers which are keyed by number instead of QString.

8 years agoCreate and use a method for determining if a toList function is already registered.
Stephen Kelly [Tue, 28 Sep 2010 19:04:38 +0000 (21:04 +0200)]
Create and use a method for determining if a toList function is already registered.

8 years agoMake it possible to loop over or extract T from any Container<T> or Container<QString...
Stephen Kelly [Mon, 13 Sep 2010 02:08:59 +0000 (04:08 +0200)]
Make it possible to loop over or extract T from any Container<T> or Container<QString, T>.

8 years agoAdd some trivial implementations to allow use with QSet.
Stephen Kelly [Tue, 14 Sep 2010 21:50:34 +0000 (23:50 +0200)]
Add some trivial implementations to allow use with QSet.

8 years agoAdd built-in support for QVariant containers not already in QVariant.
Stephen Kelly [Mon, 13 Sep 2010 02:01:15 +0000 (04:01 +0200)]
Add built-in support for QVariant containers not already in QVariant.

8 years agoHandlers for the rest of the Qt containers.
Stephen Kelly [Mon, 13 Sep 2010 01:09:05 +0000 (03:09 +0200)]
Handlers for the rest of the Qt containers.

8 years agoMove type registration to the initTestCase slot
Stephen Kelly [Tue, 14 Sep 2010 21:26:30 +0000 (23:26 +0200)]
Move type registration to the initTestCase slot

8 years agoAdd a trivial ctor.
Stephen Kelly [Tue, 14 Sep 2010 21:26:14 +0000 (23:26 +0200)]
Add a trivial ctor.