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
(Show_Command_Cst, Register_Commands): New parameter Show_Command.
(Custom_Action_Record): Handle remote actions and the new Show_Command
parameter.
(Execute): Spawn the process in Execute if not done in Custom_Spawn_Handler:
this allow command queuing required for remote sync operations. Handle the new
Show_Command parameter, allowing the display of the command line on the
Messages console.
(Get_New_Queue_Id): Used to create unique queue id, used in remote
synchronisation commands queing.
(Custom_Spawn_Handler): Do not spawn directly the process in case of remote
execution, to allow asynchronous execution (after sync operation). Enqueue
remote syncronisation commands when needed. Handle the new Show_Command
parameter.
* gnatclean.py:
(clean_project): Instruct Process to show the command line when executing the
gnatclean command.
* gps-kernel-scripts.adb:
(File_Name_Prameters, Register_Default_Script_Commands,
Create_File_Command_Handler): Add a new parameter to File.name() command
allowing the retrieval of the file translation path on a remote server.
* gps-kernel-remote.adb:
(From_Callback_Data_Sync_Hook, Create_Callback_Data, Synchronize): Handle a new
rsync hook parameter: print_command.
(Synchronize, On_Project_Changing): New parameter print_command, allowing the
rsync command to be printed on the Messages console.
* gps-kernel-remote.ads:
(Rsync_Hook_Args): New rsync hook parameter: print_command.
(Synchronize): New parameter print_command, allowing the rsync command to be
printed on the Messages console.
* gps-kernel-timeout.adb:
(Launch_Process): Modification due to the new Synchronize's Print_Command
parameter
* remote_sync_module.adb:
(Launch_Process): Handle the new hook parameter Print_Command.
* remote_views.adb:
(On_Sync_Menu_Clicked): Modification due to the new Synchronize's Print_Command
parameter
* shell_commands.xml:
(GPS.File.name): documentation of the new remote_server parameter.
(GPS.Process): modify the "remote_server" declaration according to the rest of
the documentation. Add documentation for "show_command". Remove the documented
exception raised (no more raise as the process is spawned asynchronously).
Full handling of remote operations from python scripts: the GPS.Process class
now handle remote operations with automatic rsync, the File class now handle
retrieval of a File path on a remote server.
GPS.Process now allows display of the command line the same way as done from
Ada, for consistency.
Correction of GC19-019
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120605 936e1b1b-40f2-da11-902a-00137254ae57
values are initialized at the time the script is loaded and this does not work
in the remote case.
For GC14-012.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120513 936e1b1b-40f2-da11-902a-00137254ae57
implementation and add a comment about its current limitations.
For GC14-012.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120336 936e1b1b-40f2-da11-902a-00137254ae57