And add a mechanism to copy the old .gps directory to .gnatstudio
the first time. Rename keys6.xml to keys.xml when importing the old
.gpr directory.
Change-Id: I1e1ea2c123ae772a547561737e2309d4c081f239
Replace almost everywhere Control_Mask by Primary_Mod_Mask, or "control-*" by
"primary-*"
* common/ui/gui_utils.adb:
Replace the specific support for the cmd key with the more general support of
primary modifier key.
For MA25-032
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@218216 936e1b1b-40f2-da11-902a-00137254ae57
Modify it so that it works with latest GPS version: apparently it's no
longer possible to bind the same key twice for two different contexts,
so we can only support Ada files for now.
Part of I119-037
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@136079 936e1b1b-40f2-da11-902a-00137254ae57
Add missing styles.
* docgen.jpg:
Add an example of docgen output.
* gps.texi:
Add a more complete description of the default tags, as well as an example.
* doc.py:
Adapt this example to the new docgen module.
* docgen_base_tags.py:
Improve display of parameters.
Minor corrections and documentation completion for HB07-009
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@132507 936e1b1b-40f2-da11-902a-00137254ae57
provide an easy way to highlight regular expressions in editors
without duplicating possibly tricky code.
("character_added" hook): also called when a character has been removed
(it seems that a script using this hook is interesting in both kind
of changes anyway, and for backward compatibility with we want to keep
this hook anyway -- the character added is considered to be control-h (8)
in such a case)
remove obsolete examples as a result
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@131361 936e1b1b-40f2-da11-902a-00137254ae57
New template handling global indexes links. This allows easier custom index
creation.
* navigation.tmpl:
Use navbutton for handling global indexes links. This allows easier custom
index creation.
* docgen.js:
h3 tags are now shown by default.
* userdef.tmpl:
New template for user-defined index creation.
* docgen2-entities.adb:
(EInfo_Free): Do not free the E_Info lists, as all entity_info are freed now
directly from the global einfo_map.
(Free*): Adapt to the new way of freeing E_Info objects.
* docgen2-entities.ads:
(Free): Remove obsolete. Add a new Free procedure for Entity_Info_Map maps.
* docgen2-hooks.adb:
Remove this package, as we don't use hooks anymore, but python class instead.
* docgen2-hooks.ads:
Remove this package, as we don't use hooks anymore, but python class instead.
* docgen2-scripts.adb:
New package handling GPS.Docgen and GPS.DocgenTagHandler python classes.
* docgen2-scripts.ads:
New package handling GPS.Docgen and GPS.DocgenTagHandler python classes.
* docgen2-tags.adb:
Major reorganisation, so that comment tags are analysed just after the global
entity_info database is built, but before the on_exit callbacks are called.
* docgen2-tags.ads:
(Analyse_Comments): Do not analyse all comments at once, as we now need to have
the attached entity informations for user tag callback purpose.
(To_String): Now that the complete analysis is done in Analyse_Comments, we
just need to retrieve the raw block in this method.
(Comment_Type): Remove the XML tree, as this is now only used locally in
Analyse_Comment.
* docgen2.adb:
Major reformatting of the code: simplify most procedure calls and structure
contents, to make sure that datas are kept coherent. Re-order the way we
generate some informations in the doc, so that we can safely call the
user's callbacks when appropriate.
Add support for user-defined tag handlers.
* docgen2.ads:
(Docgen_Options): Remove the Keep_Formatting field, not modifiable anyway,
and also remove the User_Tags fields, now much better handled via python
GPS.Docgen class.
(Docgen_Object, Get_Kernel, Get_Backend, Get_Options, Get_Doc_Directory,
Get_Current_File): New methods and objects to allow better data sharing
between the different parts of the docgen module.
* docgen2_backend-html.adb:
(Get_Template): Adapt to Template_Kind modifications.
(Filter): Use the method in String_Utils.
* docgen2_backend.ads:
(Tmpl_TOC): Remove, obsoleted with previous check-ins
(Tmpl_User_Defined_File): New template for user generated index files.
* docgen2_module.adb:
(Docgen_Module_Record, Get_Tags, On_Preferences_Changed): Remove
User_Tags_List, now unused.
(Register_Commands): Register the commands defined in Docgen2.Scripts.
(Register_Module): Remove User_Tags_List initialisation, remove call to
obsolete Docgen2.Hooks.
* docgen_gtkada.py:
Add example for user tag handling. This example allows documentation of some
of the GtkAda tags.
* shell_commands.xml:
(docgen_start_hook, docgen_fiinished_hook, docgen_user_tag_action_hook):
Remove documentation for those already obsolete hooks.
(GPS.Docgen*): Add documentation for the new GPS.Docgen and
GPS.DocgenTagHandler classes.
Remove the docgen hooks, and replace by a python class which is much more
easier and powerful to manipulate.
Correct also H901-008: the CR/LF problem in annotated sources, the default
expansion in the API pages, and the comments are now keeping the original
layout when appropriate (no user tag).
Part of GC19-017
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@128359 936e1b1b-40f2-da11-902a-00137254ae57
examples/python to share/libary.
Move align.py from library to plug-ins.
Part of H103-005
Minor reformatting.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@126716 936e1b1b-40f2-da11-902a-00137254ae57