Commit Graph

28 Commits

Author SHA1 Message Date
Mitch Curtis
1635e53ea2 Place each statement of default snippets on their own line.
Change-Id: Ia10d41887e6adbb0603a18fbf69bb1ce67eeac73
Task-number: QTCREATORBUG-12253
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2014-11-14 11:35:33 +01:00
Tobias Hunger
ee47b652a6 Snippets: Allow lowercase/titlecase/uppercase modifiers for variables
Use the same syntax already used in the custom wizard to denote
variables that are modified to be lower-/title-/uppercase:

 $tESt:u$ will become TEST
 $tESt:c$ will become TESt
 $tESt:l$ will become test

The snippet will be inserted without any name mangling happening.
Once the editing is done the name mangling is applied to all fields.

Change-Id: I7c1f5a1ad2bb5acf1b88b54de51bb39391c64763
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-08-20 14:49:17 +02:00
Sergio Martins
01252c53df Remove semicolon from Q_PROPERTY snipplet.
Change-Id: I3e5ae3eb17701c7c0dceca53011ab9998449f531
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-07-16 13:57:30 +02:00
Christian A. Reiter
8be991b1ba add $type$ variable to Q_PROPERTY cpp snippet
Task-Number: QTCREATORBUG-7368
Change-Id: I7201a552baa7b9c92e129dcc2cc63cb1a4524dbd
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-03-27 09:11:02 +01:00
Nikolai Kosjar
660afe2a63 Editor: Add snippet for main function
Change-Id: Iec778663351a866432a215cb9ab90d6261763141
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-19 01:25:13 +01:00
Tobias Hunger
3f85291282 Add snippet for Q_PROPERTY
Change-Id: I7dd40f8da1ebd108748eb89fc84f7fbfce90e36b
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-02-12 15:43:43 +01:00
Yuchen Deng
237ddd0f91 Snippets: Add 'switch' trigger for C++ code snippets
Change-Id: Id8f860e1469d7e01e42fb39d3273817623aeded6
Merge-request: 2207
Reviewed-on: http://codereview.qt-project.org/6166
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-10-06 16:46:18 +02:00
Yuchen Deng
625b0ae6eb Snippets: Put the cursor in a more useful final position
e.g.
for (int $var$ = 0; $var$ &lt; $total$; ++$var$) {
$$
}

In final, we need put the cursor at the $$ position.
This makes the code easier to write.

Change-Id: Ied1e6f6bc15277dae43d3052bfb2543124afcb82
Merge-request: 2207
Reviewed-on: http://codereview.qt-project.org/6165
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-10-06 16:45:56 +02:00
Christian Kamm
0132e23385 Qml snippets: Improve NumberAnimation and PropertyAction.
Change-Id: I684a764797cd75a231f3da611ca6afeabdd48f61
Reviewed-on: http://codereview.qt-project.org/5835
Reviewed-by: Lasse Holmstedt
2011-10-05 09:07:29 +02:00
Christian Kamm
85d94ff51a QmlJS: Add qsTr to Text snippet.
Change-Id: I8ca84c7b42860ea7875206c9198d8a75905a1b45
Reviewed-on: http://codereview.qt.nokia.com/550
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-06-21 14:32:09 +02:00
Leandro Melo
e32cf192f7 Snippets: Rename a few QML snippets variables
Task-number: QTCREATORBUG-3803
2011-02-22 11:01:05 +01:00
Leandro Melo
898bc97cce Snippets: Make it flexible for adding builtin snippets
Instead of in one XML embedded as a resource, now builtin
snippets can be specified on any XML distributed under share.
2010-12-08 17:22:14 +01:00
Leandro Melo
7528c6d617 Snippets: Feature enhancement start...
Provide an interface so users can create/edit/remove snippets.
2010-12-08 17:22:07 +01:00
Thorbjørn Lindeijer
3051fd4c98 Removed QML snippets for effects, since they have been removed from QML
At least for now QML has no built in effects like DropShadow, Colorize
or Blur. So it makes no sense to keep the snippets for adding these.

Reviewed-by: Roberto Raggi
Reviewed-by: andre
2010-10-15 16:52:19 +02:00
Thorbjørn Lindeijer
0c0df86d30 Removed tab characters in QML Item snippet
Trivial fix.
2010-10-15 13:05:55 +02:00
Leandro Melo
5f13590372 Remove old and unused snippets file.
Reviewed-by: Alessandro Portale
2010-09-28 14:45:44 +02:00
Leandro Melo
769b2103a3 Snippets: Add more templates. 2010-09-27 10:31:41 +02:00
Leandro Melo
cafcce0c37 Add support for C++ snippets. 2010-09-24 20:22:03 +02:00
Thomas Hartmann
3ecdb94c5b QmlJsEditor.snipptes: keeping correct syntax for snippets
Reviewed-by: Roberto Raggi
2010-08-05 15:36:12 +02:00
Thorbjørn Lindeijer
a76773191d QML snippet: property has a name and a value, not two names 2010-07-15 16:24:01 +02:00
mae
4ae5d62699 Fix PropertyAction snippet
Reviewed-by: thorbjorn
2010-06-08 12:52:36 +02:00
Thorbjørn Lindeijer
3fea2a6b65 Removed unwanted space from QML property snippet
Task-number: QTCREATORBUG-1402
2010-05-18 13:01:22 +02:00
mae
8eedde33c5 Implement tooltips for snippets 2010-04-09 12:59:49 +02:00
Christian Kamm
d8535a23fe QmlJSEditor: Update snippets for Qml changes.
Task-number: QTCREATORBUG-1032
Reviewed-by: Erik Verbruggen
2010-04-06 10:21:47 +02:00
Nigel Hietala
4c37504540 Tweaks to snippets XML definition file 2010-01-19 23:16:25 +02:00
mae
5b8a678672 first iteration of snippet support for qml
Done with Thorbjorn and Roberto
2010-01-19 18:50:50 +01:00
Alessandro Portale
0a593aa448 Rename QtWorkbenchSnippet to QtCreatorSnippet
Rename qtworkbench to qtcreator
2009-05-08 16:43:16 +02:00
Daniel Molkentin
0f20a20b4c Fixes: Implement make install target, Step 1
Details: Moving files so that the local layout corresponds to the layout pushed by make install.
Adjust Make target, modify the resource path of the loader to find the resources in the
right place. All pathes are still looked up relative to binaryPath(), libs are found via
relative rpath.
2009-01-21 08:52:19 +01:00