8 Commits

Author SHA1 Message Date
kh1
00c6f94d1d Add test for default script engine properties.
Change-Id: Id07a6ffd193e032439d008878d6526806ef24c9f
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2014-06-03 10:52:01 +02:00
kh1
8addcf763b Replace script with js engine.
Change-Id: Ic9c88e27dca1e936ba09a3776df3df7ec166c606
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2014-06-03 10:51:51 +02:00
Tim Jenssen
016cdad413 Restart on the wizard needs to cleanup component left-overs
- use two different script engine instances
    - one which lives from the beginning -> the controlScriptEngine
    - the other one which will be reset if there are some new repositories
      loaded
  - now the core has a pointer to the gui object, but it should only be
    used by the script engine so a QObject type should be enough
  - engines are deleted as QObject children from the PackageManagerCore
  - registered downloaded archives are removed

Change-Id: I60a4a32fb2e409059839ec11b10c57357454f57a
Reviewed-by: Michal Klocek <michal.klocek@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-11-06 16:51:35 +01:00
Tim Jenssen
7a5aa97c9b remove slotCurrentPageChanged and call it directly
- also renamed it to better name: executeControlScript

Change-Id: Id2bb7cada2386561c2b25b158c6aa101382e5cc4
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-09-30 10:49:48 +02:00
Tim Jenssen
dfbb731676 add exceptionhandler code for connected signals/JS methods
- there wasn't any error information if a C++ triggered signal resulted
   in a JS method which has an error, now it will create an exception for it
 - creating messagebox inside the lib is something what we want to avoid,
   so the developer itself is responsible to catch these exceptions
 - most cases of the installer code does that already

Change-Id: I07486f73be9de13a486de235f14e3a7d7b54f5b1
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-06-03 16:35:28 +02:00
Tim Jenssen
802fe64d72 fix crash in scriptengine autotest
- destructor deletes components, so there was a double deletion

Change-Id: I5c4f14bb3b964297be542821d10a7ebb27925af5
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-05-22 18:14:00 +02:00
Tim Jenssen
37e436add7 fix scriptengine autotest
- since we are using one scriptengine the component needs to be
   registered on the packagemangercore to load the script

Change-Id: I931b75e8d68328c2317dd4a55ab9cc298229caba
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-05-22 17:45:05 +02:00
Tim Jenssen
06449248ab introduce installerscriptengine
- it uses one scriptengine for everything and adds the components
   or/and the install-controller in javascript closure contexts
 - added the gui object to the component script context
 - removed tabController from controlscript context

Change-Id: I3bd6c5dcf470666c30add1b7d04a8fdd094f5f11
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-05-16 16:12:52 +02:00