grantlee:grantlee.git
8 years agoMake it possible again to build grantlee with Qt 4.5. v0.1.5
Stephen Kelly [Mon, 23 Aug 2010 15:54:32 +0000 (17:54 +0200)]
Make it possible again to build grantlee with Qt 4.5.

8 years agoAdd some missing files
Stephen Kelly [Fri, 20 Aug 2010 14:22:21 +0000 (16:22 +0200)]
Add some missing files

8 years agoInclude the Grantlee USE file when building the default filters.
Stephen Kelly [Sun, 8 Aug 2010 22:34:51 +0000 (00:34 +0200)]
Include the Grantlee USE file when building the default filters.

This fixes issues hit when building in release mode.

8 years agoMake it possible for the scripted filters to inject QObjects and arrays to scripts.
Janne Hakonen [Wed, 4 Aug 2010 20:35:10 +0000 (22:35 +0200)]
Make it possible for the scripted filters to inject QObjects and arrays to scripts.

8 years agoAdd a Decorator to implement caching of Templates.
Stephen Kelly [Wed, 28 Jul 2010 23:31:10 +0000 (01:31 +0200)]
Add a Decorator to implement caching of Templates.

8 years agoPort the loader tags to RenderContext.
Stephen Kelly [Tue, 3 Aug 2010 10:04:32 +0000 (12:04 +0200)]
Port the loader tags to RenderContext.

This involves the creation of a BlockContext and rewriting inheritance handling.

8 years agoRemove bogus tests. Template blocks can not be nested.
Stephen Kelly [Tue, 3 Aug 2010 10:11:19 +0000 (12:11 +0200)]
Remove bogus tests. Template blocks can not be nested.

8 years agoMore constness.
Stephen Kelly [Tue, 3 Aug 2010 09:45:31 +0000 (11:45 +0200)]
More constness.

8 years agoRemove unused method.
Stephen Kelly [Tue, 3 Aug 2010 09:17:58 +0000 (11:17 +0200)]
Remove unused method.

8 years agoPort the cycle tag to RenderContext.
Stephen Kelly [Wed, 28 Jul 2010 20:29:17 +0000 (22:29 +0200)]
Port the cycle tag to RenderContext.

Fixes a state-leak bug when rendering a single template multiple times.

8 years agoAdd the RenderContext class.
Stephen Kelly [Wed, 28 Jul 2010 20:25:11 +0000 (22:25 +0200)]
Add the RenderContext class.

This makes thread safe and cachable templates possible, though caching
might have to wait for version 0.2

8 years agoAdd a convenience typedef
Stephen Kelly [Wed, 28 Jul 2010 20:19:49 +0000 (22:19 +0200)]
Add a convenience typedef

8 years agoConvert the RingIterator to use stl style iterators instead of java style.
Stephen Kelly [Wed, 28 Jul 2010 20:15:40 +0000 (22:15 +0200)]
Convert the RingIterator to use stl style iterators instead of java style.

The important difference is that stl style const_iterators have a default ctor.

8 years agoMake more use of const.
Stephen Kelly [Wed, 28 Jul 2010 20:22:19 +0000 (22:22 +0200)]
Make more use of const.

8 years agoCreate the html apidox in the apidox directory instead of apidocs/html.
Stephen Kelly [Wed, 28 Jul 2010 19:32:32 +0000 (21:32 +0200)]
Create the html apidox in the apidox directory instead of apidocs/html.

8 years agoFix template method which can not have even compiled before.
Stephen Kelly [Sat, 31 Jul 2010 12:27:04 +0000 (14:27 +0200)]
Fix template method which can not have even compiled before.

8 years agoBump the patch version in the 0.1 branch.
Stephen Kelly [Wed, 28 Jul 2010 19:19:17 +0000 (21:19 +0200)]
Bump the patch version in the 0.1 branch.

8 years agoPut the version number in the name of the qch docs file. v0.1.4
Stephen Kelly [Wed, 28 Jul 2010 19:02:11 +0000 (21:02 +0200)]
Put the version number in the name of the qch docs file.

8 years agoFix the licence of these files to LGPLv2+ instead of LGPLv3 only.
Stephen Kelly [Wed, 28 Jul 2010 18:59:15 +0000 (20:59 +0200)]
Fix the licence of these files to LGPLv2+ instead of LGPLv3 only.

8 years agoRemember the plugin_install_dir used when installing the package.
Michael Jansen [Mon, 26 Jul 2010 12:49:21 +0000 (14:49 +0200)]
Remember the plugin_install_dir used when installing the package.

This fixes the problem that grantlee failed to find its standard plugins
sometimes. More precisely if it wasn't installed into the same prefix as
qt (QCoreApplication::instance()->libraryPaths()) and QT_PLUGIN_DIRECTORY
did not contain the install prefix of grantlee.

With the current setup it's possible to add to the pluginPaths()

paths = engine->pluginPaths();
paths << "additional_path";  // Append
engine->setPluginPaths(path);

QStringList paths;
paths << "additional path";
paths << "additional path 2";
paths << engine->pluginPaths(); // Prepend
engine->setPluginPaths(path);

or completely overwrite the paths;

8 years agoMove the check for invalid template variable names.
Stephen Kelly [Tue, 27 Jul 2010 20:09:25 +0000 (22:09 +0200)]
Move the check for invalid template variable names.

8 years agoMake the add filter be able to add other types together by concatenation or extending
Stephen Kelly [Tue, 27 Jul 2010 18:07:11 +0000 (20:07 +0200)]
Make the add filter be able to add other types together by concatenation or extending

8 years agoMake the list handling more flexible
Stephen Kelly [Tue, 27 Jul 2010 18:35:34 +0000 (20:35 +0200)]
Make the list handling more flexible

8 years agoMore tests of the if tag.
Stephen Kelly [Tue, 27 Jul 2010 17:53:51 +0000 (19:53 +0200)]
More tests of the if tag.

8 years agoUpdate the jsescape filter to be JSON safe.
Stephen Kelly [Tue, 27 Jul 2010 17:52:45 +0000 (19:52 +0200)]
Update the jsescape filter to be JSON safe.

8 years agoActually include the title filter in the library and fix its behaviour.
Stephen Kelly [Tue, 27 Jul 2010 17:51:01 +0000 (19:51 +0200)]
Actually include the title filter in the library and fix its behaviour.

8 years agoSupport accessing the objectName() and children() of QObjects.
Stephen Kelly [Mon, 26 Jul 2010 12:48:08 +0000 (14:48 +0200)]
Support accessing the objectName() and children() of QObjects.

8 years agoRefactor the QObject* handling in Variable into a TypeAccessor specialization.
Stephen Kelly [Mon, 26 Jul 2010 12:08:28 +0000 (14:08 +0200)]
Refactor the QObject* handling in Variable into a TypeAccessor specialization.

8 years agoPut the remains of QVariantHash handling into the TypeAccessor for it.
Stephen Kelly [Mon, 26 Jul 2010 12:50:49 +0000 (14:50 +0200)]
Put the remains of QVariantHash handling into the TypeAccessor for it.

8 years agoUse explicit latin1 in the tests.
Stephen Kelly [Sun, 25 Jul 2010 14:58:32 +0000 (16:58 +0200)]
Use explicit latin1 in the tests.

8 years agoUse explicit latin1 for literals.
Stephen Kelly [Sun, 25 Jul 2010 11:24:41 +0000 (13:24 +0200)]
Use explicit latin1 for literals.

8 years agoMake it possible to compile Grantlee if Qt is built with QT_NO_CAST_FROM_ASCII
Stephen Kelly [Sat, 24 Jul 2010 20:46:30 +0000 (22:46 +0200)]
Make it possible to compile Grantlee if Qt is built with QT_NO_CAST_FROM_ASCII

8 years agoUse a UTF-8 decoder to read template and script files.
Stephen Kelly [Sat, 24 Jul 2010 20:36:43 +0000 (22:36 +0200)]
Use a UTF-8 decoder to read template and script files.

8 years agoAdd a conversion to ASCII which is more suited to slugifying.
Stephen Kelly [Sat, 24 Jul 2010 20:23:46 +0000 (22:23 +0200)]
Add a conversion to ASCII which is more suited to slugifying.

QString::toAscii creates replacement chars which we do not want.

8 years agoUse explicit latin1 encoding for QMetaObject literals generated from C++.
Stephen Kelly [Sat, 24 Jul 2010 15:23:47 +0000 (17:23 +0200)]
Use explicit latin1 encoding for QMetaObject literals generated from C++.

Uft8 is used for Q_PROPERTY names because they can seemingly be anything.

8 years agos/at( 0 )/first()/g
Stephen Kelly [Fri, 23 Jul 2010 22:53:51 +0000 (00:53 +0200)]
s/at( 0 )/first()/g

8 years agoMore explicit latin1 in the plugins.
Stephen Kelly [Fri, 23 Jul 2010 22:29:10 +0000 (00:29 +0200)]
More explicit latin1 in the plugins.

8 years agoMore explict latin1.
Stephen Kelly [Fri, 23 Jul 2010 22:12:22 +0000 (00:12 +0200)]
More explict latin1.

8 years agoUse QStringBuilder in the Lexer.
Stephen Kelly [Fri, 23 Jul 2010 21:42:01 +0000 (23:42 +0200)]
Use QStringBuilder in the Lexer.

8 years agoUse QStringBuilder to create the static regexp for filter expression.
Stephen Kelly [Fri, 23 Jul 2010 21:12:04 +0000 (23:12 +0200)]
Use QStringBuilder to create the static regexp for filter expression.

Also be explicit about latin1 encoding of string literals.

8 years agoExplicitly use latin1 more.
Stephen Kelly [Fri, 23 Jul 2010 20:39:28 +0000 (22:39 +0200)]
Explicitly use latin1 more.

8 years agoUse QStringBuilder where available to build path strings.
Stephen Kelly [Fri, 23 Jul 2010 19:08:26 +0000 (21:08 +0200)]
Use QStringBuilder where available to build path strings.

Also use QLatin1String explicitly for comparison speed.

8 years agoBump the patch version in the 0.1 branch.
Stephen Kelly [Mon, 19 Jul 2010 17:46:12 +0000 (19:46 +0200)]
Bump the patch version in the 0.1 branch.

8 years agoIncrease constness. v0.1.3
Stephen Kelly [Wed, 14 Jul 2010 18:22:43 +0000 (20:22 +0200)]
Increase constness.

8 years agoFix the smart_split regexp to be the same as the django one.
Stephen Kelly [Thu, 8 Jul 2010 22:40:30 +0000 (00:40 +0200)]
Fix the smart_split regexp to be the same as the django one.

Fixes a bug in splitting tag arguments with string
literals containing spaces.

8 years agoHandle QStringList in a loop as a special case.
Stephen Kelly [Thu, 8 Jul 2010 20:15:58 +0000 (22:15 +0200)]
Handle QStringList in a loop as a special case.

Bug identified by the Grantlee testing community.

8 years agoAPIdox fix. Template is a shared pointer.
Stephen Kelly [Wed, 7 Jul 2010 20:52:51 +0000 (22:52 +0200)]
APIdox fix. Template is a shared pointer.

8 years agoUse gpg signing instead of md5 summing for tarball verification.
Stephen Kelly [Wed, 7 Jul 2010 15:53:22 +0000 (17:53 +0200)]
Use gpg signing instead of md5 summing for tarball verification.

8 years agoAdd rubysupport to the codegen example. 3
Declan McGrath [Wed, 7 Jul 2010 13:09:58 +0000 (16:09 +0300)]
Add rubysupport to the codegen example.

8 years agoBump the patch version in the 0.1 branch.
Stephen Kelly [Sun, 4 Jul 2010 20:26:22 +0000 (22:26 +0200)]
Bump the patch version in the 0.1 branch.

8 years agoAdd a optional argument to allow control over tarball naming. v0.1.2
Stephen Kelly [Sun, 4 Jul 2010 20:21:00 +0000 (22:21 +0200)]
Add a optional argument to allow control over tarball naming.

8 years agoMinor fix on docs index page.
Stephen Kelly [Sun, 4 Jul 2010 20:20:08 +0000 (22:20 +0200)]
Minor fix on docs index page.

8 years agoDocument how to use the enumeration support in Grantlee.
Stephen Kelly [Sun, 4 Jul 2010 19:38:34 +0000 (21:38 +0200)]
Document how to use the enumeration support in Grantlee.

8 years agoSupport loops and comparision of enums.
Stephen Kelly [Sun, 4 Jul 2010 18:30:07 +0000 (20:30 +0200)]
Support loops and comparision of enums.

8 years agoNative support for Qt enums.
Stephen Kelly [Sat, 3 Jul 2010 16:14:30 +0000 (18:14 +0200)]
Native support for Qt enums.

8 years agoAdd enum handling support to Grantlee.
Stephen Kelly [Sat, 3 Jul 2010 13:46:06 +0000 (15:46 +0200)]
Add enum handling support to Grantlee.

8 years agoFix to allow use of multiple template directories.
Yiannis Belias [Fri, 18 Jun 2010 08:29:15 +0000 (10:29 +0200)]
Fix to allow use of multiple template directories.

8 years agoAdd test for multiple template dirs.
Stephen Kelly [Fri, 18 Jun 2010 08:14:57 +0000 (10:14 +0200)]
Add test for multiple template dirs.

8 years agoBump the patch version in the 0.1 branch.
Stephen Kelly [Sun, 9 May 2010 16:18:03 +0000 (18:18 +0200)]
Bump the patch version in the 0.1 branch.

8 years agoBump the patch version in the 0.1 branch v0.1.1
Stephen Kelly [Sun, 9 May 2010 16:16:51 +0000 (18:16 +0200)]
Bump the patch version in the 0.1 branch

8 years agoCompile the scriptabletags library into the core library.
Stephen Kelly [Sun, 9 May 2010 15:44:17 +0000 (17:44 +0200)]
Compile the scriptabletags library into the core library.

This is necessary because webkit/javascriptcore is not suitable for use in a plugin.

https://bugs.webkit.org/show_bug.cgi?id=38193

8 years agoIf an image is not found in one of the paths, check the next path.
Stephen Kelly [Tue, 4 May 2010 17:05:49 +0000 (19:05 +0200)]
If an image is not found in one of the paths, check the next path.

8 years agoMake "make test" at the top of the source tree run the tests.
Brad Hards [Tue, 13 Apr 2010 07:22:18 +0000 (09:22 +0200)]
Make "make test" at the top of the source tree run the tests.

8 years agoSet Grantlee_INCLUDE_DIRS, not Grantlee_INCLUDE_DIR. v0.1.0
Stephen Kelly [Fri, 9 Apr 2010 11:31:35 +0000 (13:31 +0200)]
Set Grantlee_INCLUDE_DIRS, not Grantlee_INCLUDE_DIR.

8 years agoRemove mutabletags from the 0.1 release. v0.1.0-rc1
Stephen Kelly [Thu, 8 Apr 2010 19:15:34 +0000 (21:15 +0200)]
Remove mutabletags from the 0.1 release.

The feature may be redesinged and added again in the future.

8 years agoUpdate the changelog with what is contained in the inital release.
Stephen Kelly [Fri, 9 Apr 2010 00:44:37 +0000 (02:44 +0200)]
Update the changelog with what is contained in the inital release.

8 years agoFix the makerelease script to not assume the format of tags.
Stephen Kelly [Fri, 9 Apr 2010 00:41:08 +0000 (02:41 +0200)]
Fix the makerelease script to not assume the format of tags.

8 years agoAdd the AUTHORS file.
Stephen Kelly [Thu, 8 Apr 2010 18:56:51 +0000 (20:56 +0200)]
Add the AUTHORS file.

8 years agoMake the scriptabletags library not loaded by default.
Stephen Kelly [Thu, 8 Apr 2010 18:55:42 +0000 (20:55 +0200)]
Make the scriptabletags library not loaded by default.

8 years agoMake it possible to specify the path to relative external media.
Stephen Kelly [Thu, 8 Apr 2010 18:48:53 +0000 (20:48 +0200)]
Make it possible to specify the path to relative external media.

8 years agoMake it possible to create output with both relative and absolute urls.
Stephen Kelly [Wed, 7 Apr 2010 18:08:02 +0000 (20:08 +0200)]
Make it possible to create output with both relative and absolute urls.

8 years agoMake sure downstreams can link plugins to grantlee_gui and still get QtGui
Stephen Kelly [Wed, 7 Apr 2010 17:19:41 +0000 (19:19 +0200)]
Make sure downstreams can link plugins to grantlee_gui and still get QtGui

8 years agoMake sure grantlee includes can be found.
Stephen Kelly [Wed, 7 Apr 2010 17:10:11 +0000 (19:10 +0200)]
Make sure grantlee includes can be found.

8 years agoImplement the assignment operator and copy constructor for Context.
Stephen Kelly [Wed, 7 Apr 2010 17:03:12 +0000 (19:03 +0200)]
Implement the assignment operator and copy constructor for Context.

8 years agoMake sure plugins are built in release mode on MinGW
Stephen Kelly [Wed, 7 Apr 2010 17:02:21 +0000 (19:02 +0200)]
Make sure plugins are built in release mode on MinGW

8 years agoRefactor and complete the initial content in the dialog
Stephen Kelly [Tue, 6 Apr 2010 18:17:12 +0000 (20:17 +0200)]
Refactor and complete the initial content in the dialog

8 years agoMinor template cleanup
Stephen Kelly [Tue, 6 Apr 2010 18:16:57 +0000 (20:16 +0200)]
Minor template cleanup

8 years agoMinor ui rework
Stephen Kelly [Tue, 6 Apr 2010 18:16:38 +0000 (20:16 +0200)]
Minor ui rework

8 years agoExternalize available types.
Stephen Kelly [Tue, 6 Apr 2010 18:37:42 +0000 (20:37 +0200)]
Externalize available types.

8 years agoInstall the grantlee_version.h file
Stephen Kelly [Mon, 5 Apr 2010 20:51:30 +0000 (22:51 +0200)]
Install the grantlee_version.h file

8 years agoMake sure to find the plugin
Stephen Kelly [Mon, 5 Apr 2010 13:20:42 +0000 (15:20 +0200)]
Make sure to find the plugin

8 years agoMake the play button look more like a play button.
Stephen Kelly [Mon, 5 Apr 2010 12:59:31 +0000 (14:59 +0200)]
Make the play button look more like a play button.

8 years agoSet the application name so that dbus doesn't complain.
Stephen Kelly [Mon, 5 Apr 2010 12:59:02 +0000 (14:59 +0200)]
Set the application name so that dbus doesn't complain.

8 years agoAdd the start of an example app using Grantlee for code generation.
Stephen Kelly [Sat, 3 Apr 2010 15:22:26 +0000 (17:22 +0200)]
Add the start of an example app using Grantlee for code generation.

8 years agoSimplify the use of the custom OutputStream
Stephen Kelly [Mon, 5 Apr 2010 10:18:00 +0000 (12:18 +0200)]
Simplify the use of the custom OutputStream

8 years agoDon't write anything to the stream if the node returns [undefined]
Stephen Kelly [Mon, 5 Apr 2010 10:14:09 +0000 (12:14 +0200)]
Don't write anything to the stream if the node returns [undefined]

8 years agoFix a truthiness issue with QVariantHash
Stephen Kelly [Mon, 5 Apr 2010 10:00:04 +0000 (12:00 +0200)]
Fix a truthiness issue with QVariantHash

8 years agoAdd note about the textedit example implementing the audio text object feature
Stephen Kelly [Sat, 3 Apr 2010 15:17:33 +0000 (17:17 +0200)]
Add note about the textedit example implementing the audio text object feature

8 years agoAdd a @gr_var custom doxygen tag for consistent representation of variables.
Stephen Kelly [Fri, 2 Apr 2010 18:47:07 +0000 (20:47 +0200)]
Add a @gr_var custom doxygen tag for consistent representation of variables.

8 years agoDocument the include and extends tags.
Stephen Kelly [Fri, 2 Apr 2010 18:40:05 +0000 (20:40 +0200)]
Document the include and extends tags.

8 years agoAdd an alias for putting a Grantlee tag in the documentation and use it consistently.
Stephen Kelly [Fri, 2 Apr 2010 18:39:18 +0000 (20:39 +0200)]
Add an alias for putting a Grantlee tag in the documentation and use it consistently.

8 years agoAdd documentation about safe-ness in templates and in filters.
Stephen Kelly [Fri, 2 Apr 2010 17:50:54 +0000 (19:50 +0200)]
Add documentation about safe-ness in templates and in filters.

8 years agoFix copy/paste error. Exclude the gui export macro from the docs.
Stephen Kelly [Fri, 2 Apr 2010 16:09:31 +0000 (18:09 +0200)]
Fix copy/paste error. Exclude the gui export macro from the docs.

8 years agoDocument how to handle custom QTextObjects in Grantlee.
Stephen Kelly [Fri, 2 Apr 2010 16:04:58 +0000 (18:04 +0200)]
Document how to handle custom QTextObjects in Grantlee.

8 years agoUpdate the documentation for grantlee_gui.
Stephen Kelly [Fri, 2 Apr 2010 16:04:16 +0000 (18:04 +0200)]
Update the documentation for grantlee_gui.

8 years agoPut the doxygen found message in a more appropriate place.
Stephen Kelly [Fri, 2 Apr 2010 14:34:11 +0000 (16:34 +0200)]
Put the doxygen found message in a more appropriate place.

8 years agoAdd audio capability to the TextEdit using grantlee_gui
Stephen Kelly [Fri, 2 Apr 2010 13:16:03 +0000 (15:16 +0200)]
Add audio capability to the TextEdit using grantlee_gui

8 years agoAdd a QWebView for viewing the rendered result.
Stephen Kelly [Mon, 1 Mar 2010 00:31:49 +0000 (01:31 +0100)]
Add a QWebView for viewing the rendered result.

8 years agoAdd actions for rendering content from the textedits with Grantlee.
Stephen Kelly [Sun, 28 Feb 2010 21:47:42 +0000 (22:47 +0100)]
Add actions for rendering content from the textedits with Grantlee.

8 years agoAdd a custom library with custom filters.
Stephen Kelly [Sun, 28 Feb 2010 20:59:22 +0000 (21:59 +0100)]
Add a custom library with custom filters.