summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* make it possible to add extra paths with scriptsHEADmasterJesper K. Pedersen2013-06-034-0/+14
| | | | | Change-Id: I270dc67545d27cd3177414112f14684df63a70ad Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* no need to tell when a script runsJesper K. Pedersen2013-06-031-6/+0
| | | | | | | Removing this code makes it much less intrusive to run a script. In a similar vain, executing C-k l 12 doesn't print any messages either Change-Id: Iecd9627ddc6e2a9a793ee1603f9cc19b6c7731c3 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* load init script on start upJesper K. Pedersen2013-06-032-1/+7
| | | | | Change-Id: I8f37dc3d50558917cf2a39b4a407e815afd9e40c Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* use the AST to get arguments for a function callJesper K. Pedersen2013-05-294-2/+133
| | | | | Change-Id: Ie7ffbec02ad14a58f53924125ccc23e4e074a6e1 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* make it possible to get text from selectionJesper K. Pedersen2013-05-292-10/+26
| | | | | Change-Id: Iafbba49f5a0ca2c75034e64eaf856d3afa41c718 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* Wrap UI editors as text editorsJesper K. Pedersen2013-05-231-1/+8
| | | | | | | Reason for this is that the UI editor in text mode is read only Change-Id: Ice4a83b8d932407c2bc8716c68cae39ee13a3899 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* added a Yes/No question dialogJesper K. Pedersen2013-05-232-1/+14
| | | | | Change-Id: I5d27c0e367ebdc311aa259dc95ab50ef991a6413 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* make it possible to touch a file so it gets created if it doesn't existsJesper K. Pedersen2013-05-222-0/+8
| | | | | Change-Id: I876a4b6f683c2183925bf19300b88a9332db5514 Reviewed-by: Jesper K. Pedersen <jesper.pedersen@kdab.com>
* added a git objectJesper K. Pedersen2013-05-224-2/+120
| | | | | | | Unfortunately the whoel git project is Internal Change-Id: Ice31dea4ce0f2ab1eb9c5d9b98b47cf5b34a5fc1 Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
* added goto start/end of documentJesper K. Pedersen2013-05-212-0/+22
| | | | | Change-Id: Id1376e6507074ecca67e4d34357ae6bff0c6b41d Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* wonder why this was static, we are not using it as static anywayJesper K. Pedersen2013-05-211-1/+1
| | | | | Change-Id: Icfaada095a1640b85d8d93f81f0137985093b61f Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* wrap UI files correctlyJesper K. Pedersen2013-05-212-1/+9
| | | | | Change-Id: I70c1f7076225685ee40bf9944c3fbb2f09875c00 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* added a copyFile for scriptJesper K. Pedersen2013-05-212-0/+21
| | | | | Change-Id: I448a92119f58f41c290b0189e97895c5ec1a117f Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* converted slots into propertiesJesper K. Pedersen2013-05-212-6/+13
| | | | | Change-Id: Ifd4c6913021ff3d30b86ad6c37751883823fd10a Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* added switchHeaderSourceFileJesper K. Pedersen2013-05-212-0/+7
| | | | | Change-Id: I63df0ff201d8306aa02a2f6931c7af6a01a512a1 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* allow QFileInfo instance syntaxJesper K. Pedersen2013-05-211-8/+3
| | | | | | | | | | I'm sure some JavaScript god will make my life misserable, but with this change I can write: var cppPath = QFileInfo(cppFile).absolutePath rather than var cppPath = (new QFileInfo(cppFile)).absolutePath Change-Id: I71c34d56796e3b29b0c4005b1b165d84732903f5 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* we dont need Utils::subDirectories anymoreJesper K. Pedersen2013-05-213-8/+3
| | | | | Change-Id: I1b869ee3d10c4ccb4a32cedb28f7e4d53124e68c Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* implement a QDir prototype so it can be used from scriptsJesper K. Pedersen2013-05-2117-4/+728
| | | | | Change-Id: I990cbc42383c668345e65561e2eec3a135b16f60 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* implement a QFileInfo prototype so it can be used from scriptsJesper K. Pedersen2013-05-2111-2/+490
| | | | | Change-Id: I84755a64207d71451768981b725c1ce3bdeb0907 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* introduced subdirectory wrappersJesper K. Pedersen2013-05-216-6/+6
| | | | | Change-Id: I856083155eb437241ebabfed898a71c7827e9409 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* We don't use this wrapper anymore - cleanupJesper K. Pedersen2013-05-211-16/+0
| | | | | Change-Id: Iedc3f082af65036db0f5e9242201cf06c56a35b2 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* only report errors from array checks onceJesper K. Pedersen2013-05-211-4/+6
| | | | | Change-Id: I26aa350a6db84a8c9f90e5e76610be0f2e60366d Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* updated all copyright headersJesper K. Pedersen2013-05-1643-488/+1031
| | | | | Change-Id: I73985c8f2db0128ceba00be2e9b61301b406d1db Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* added extraction of current classJesper K. Pedersen2013-05-168-3/+312
| | | | | Change-Id: I27875a1f0848ccbf4ac40380618bdf1532bb31ec Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* make it possible to compare arrays from the C++ sideJesper K. Pedersen2013-05-161-6/+26
| | | | | Change-Id: I3cb0ae4c3648a4c61e5e2bbe1cca442814ee5161 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* do not crash when no editor has been foundJesper K. Pedersen2013-05-161-1/+5
| | | | | Change-Id: I12b1ed77c4cf03d18a902cdc789071a6302306f7 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* make it possible to run unit tests from the command lineJesper K. Pedersen2013-05-143-1/+23
| | | | | | | | Simply execute qtcreator like this: qtcreator -execute-script <path-to-tests-directory>/runtests.qs Change-Id: I60f706218af8653cc5cc945797062125d919f57c Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* the birth of a unit testing frameworkJesper K. Pedersen2013-05-1412-10/+332
| | | | | | Change-Id: Ibb634bce4db330167b1492bc7ce13f7af53a18c7 Reviewed-by: Jesper K. Pedersen <jesper.pedersen@kdab.com> Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* exporting close, so it is possible to close an editorJesper K. Pedersen2013-05-142-0/+7
| | | | | Change-Id: I1fb9143b7f2d525c2bd295b567213f650af6b575 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* added function deleteRegion to delete text between two pointsJesper K. Pedersen2013-05-132-0/+16
| | | | | Change-Id: I35deb6b24fb7ba61ac5c4e89b3804aa852e56d02 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* added function indent to indent current lineJesper K. Pedersen2013-05-132-0/+7
| | | | | Change-Id: I0fa411ebf8245493f8b497033bcf47b99ccab7a8 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* added example comment-out-current-function.qsJesper K. Pedersen2013-05-131-0/+17
| | | | | Change-Id: I9cfce1e924ea172cd23de2f1988e9d0690753c53 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* make the currentFunction into a propertyJesper K. Pedersen2013-05-131-0/+2
| | | | | | | | This is to make the scripting side more java script alike: editor.currentFunction.start rather than editor.currentFunction().start Change-Id: I4615b7112ee30a5850552fdfa053ecabdfa3b8b6 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* added start() to the function objectJesper K. Pedersen2013-05-134-0/+17
| | | | | Change-Id: Id07c67b94874af35f8badb1e9b8b7af724cb345d Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* simplify position handling on the scripting siteJesper K. Pedersen2013-05-135-11/+16
| | | | | | | | | | The script side do not need access to the native position format (which is characters from the beginning of the file) So instead return the Position object directly instead of the script side needing to call convertPosition Change-Id: I85f800e01d6d5786c873a18311ef9377375b4b00 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* Introduced the class PositionJesper K. Pedersen2013-05-139-11/+96
| | | | | | | | Using QPoint with x,y is very confusing on the scripting level, where the mental picture is line and columns rather than y,x Change-Id: I4d9353afa26879d9aa44436d56841f55a50723bd Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* fix for inconsistent 0 vs 1 behavior in QtCJesper K. Pedersen2013-05-131-1/+15
| | | | | Change-Id: I891407f993628a0e98565afd2642a24c85596e1b Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* change ownership so the object will be propertly destructedJesper K. Pedersen2013-05-132-1/+3
| | | | | Change-Id: I958f4811c477b6d1a25af9b36ae4b576666e2a8b Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* copied the registration functions over as they might be removedJesper K. Pedersen2013-05-133-8/+40
| | | | | Change-Id: Ic5a095de1f36e7926c0d45771db57dae5ab65b91 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* ported the work to masterJesper K. Pedersen2013-05-138-26/+30
| | | | | Change-Id: Iadf6b1c031883e085b13e5775662c7a135e1d971 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* it should be line,column to be consistentJesper K. Pedersen2013-05-072-3/+3
| | | | | Change-Id: Idd77b092953137a68f6da5a6b472b4f4b12db0f8 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* implement searchingJesper K. Pedersen2013-05-072-1/+84
| | | | | Change-Id: Ie90fcd1f14a9b8fa0b262c129edd3b248066d687 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* find doesn't do anything and has been removed from QtC masterJesper K. Pedersen2013-05-072-7/+0
| | | | | Change-Id: I38a5b549ed2af106b4f8c3e91ae28581734e9a7d Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* new object for keeping track of a possition in a fileJesper K. Pedersen2013-05-027-4/+152
| | | | | Change-Id: I21b7013b3524f6a453ad2e59db6c2985620affa8 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* improve error handlingJesper K. Pedersen2013-04-303-4/+12
| | | | | Change-Id: Id134d873cb1171c9f8b5cad90254828d93776cbd Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* implemented include() to load scriptsJesper K. Pedersen2013-04-308-60/+131
| | | | | Change-Id: I4e8a558fdb12f0a1e16551867274e35ac750fb04 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* There are no signal to wait for when the document is already openJesper K. Pedersen2013-04-251-0/+4
| | | | | Change-Id: Ie564778558577beb8fe55755550a5b9340fd79e5 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* Make it possible to extract information about methodsJesper K. Pedersen2013-04-259-2/+345
| | | | | Change-Id: Id4faec0c4b540ef040043b1c76ae07e628a29c0e Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* set id's so that the locator is correctly identified in the settings pageJesper K. Pedersen2013-04-181-0/+2
| | | | | Change-Id: Ief628843879a64fb22c65648a035ea3e82d6d8fc Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
* started an examples subdirectory of useful scriptsJesper K. Pedersen2013-04-181-0/+37
| | | | | Change-Id: Ie2db7a8a45fa09d7b41ce93ff09dce8c5bd15374 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>