Commit Graph

12 Commits

Author SHA1 Message Date
Friedemann Kleint
f7b09f137c Customwizard: Remove unused code. 2010-09-06 16:33:44 +02:00
Friedemann Kleint
14f009da05 Custom wizards: Enhance generator script
following suggestions. Introduce argument syntax in XML allowing for
fine-grained control of handling (omitting empty values, use
temporary files).
2010-09-03 14:27:13 +02:00
Friedemann Kleint
c6132a05f3 Customwizards: Add a way of wrapping a Generator script.
Add attribute to XML syntax specifying a script to generate files.
The script must provide a --dry-run mode in which it prints the files
it intends to create and their attributes to stdout.
Rework the CustomWizardContext structure to contain target path
and parameter mappings, simplify some code there.
2010-09-01 13:27:24 +02:00
hjk
64e4a8f7ae Merge remote branch 'origin/2.0'
Conflicts:
	share/qtcreator/gdbmacros/dumper.py
	share/qtcreator/gdbmacros/gdbmacros.py
	src/plugins/projectexplorer/customwizard/customwizardparameters.cpp
2010-08-13 11:19:44 +02:00
Friedemann Kleint
b44efd097b Custom wizard: Add boolean 'enabled' attribute to <wizard>.
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2010-08-13 11:10:11 +02:00
Friedemann Kleint
ba6b52ce14 Customwizard: Add a simple preprocessor.
Allowing for nesting sections depending on Javascript expression using
the (expanded) wizard field variables as in:

-- test.pro.template:
QT = core
@if "%NETWORK_CHECKBOX%" == "true"
QT += network
@endif
Rubber-stamped-by: Alessandro Portale <alessandro.portale@nokia.com>
2010-07-09 08:31:46 +02:00
Friedemann Kleint
280541aec9 Template-CustomWizard: Make QComboBox parameters more flexible.
Separate value and display text for the entries, use
in ListModel example.
Rubber-stamped-by: aportale <alessandro.portale@trolltech.com>
2010-07-08 11:46:11 +02:00
Friedemann Kleint
0a643a1994 Wizards: Open a relevant file in editor after the wizard run
Remove all hacks/conventions of considering the last generated
file as project file, etc. and instead add attributes flags to
Core::GeneratedFile, giving fine-grained control of what to do
with the file. Implement static utility functions in wizards
that handle it. Add boolean XML-attributes "openeditor"/"openproject"
to the file elements used by the CustomWizard XML-specification.
Manually set the attributes in all wizards.

Task-number: QTCREATORBUG-1166
2010-04-16 15:55:38 +02:00
Friedemann Kleint
04509bcf0d Custom wizards: Lower case all tags, prepare translations.
Prepare translations of wizards shipped by Nokia to be searched
in Qt Creator's qm-files.
2010-03-31 16:31:26 +02:00
Friedemann Kleint
5bc886c5b6 Custom wizards: Make it possible to use fields in default texts.
Pass around shared context containing basic replacement map.
CustomProjectWizard adds %ProjectName% to it obtained from signal
BaseProjectWizardDialog::introPageLeft(). Move replacement code into
context. Add new modifier 'c' for capitalizing words.
2010-03-22 15:33:33 +01:00
Friedemann Kleint
64bf3ef1d2 Custom wizards: Add option -customwizard-verbose. 2010-03-17 15:17:03 +01:00
Friedemann Kleint
1606cf1b33 Wizards/Custom Wizards: Add code.
Task-number: QTCREATORBUG-423
2010-03-12 11:20:32 +01:00