commonqt:commonqt.git
3 years agoUse xvfb master
Fernando Borretti [Thu, 23 Apr 2015 20:13:18 +0000 (17:13 -0300)]
Use xvfb

3 years agoFix running tests
Fernando Borretti [Thu, 23 Apr 2015 20:01:53 +0000 (17:01 -0300)]
Fix running tests

3 years agoRun tests
Fernando Borretti [Thu, 23 Apr 2015 19:56:57 +0000 (16:56 -0300)]
Run tests

3 years agoQuickload trivial-featurs
Fernando Borretti [Thu, 23 Apr 2015 19:53:03 +0000 (16:53 -0300)]
Quickload trivial-featurs

3 years agoTry to load qt
Fernando Borretti [Thu, 23 Apr 2015 19:43:13 +0000 (16:43 -0300)]
Try to load qt

3 years agoSyntax fix
Fernando Borretti [Thu, 23 Apr 2015 19:39:44 +0000 (16:39 -0300)]
Syntax fix

3 years agoTry to load commonqt
Fernando Borretti [Thu, 23 Apr 2015 19:36:26 +0000 (16:36 -0300)]
Try to load commonqt

3 years agoJust load qt
Fernando Borretti [Thu, 23 Apr 2015 19:32:57 +0000 (16:32 -0300)]
Just load qt

3 years agoInstall Qt dependencies in .travis.yml
Fernando Borretti [Thu, 23 Apr 2015 19:29:49 +0000 (16:29 -0300)]
Install Qt dependencies in .travis.yml

3 years agoRequire sudo
Fernando Borretti [Thu, 23 Apr 2015 19:28:02 +0000 (16:28 -0300)]
Require sudo

3 years agoAdd .travis.yml
Fernando Borretti [Thu, 23 Apr 2015 19:25:45 +0000 (16:25 -0300)]
Add .travis.yml

3 years agoTry running qmake-qt4 if it exists.
Stas Boukarev [Fri, 3 Apr 2015 14:39:15 +0000 (17:39 +0300)]
Try running qmake-qt4 if it exists.

3 years agoAdd a comment to resolve-new.
Stas Boukarev [Wed, 25 Feb 2015 16:20:55 +0000 (19:20 +0300)]
Add a comment to resolve-new.

3 years agoSimple fix for RESOLVE-NEW to properly handle Phonon classes, which
Shinmera [Wed, 25 Feb 2015 15:53:47 +0000 (16:53 +0100)]
Simple fix for RESOLVE-NEW to properly handle Phonon classes, which
return a class-name unsuitable for constructor usage. Phonon class names
are prefixed with "Phonon::" whereas their constructors do not contain
this prefix, and it must thus be removed to obtain the proper
constructor name to use QCLASS-FIND-APPLICABLE-METHOD.

3 years agoLoad system libcommonqt.so if no local libcommonqt.so is present.
Stas Boukarev [Mon, 9 Feb 2015 18:44:24 +0000 (21:44 +0300)]
Load system libcommonqt.so if no local libcommonqt.so is present.

3 years agoRearrange inline function to appear before they are used.
Stas Boukarev [Wed, 24 Dec 2014 10:39:30 +0000 (13:39 +0300)]
Rearrange inline function to appear before they are used.

3 years agoRemove the comment around NEW, it's not true.
Stas Boukarev [Mon, 10 Nov 2014 15:15:08 +0000 (18:15 +0300)]
Remove the comment around NEW, it's not true.

3 years agoAdd enum-equal.
Stas Boukarev [Mon, 10 Nov 2014 15:01:40 +0000 (18:01 +0300)]
Add enum-equal.

Similar to enum=, but ignores the enum type and can compare an enum
with an integer.

4 years agoAdded support for arguments of type QVector<unsigned int>.
Mark Cox [Wed, 23 Apr 2014 00:35:39 +0000 (10:35 +1000)]
Added support for arguments of type QVector<unsigned int>.

4 years agoAdd more QList types marshalling.
Stas Boukarev [Thu, 16 Jan 2014 21:11:50 +0000 (01:11 +0400)]
Add more QList types marshalling.

4 years agoAdd an unmarshaller for QList<QGraphicsView *>. Closes #14.
Stas Boukarev [Wed, 15 Jan 2014 19:59:37 +0000 (23:59 +0400)]
Add an unmarshaller for QList<QGraphicsView *>. Closes #14.

4 years agoFix a paste typo.
Stas Boukarev [Tue, 14 Jan 2014 17:34:56 +0000 (21:34 +0400)]
Fix a paste typo.

4 years agoSearch for override methods in the native module of a class. Fixes #13.
Stas Boukarev [Tue, 14 Jan 2014 17:25:36 +0000 (21:25 +0400)]
Search for override methods in the native module of a class. Fixes #13.

4 years agoDo not always delete automatically created QVariants, #9.
Stas Boukarev [Wed, 1 Jan 2014 15:38:52 +0000 (19:38 +0400)]
Do not always delete automatically created QVariants, #9.

4 years agoDon't cache objects returned from functions.
Stas Boukarev [Wed, 30 Oct 2013 17:20:29 +0000 (21:20 +0400)]
Don't cache objects returned from functions.
They are not removed from the cache when they are freed causing problems.
This causes problems when some other object get the same address.

4 years ago%qobject: cache! uncached objects.
stas [Mon, 16 Sep 2013 13:09:03 +0000 (17:09 +0400)]
%qobject: cache! uncached objects.

4 years agoTutorial: use the new style of connecting signals.
Stas Boukarev [Wed, 11 Sep 2013 19:36:46 +0000 (23:36 +0400)]
Tutorial: use the new style of connecting signals.

4 years agoRemove enable-syntax macro for (named-readtables:in-readtable :qt).
Stas Boukarev [Wed, 11 Sep 2013 19:27:12 +0000 (23:27 +0400)]
Remove enable-syntax macro for (named-readtables:in-readtable :qt).
enable-syntax is not a very descriptive name, and
(named-readtables:in-readtable :qt) is not much longer.

4 years agoAdd a with-main-window macro.
Stas Boukarev [Wed, 11 Sep 2013 18:58:52 +0000 (22:58 +0400)]
Add a with-main-window macro.

4 years agoChange the way applications should be started.
Stas Boukarev [Wed, 11 Sep 2013 18:35:06 +0000 (22:35 +0400)]
Change the way applications should be started.
Add a new variable *qapplication*.
make-qapplication creates a new QApplication if *qapplication* is NIL,
otherwise it returns *qapplication*.
Remove the QT-USER package, which had similar functionality, but
there's no reason to keep this separate.

4 years agoconv.lisp: run make-qapplication before any code.
Stas Boukarev [Wed, 11 Sep 2013 04:17:40 +0000 (08:17 +0400)]
conv.lisp: run make-qapplication before any code.
Reported by Rujia Liu.

4 years agooptimized-call: CONSTANTP doesn't guarantee that an object is
Stas Boukarev [Wed, 11 Sep 2013 03:54:12 +0000 (07:54 +0400)]
optimized-call: CONSTANTP doesn't guarantee that an object is
self-evaluating, apply EVAL.

Reported by Rujia Liu.

4 years agoconv.lisp: Use a more modern way of invoking static methods.
Stas Boukarev [Wed, 11 Sep 2013 03:35:44 +0000 (07:35 +0400)]
conv.lisp: Use a more modern way of invoking static methods.

4 years ago%measure-dotimes: Make it portable.
Stas Boukarev [Sat, 3 Aug 2013 00:52:57 +0000 (04:52 +0400)]
%measure-dotimes: Make it portable.

4 years ago(declare ((unsigned-byte 16))) => (declare (type (unsigned-byte 16))), because ECL...
Stas Boukarev [Sat, 3 Aug 2013 00:49:17 +0000 (04:49 +0400)]
(declare ((unsigned-byte 16))) => (declare (type (unsigned-byte 16))), because ECL thinks it knows better than to accept valid CL.

4 years agoExport qobject-deleted.
Stas Boukarev [Fri, 19 Jul 2013 19:31:17 +0000 (23:31 +0400)]
Export qobject-deleted.

4 years agoqt.asd: Add :license and :description.
Stas Boukarev [Thu, 18 Jul 2013 14:17:12 +0000 (18:17 +0400)]
qt.asd: Add :license and :description.

4 years agomake-optimized: put (safety 0) around the body where no user code
Stas Boukarev [Tue, 4 Jun 2013 21:29:30 +0000 (01:29 +0400)]
make-optimized: put (safety 0) around the body where no user code
evaluation happens. Reduces code size on SBCL significantly.

5 years agoSimplify make-optimized further.
Stas Boukarev [Wed, 15 May 2013 16:20:39 +0000 (20:20 +0400)]
Simplify make-optimized further.

5 years agoReduce expansion size of make-optimized.
Stas Boukarev [Sat, 20 Apr 2013 14:05:24 +0000 (18:05 +0400)]
Reduce expansion size of make-optimized.

5 years agoMake CFFI happy with structs.
Stas Boukarev [Mon, 25 Mar 2013 14:03:26 +0000 (18:03 +0400)]
Make CFFI happy with structs.

5 years agoDon't cache metaobjects, we take ours from slots, and programs
Stas Boukarev [Sun, 24 Mar 2013 13:03:32 +0000 (17:03 +0400)]
Don't cache metaobjects, we take ours from slots, and programs
shouldn't need to access it through #_metaObject.

5 years agoInline map-casted-object-pointer.
Stas Boukarev [Sun, 24 Mar 2013 12:46:44 +0000 (16:46 +0400)]
Inline map-casted-object-pointer.

5 years agoClean up can-marshal-p.
Stas Boukarev [Sun, 24 Mar 2013 12:39:07 +0000 (16:39 +0400)]
Clean up can-marshal-p.

5 years agoRemove more unused functions and variables.
Stas Boukarev [Sun, 24 Mar 2013 12:26:09 +0000 (16:26 +0400)]
Remove more unused functions and variables.

5 years agoPut note-deleted calls back, non-qobject objects do notify about their deletion.
Stas Boukarev [Sun, 24 Mar 2013 12:23:42 +0000 (16:23 +0400)]
Put note-deleted calls back, non-qobject objects do notify about their deletion.

5 years agoRemove with-object, with-objects should be used instead.
Stas Boukarev [Sun, 24 Mar 2013 12:09:35 +0000 (16:09 +0400)]
Remove with-object, with-objects should be used instead.

5 years agoRemove PRIMITIVE class, it's only used for enums now.
Stas Boukarev [Sun, 24 Mar 2013 12:08:23 +0000 (16:08 +0400)]
Remove PRIMITIVE class, it's only used for enums now.

5 years agoqobject: Instead of using a dedicated DELETED slot, set POINTER to :deleted.
Stas Boukarev [Sun, 24 Mar 2013 11:59:50 +0000 (15:59 +0400)]
qobject: Instead of using a dedicated DELETED slot, set POINTER to :deleted.

5 years agoTransform NEW into a macro, to get it a chance to be optimized.
Stas Boukarev [Sun, 24 Mar 2013 11:42:48 +0000 (15:42 +0400)]
Transform NEW into a macro, to get it a chance to be optimized.

5 years agoClean up: dynamic-object no longer needs to have qt-class metaclass.
Stas Boukarev [Sun, 24 Mar 2013 11:23:40 +0000 (15:23 +0400)]
Clean up: dynamic-object no longer needs to have qt-class metaclass.

5 years agodeletion_callback: Don't pass smoke object, it's not used.
Stas Boukarev [Sun, 24 Mar 2013 11:09:01 +0000 (15:09 +0400)]
deletion_callback: Don't pass smoke object, it's not used.

5 years agoRemove guess-stack-item-slot: unused.
Stas Boukarev [Sun, 24 Mar 2013 11:08:40 +0000 (15:08 +0400)]
Remove guess-stack-item-slot: unused.

5 years agoSimplify the way objects are cached, just strongly cache everything.
Stas Boukarev [Sun, 24 Mar 2013 11:04:37 +0000 (15:04 +0400)]
Simplify the way objects are cached, just strongly cache everything.

Remove the code which was supposed to handle automatic memory
management, it was disabled by default, but could be reinstated in
the future.

5 years agoOptimize marshalling: pass stack items as two arguments, stack and
Stas Boukarev [Sun, 24 Mar 2013 09:57:58 +0000 (13:57 +0400)]
Optimize marshalling: pass stack items as two arguments, stack and
offset, not stack+offset.

5 years agocached-values-bind: Use svref instead of aref.
Stas Boukarev [Sat, 23 Mar 2013 15:01:53 +0000 (19:01 +0400)]
cached-values-bind: Use svref instead of aref.

5 years agounmarshaller-2: Micro-optimization.
Stas Boukarev [Mon, 11 Mar 2013 05:51:51 +0000 (09:51 +0400)]
unmarshaller-2: Micro-optimization.

5 years agoFix emit-signal marshalling of references and pointers to objects.
Stas Boukarev [Sat, 9 Mar 2013 18:57:45 +0000 (22:57 +0400)]
Fix emit-signal marshalling of references and pointers to objects.

5 years agoSignals with uint and ulong types couldn't be used.
Stas Boukarev [Sat, 9 Mar 2013 16:33:23 +0000 (20:33 +0400)]
Signals with uint and ulong types couldn't be used.

5 years agoAdd a compiler macro for emit-signal.
Stas Boukarev [Wed, 6 Mar 2013 17:11:21 +0000 (21:11 +0400)]
Add a compiler macro for emit-signal.

5 years agoPut parts of the signal invocation code onto the C++ side.
Stas Boukarev [Tue, 5 Mar 2013 20:19:17 +0000 (00:19 +0400)]
Put parts of the signal invocation code onto the C++ side.

5 years ago#_: Exit earlier when *read-suppress* is T.
Stas Boukarev [Wed, 27 Feb 2013 00:13:23 +0000 (04:13 +0400)]
#_: Exit earlier when *read-suppress* is T.

5 years agoFix .asd to recompile .so when needed.
Stas Boukarev [Tue, 26 Feb 2013 22:55:35 +0000 (02:55 +0400)]
Fix .asd to recompile .so when needed.

5 years agomake-optimized: Add dynamic-extent declaration for args.
Stas Boukarev [Mon, 11 Feb 2013 16:03:52 +0000 (20:03 +0400)]
make-optimized: Add dynamic-extent declaration for args.

5 years ago#_delete qvariants.
Stas Boukarev [Sun, 10 Feb 2013 16:35:43 +0000 (20:35 +0400)]
#_delete qvariants.

5 years agoBetter error messages for #_.
Stas Boukarev [Sun, 10 Feb 2013 16:23:46 +0000 (20:23 +0400)]
Better error messages for #_.

5 years agoRemove old unneeded files.
Stas Boukarev [Sun, 10 Feb 2013 09:23:11 +0000 (13:23 +0400)]
Remove old unneeded files.

5 years agoAdd cast function for casting objects.
Stas Boukarev [Sun, 10 Feb 2013 09:21:13 +0000 (13:21 +0400)]
Add cast function for casting objects.

5 years agomap-methods-in-module: Don't start from 0, there's no methods there.
Stas Boukarev [Sat, 9 Feb 2013 22:25:07 +0000 (02:25 +0400)]
map-methods-in-module: Don't start from 0, there's no methods there.

5 years agopackage.lisp: Remove stale exports.
Stas Boukarev [Sat, 9 Feb 2013 17:01:55 +0000 (21:01 +0400)]
package.lisp: Remove stale exports.

5 years agoStray inline declaration left from renaming.
Stas Boukarev [Sat, 9 Feb 2013 16:09:31 +0000 (20:09 +0400)]
Stray inline declaration left from renaming.

5 years agoFix qclass classification, namespace was missing and mixed with undefined.
Stas Boukarev [Sat, 9 Feb 2013 16:07:19 +0000 (20:07 +0400)]
Fix qclass classification, namespace was missing and mixed with undefined.

5 years agomap-classes-in-module, map-types-in-module: Fix off by one error.
Stas Boukarev [Sat, 9 Feb 2013 16:04:23 +0000 (20:04 +0400)]
map-classes-in-module, map-types-in-module: Fix off by one error.

5 years ago#_: Support alternative parenthesis characters, by comparing
Stas Boukarev [Fri, 8 Feb 2013 01:44:43 +0000 (05:44 +0400)]
#_: Support alternative parenthesis characters, by comparing
macro-character functions to #\) macro-character function.

5 years agoFix reading forms like (#_x 1 #|x|#).
Stas Boukarev [Fri, 8 Feb 2013 01:28:08 +0000 (05:28 +0400)]
Fix reading forms like (#_x 1 #|x|#).

5 years agoFix read-list-until: skip over white-space.
Stas Boukarev [Fri, 8 Feb 2013 00:41:47 +0000 (04:41 +0400)]
Fix read-list-until: skip over white-space.

5 years agoAdd a couple more tests.
Stas Boukarev [Thu, 7 Feb 2013 01:19:50 +0000 (05:19 +0400)]
Add a couple more tests.

5 years agowith-signals-blocked: use #_, it can be used for macros now.
Stas Boukarev [Wed, 6 Feb 2013 23:31:18 +0000 (03:31 +0400)]
with-signals-blocked: use #_, it can be used for macros now.

5 years agomake-optimized: Reduce consing even more by not consing constant
Stas Boukarev [Wed, 6 Feb 2013 17:22:34 +0000 (21:22 +0400)]
make-optimized: Reduce consing even more by not consing constant
tails, not just fully constant lists.

5 years agoOptimize make-optimized, don't cons constant arguments.
Stas Boukarev [Sun, 3 Feb 2013 21:39:54 +0000 (01:39 +0400)]
Optimize make-optimized, don't cons constant arguments.

5 years agoOptimize unmarshalling: add const and & variants of types to the
Stas Boukarev [Sat, 2 Feb 2013 16:05:09 +0000 (20:05 +0400)]
Optimize unmarshalling: add const and & variants of types to the
hashtable, instead of stripping them each time.

5 years agoAdd enum-andc, the same as enum-or, but for logandc2.
Stas Boukarev [Wed, 30 Jan 2013 21:37:43 +0000 (01:37 +0400)]
Add enum-andc, the same as enum-or, but for logandc2.

5 years agoAdd double& (qreal) marshalling.
Stas Boukarev [Sat, 26 Jan 2013 17:22:55 +0000 (21:22 +0400)]
Add double& (qreal) marshalling.

5 years agoImplement #_ without temporary macros, expand into ((lambda () ...)) instead.
Stas Boukarev [Fri, 25 Jan 2013 16:50:45 +0000 (20:50 +0400)]
Implement #_ without temporary macros, expand into ((lambda () ...)) instead.
Temporary macros do not work well with options to defclass, since they
may not be around the next time defclass is evaluated
(like loading from fasls in another image).

5 years agoinform-cpp-about-override: Search the method in all class superclasses.
Stas Boukarev [Thu, 24 Jan 2013 13:39:27 +0000 (17:39 +0400)]
inform-cpp-about-override: Search the method in all class superclasses.

5 years agoSignal a warning when overriding a non-existent method.
Stas Boukarev [Sun, 20 Jan 2013 15:15:54 +0000 (19:15 +0400)]
Signal a warning when overriding a non-existent method.

5 years agomethod-applicable-p: Make sure that the number of args is correct.
Stas Boukarev [Fri, 18 Jan 2013 11:33:06 +0000 (15:33 +0400)]
method-applicable-p: Make sure that the number of args is correct.

5 years agoFix qclass-find-applicable-method when nothing is found.
Stas Boukarev [Fri, 18 Jan 2013 06:53:30 +0000 (10:53 +0400)]
Fix qclass-find-applicable-method when nothing is found.

5 years agoLess consing method unmarshalling in override callbacks.
Stas Boukarev [Fri, 18 Jan 2013 05:56:04 +0000 (09:56 +0400)]
Less consing method unmarshalling in override callbacks.

5 years agoqvariant: Add an explanation comment.
Stas Boukarev [Fri, 18 Jan 2013 05:44:22 +0000 (09:44 +0400)]
qvariant: Add an explanation comment.

5 years agostop-overriding: new public function. Works like call-next-qmethod,
Stas Boukarev [Fri, 18 Jan 2013 05:28:54 +0000 (09:28 +0400)]
stop-overriding: new public function. Works like call-next-qmethod,
but doesn't return, it proceeds calling the original Qt method.
Should be used for optimization.

5 years agoLess consing qsubclassp.
Stas Boukarev [Thu, 17 Jan 2013 20:01:07 +0000 (00:01 +0400)]
Less consing qsubclassp.

5 years agoLess consing method-applicable-p.
Stas Boukarev [Thu, 17 Jan 2013 19:56:59 +0000 (23:56 +0400)]
Less consing method-applicable-p.

5 years agoLess consing qclass-find-applicable-method.
Stas Boukarev [Thu, 17 Jan 2013 19:36:55 +0000 (23:36 +0400)]
Less consing qclass-find-applicable-method.

5 years agoMore comprehensive QVariant marshalling.
Stas Boukarev [Thu, 17 Jan 2013 19:26:35 +0000 (23:26 +0400)]
More comprehensive QVariant marshalling.

5 years agoproperty.lisp: Remove manual QVariant unmarshalling, since QVariant are now handled...
Stas Boukarev [Tue, 4 Jan 2011 14:48:42 +0000 (17:48 +0300)]
property.lisp: Remove manual QVariant unmarshalling, since QVariant are now handled automatically.

5 years agounvariant: Don't discard unvarianted NIL.
Stas Boukarev [Tue, 4 Jan 2011 14:47:45 +0000 (17:47 +0300)]
unvariant: Don't discard unvarianted NIL.

5 years agoqvariant.lisp:
Stas Boukarev [Tue, 4 Jan 2011 14:20:48 +0000 (17:20 +0300)]
qvariant.lisp:
* Sort *qvariant-types* by codes.
* Make *qvariant-map* as large as needed.
* Use #'identity for invalid QVariants (with type 0).

5 years agoUnmarshall all QVariant types which has toType conversion functions.
Stas Boukarev [Tue, 4 Jan 2011 14:10:34 +0000 (17:10 +0300)]
Unmarshall all QVariant types which has toType conversion functions.

5 years agoFix metaobject retrieval of dynamic-object on the lisp side.
Stas Boukarev [Thu, 17 Jan 2013 19:23:19 +0000 (23:23 +0400)]
Fix metaobject retrieval of dynamic-object on the lisp side.