Permalink
Browse files

Import GeanyGenDoc into geany-plugins

Things left to do:
 * Install the data files;
 * Waf build.


git-svn-id: https://geany-plugins.svn.sourceforge.net/svnroot/geany-plugins/trunk/geany-plugins@1380 e8383189-8249-0410-b506-acc975200cbd
  • Loading branch information...
1 parent b2e8477 commit b158f33052fee951a0edfa8256a3e17ad37625d5 @b4n b4n committed May 22, 2010
Showing with 8,542 additions and 0 deletions.
  1. +1 −0 Makefile.am
  2. +61 −0 build/geanygendoc.m4
  3. +1 −0 configure.ac
  4. +1 −0 geanygendoc/AUTHORS
  5. +674 −0 geanygendoc/COPYING
  6. +282 −0 geanygendoc/ChangeLog
  7. +365 −0 geanygendoc/INSTALL
  8. +11 −0 geanygendoc/Makefile.am
  9. 0 geanygendoc/NEWS
  10. +37 −0 geanygendoc/README.in
  11. +19 −0 geanygendoc/TODO
  12. +8 −0 geanygendoc/autogen.sh
  13. +90 −0 geanygendoc/configure.ac
  14. +1 −0 geanygendoc/data/Makefile.am
  15. +13 −0 geanygendoc/data/filetypes/Makefile.am
  16. +106 −0 geanygendoc/data/filetypes/c.conf
  17. +40 −0 geanygendoc/data/filetypes/vala.conf
  18. +1 −0 geanygendoc/docs/Makefile.am
  19. +20 −0 geanygendoc/docs/help/Makefile.am
  20. +293 −0 geanygendoc/docs/help/html4css1.css
  21. +68 −0 geanygendoc/docs/help/manual.css
  22. +535 −0 geanygendoc/docs/help/manual.rst
  23. +44 −0 geanygendoc/src/Makefile.am
  24. +262 −0 geanygendoc/src/ggd-doc-setting.c
  25. +98 −0 geanygendoc/src/ggd-doc-setting.h
  26. +203 −0 geanygendoc/src/ggd-doc-type.c
  27. +59 −0 geanygendoc/src/ggd-doc-type.h
  28. +994 −0 geanygendoc/src/ggd-file-type-loader.c
  29. +60 −0 geanygendoc/src/ggd-file-type-loader.h
  30. +249 −0 geanygendoc/src/ggd-file-type-manager.c
  31. +50 −0 geanygendoc/src/ggd-file-type-manager.h
  32. +177 −0 geanygendoc/src/ggd-file-type.c
  33. +67 −0 geanygendoc/src/ggd-file-type.h
  34. +91 −0 geanygendoc/src/ggd-macros.h
  35. +626 −0 geanygendoc/src/ggd-options.c
  36. +91 −0 geanygendoc/src/ggd-options.h
  37. +631 −0 geanygendoc/src/ggd-plugin.c
  38. +67 −0 geanygendoc/src/ggd-plugin.h
  39. +573 −0 geanygendoc/src/ggd-tag-utils.c
  40. +78 −0 geanygendoc/src/ggd-tag-utils.h
  41. +233 −0 geanygendoc/src/ggd-utils.c
  42. +70 −0 geanygendoc/src/ggd-utils.h
  43. +310 −0 geanygendoc/src/ggd-widget-doctype-selector.c
  44. +68 −0 geanygendoc/src/ggd-widget-doctype-selector.h
  45. +119 −0 geanygendoc/src/ggd-widget-frame.c
  46. +63 −0 geanygendoc/src/ggd-widget-frame.h
  47. +575 −0 geanygendoc/src/ggd.c
  48. +43 −0 geanygendoc/src/ggd.h
  49. +14 −0 po/POTFILES.in
View
@@ -4,6 +4,7 @@ plugins = \
geanydoc \
geanyextrasel \
geanygdb \
+ geanygendoc \
geanyinsertnum \
geanylatex \
geanylipsum \
View
@@ -0,0 +1,61 @@
+AC_DEFUN([GP_CHECK_GEANYGENDOC],
+[
+ AC_ARG_ENABLE(geanygendoc,
+ AC_HELP_STRING([--enable-geanygendoc=ARG],
+ [Enable GeanyGenDoc plugin [[default=auto]]]),,
+ [enable_geanygendoc=auto])
+
+ GTK_VERSION=2.12
+ GLIB_VERSION=2.14
+ GIO_VERSION=2.18
+ CTPL_VERSION=0.2
+
+ geanygendoc_have_gtk=no
+ geanygendoc_have_glib=no
+ geanygendoc_have_gio=no
+ geanygendoc_have_ctpl=no
+ if [[ x"$enable_geanygendoc" = "xauto" ]]; then
+ PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= ${GTK_VERSION}],
+ [geanygendoc_have_gtk=yes],
+ [geanygendoc_have_gtk=no])
+ PKG_CHECK_MODULES(GLIB, [glib-2.0 >= ${GLIB_VERSION}],
+ [geanygendoc_have_glib=yes],
+ [geanygendoc_have_glib=no])
+ PKG_CHECK_MODULES(GIO, [gio-2.0 >= ${GIO_VERSION}],
+ [geanygendoc_have_gio=yes],
+ [geanygendoc_have_gio=no])
+ PKG_CHECK_MODULES(CTPL, [ctpl >= ${CTPL_VERSION}],
+ [geanygendoc_have_ctpl=yes],
+ [geanygendoc_have_ctpl=no])
+ if [[ $geanygendoc_have_gtk = yes ]] &&
+ [[ $geanygendoc_have_glib = yes ]] &&
+ [[ $geanygendoc_have_gio = yes ]] &&
+ [[ $geanygendoc_have_ctpl = yes ]]; then
+ enable_geanygendoc=yes
+ else
+ enable_geanygendoc=no
+ fi
+ elif [[ x"$enable_geanygendoc" = "xyes" ]]; then
+ PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= ${GTK_VERSION}])
+ PKG_CHECK_MODULES(GLIB, [glib-2.0 >= ${GLIB_VERSION}])
+ PKG_CHECK_MODULES(GIO, [gio-2.0 >= ${GIO_VERSION}])
+ PKG_CHECK_MODULES(CTPL, [ctpl >= ${CTPL_VERSION}])
+ fi
+
+ AC_PATH_PROG([RST2HTML], [rst2html], [no])
+ AC_SUBST([RST2HTML])
+ AM_CONDITIONAL([BUILD_RST], [test "x$RST2HTML" != "xno"])
+
+ AM_CONDITIONAL(ENABLE_GEANYGENDOC, test $enable_geanygendoc = yes)
+ GP_STATUS_PLUGIN_ADD([GeanyGenDoc], [$enable_geanygendoc])
+
+ AC_CONFIG_FILES([
+ geanygendoc/README
+ geanygendoc/Makefile
+ geanygendoc/src/Makefile
+ geanygendoc/data/Makefile
+ geanygendoc/data/filetypes/Makefile
+ geanygendoc/docs/Makefile
+ geanygendoc/docs/help/Makefile
+ ])
+])
View
@@ -26,6 +26,7 @@ GP_CHECK_CODENAV
GP_CHECK_GEANYDOC
GP_CHECK_GEANYEXTRASEL
GP_CHECK_GEANYGDB
+GP_CHECK_GEANYGENDOC
GP_CHECK_GEANYINSERTNUM
GP_CHECK_GEANYLATEX
GP_CHECK_GEANYLIPSUM
View
@@ -0,0 +1 @@
+Colomban Wendling <ban@herbesfolles.org>
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,282 @@
+2010-05-22 Colomban Wendling <ban@herbesfolles.org>
+
+ * src/ggd-plugin.c:
+ Fix packing of the General frame not to expand unnecessarily, which
+ would break other expansions.
+ * TODO:
+ Add an entry in the TODO-list
+ * [All]
+ Import into Geany-Plugins.
+
+
+2010-05-21 Colomban Wendling <ban@herbesfolles.org>
+
+ * docs/help/manual.rst:
+ Add a new section in the manual that presents and describes the UI
+ that the plugin adds to Geany.
+ * src/ggd-file-type-loader.c, src/ggd-file-type-manager.c, src/ggd-options.c,
+ src/ggd-plugin.c, src/ggd-utils.c, src/ggd-widget-doctype-selector.c,
+ src/ggd.c:
+ Strings review
+ * src/ggd-plugin.c:
+ Open the manual on plugin_help()
+ * TODO, src/Makefile.am, src/ggd-plugin.c, src/ggd-plugin.h,
+ src/ggd-widget-doctype-selector.c, src/ggd-widget-doctype-selector.h:
+ Support per-filetype documentation type setting. This is useful since
+ different languages may not share the same doctype (e.g. Java is
+ likely to use Javadoc, Vala to use Valadoc, etc.).
+
+
+2010-05-20 Colomban Wendling <ban@herbesfolles.org>
+
+ * TODO, src/ggd-plugin.c:
+ Use an helper function to add menu items
+
+
+2010-05-11 Colomban Wendling <ban@herbesfolles.org>
+
+ * src/ggd-options.c:
+ Make option saving more robust against corrupted conffile.
+ Do not fail saving if the original file cannot be loaded, simply
+ overwrite with the new settings. This fixes configuration saving when
+ the configuration file does not exist or exists but is corrupted.
+
+
+2010-05-09 Colomban Wendling <ban@herbesfolles.org>
+
+ * configure.ac:
+ Show whether to build documentation on configure summary
+ * docs/help/manual.rst:
+ Clarify the manual by saying for what the syntax is used
+
+
+2010-05-04 Colomban Wendling <ban@herbesfolles.org>
+
+ * src/Makefile.am, src/ggd-plugin.c:
+ Add a menu item to open the manual
+ * Makefile.am, README.in, configure.ac, docs/Makefile.am,
+ docs/help/Makefile.am, docs/help/html4css1.css, docs/help/manual.css,
+ docs/help/manual.rst:
+ Add a manual and install it (and other missing documentation files).
+
+
+2010-05-01 Colomban Wendling <ban@herbesfolles.org>
+
+ * src/ggd.c:
+ Don't use a hard-coded list of what can have arguments.
+ Always generate arguments list if the tag have one.
+ In the same spirit, always generate the "returns" symbol too even
+ when it doesn't make sense; simply let the template use it or not.
+ * src/Makefile.am, src/ggd-plugin.c, src/ggd-widget-frame.c,
+ src/ggd-widget-frame.h:
+ Implement and use Glade-style frames.
+ This makes the UI quite nicer and more consistent with both Geany
+ and GNOME.
+ * TODO:
+ Update TODO list
+ * data/filetypes/Makefile.am,
+ data/filetypes/vala.conf:
+ Add basic rules for Vala
+ * src/ggd-tag-utils.c, src/ggd-tag-utils.h,
+ src/ggd.c:
+ Fix tag scope detection for non-c-style languages.
+ Don't use hard-coded "::" separator but try to find the right
+ separator for the file type.
+ * src/ggd.c:
+ Display a message when no setting applies to a tag.
+ This eases writing/debugging of rules, and is not that intrusive for
+ production use.
+ * configure.ac, src/ggd-plugin.c:
+ Decrease plugin API dependency to 171, which should be the actual
+ version we need and should make the plugin work with Geany 0.18.1.
+ * src/ggd-plugin.c, src/ggd-plugin.h, src/ggd.c:
+ Support for global environment overrides.
+ Add a global environment to allow overrides and additions to the
+ filetype-specific environments. This is useful e.g. to set a "insert
+ since" property that will apply to all filetypes, an this without
+ modifying filetypes themselves.
+ * src/Makefile.am:
+ Fix distribution of ggd-macros.h
+ * src/ggd.c:
+ Fix crash when documenting symbol with no rules set.
+ Don't try to access the GgdDocSetting.autodoc_children field if the
+ setting is NULL (oops).
+ * src/ggd.c:
+ Fix support of argument list and return type for methods.
+ Methods was just forgotten in the list of things that can have
+ arguments and return type (oops).
+
+
+2010-04-29 Colomban Wendling <ban@herbesfolles.org>
+
+ * src/ggd-doc-setting.c, src/ggd-doc-setting.h, src/ggd-doc-type.c,
+ src/ggd-doc-type.h, src/ggd-file-type-loader.c, src/ggd-file-type-loader.h,
+ src/ggd-file-type-manager.c, src/ggd-file-type-manager.h,
+ src/ggd-file-type.c, src/ggd-file-type.h, src/ggd-macros.h,
+ src/ggd-options.c, src/ggd-options.h, src/ggd-plugin.c, src/ggd-plugin.h,
+ src/ggd-tag-utils.c, src/ggd-tag-utils.h, src/ggd-utils.c, src/ggd-utils.h,
+ src/ggd.c, src/ggd.h:
+ Cleanup and fix copyright information:
+ * Don't use non-ASCII character;
+ * Don't include nickname in author's name;
+ * Update some outdated dates;
+ * Add a short description of the package.
+ * src/ggd-doc-setting.h, src/ggd-doc-type.h, src/ggd-file-type-loader.h,
+ src/ggd-file-type-manager.h, src/ggd-file-type.h, src/ggd-macros.h,
+ src/ggd-options.h, src/ggd-plugin.h, src/ggd-tag-utils.h, src/ggd-utils.h,
+ src/ggd.h:
+ Set the "internal" visibility for plugin's symbols. This cleans the
+ symbol table of the plugin, as well as it might allow the compiler
+ to do some optimizations.
+
+ This is currently only supported when building with GCC >= 4.2. Builds
+ with other/older compilers will simply keep their default symbol
+ visibility.
+
+
+2010-04-28 Colomban Wendling <ban@herbesfolles.org>
+
+ * src/ggd-plugin.c:
+ Show the "indent" preference in the plugin's preference dialog.
+ * src/ggd-plugin.c, src/ggd-plugin.h, src/ggd.c, src/ggd.h:
+ Indent the inserted comment according to the insertion position
+ indentation. This can be disabled by a (currently) hidden "indent"
+ preference.
+ Also use editor_insert_text_block() in place of sci_insert_text(),
+ which fixes line endings to be the right ones for the working file.
+ * src/ggd-plugin.c, src/ggd-plugin.h:
+ Plugin options are now available everywhere by including ggd-plugin.h.
+ Prefix the options with GGD_ since they are now exported.
+
+
+2010-04-26 Colomban Wendling <ban@herbesfolles.org>
+
+ * po/fr.po:
+ Update French translation
+ * src/ggd-plugin.c:
+ Add & cleanup some tooltips.
+ Add tooltips for the tool's menu items;
+ Cleanup the big tooltip of the save-to-refresh option.
+ * data/filetypes/c.conf:
+ Use new auto-generation of children documentation
+ Use auto-generation of children's documentation for structures, unions
+ and enumerations in Doxygen format.
+ * src/ggd-doc-setting.c, src/ggd-doc-setting.h, src/ggd-file-type-loader.c,
+ src/ggd-tag-utils.c, src/ggd-tag-utils.h, src/ggd.c:
+ Support automatic documentation of children
+ Allow a rule to request for automatic generation of its children
+ documentation. This is useful for fragmented documentation styles
+ such as Doxygen not to need to manually generate documentation for
+ each children of i.e. a structure.
+
+
+2010-04-24 Colomban Wendling <ban@herbesfolles.org>
+
+ * data/filetypes/c.conf:
+ Use new cursor positioning in C filetype configuration
+ * src/ggd.c:
+ Add support for the special "cursor" variable in templates, allowing
+ to explicitly place the cursor in the generated comment.
+ This variable may appear more than once but currently only the first
+ occurrence that appears in the output comment is honored.
+ * data/filetypes/c.conf:
+ Update C filetype configuration
+ gtkdoc:
+ * Don't document prototypes;
+ * Fill-in union rule.
+ doxygen:
+ * Add support for more types.
+ * src/ggd.c:
+ Fix "document all" when there are symbols not to document
+ The "document all" action was aborting if the setting for any tag
+ wasn't found rather than when something went actually wrong.
+ This fixes the action when called on a file that contains symbols
+ without rules.
+
+
+2010-04-22 Colomban Wendling <ban@herbesfolles.org>
+
+ * TODO, src/ggd-tag-utils.c:
+ Fix ordering of tag children
+ Make ggd_tag_find_children() return a sorted list of the tags, in the
+ order they appears in the source.
+ This fixes wrong order of some children such as structure members or
+ enumeration values that were sorted alphabetically.
+ * src/ggd-doc-setting.c, src/ggd-doc-setting.h, src/ggd-file-type-loader.c,
+ src/ggd-file-type-loader.h, src/ggd-file-type-manager.c,
+ src/ggd-file-type.c, src/ggd-options.c, src/ggd-options.h,
+ src/ggd-tag-utils.c, src/ggd-tag-utils.h, src/ggd-utils.c, src/ggd-utils.h,
+ src/ggd.c:
+ Add some code documentation
+ * TODO:
+ Update TODO list
+ * data/filetypes/c.conf:
+ C configuration: fix match of empty argument list
+ Cleanly support completely empty argument lists (foo()) used e.g. in
+ macros with no arguments.
+ * data/filetypes/c.conf:
+ Updated default C filetype configuration
+ * Added template for defines;
+ * Don't include since tag by default.
+ * configure.ac:
+ Fix installation directory of plugin's data (oops)
+ Install plugin's data in ${prefix}/geany/plugin/${plugin_name} rather
+ than ${prefix}/geany/{plugin_name}.
+ If you already have installed the plugin, simply delete the old
+ directory. Sorry for this.
+
+
+2010-04-21 Colomban Wendling <ban@herbesfolles.org>
+
+ * src/ggd-plugin.c:
+ Make editor's menu action work at the popup position
+ When inserting documentation by activating the editor's popup menu
+ item, insert documentation for the popup position rather than for
+ the cursor's position.
+ This fixes strange behavior when using editor's popup menu item.
+ * src/ggd-plugin.c:
+ Make menu items document-sensitive when it makes sense
+ * po/fr.po:
+ Update French translation
+ * src/ggd-plugin.c:
+ Add the "Document current symbol" item to the plugin's menu too
+ * src/ggd-plugin.c, src/ggd.c, src/ggd.h:
+ Add ability to document a whole file at once
+ * src/ggd-tag-utils.c, src/ggd-tag-utils.h:
+ Add sort direction argument to ggd_tag_sort_by_line()
+ Provide a way to chose sort direction (ascending or descending) with
+ ggd_tag_sort_by_line().
+ * src/ggd-tag-utils.c, src/ggd-utils.h:
+ Move GGD_PTR_ARRAY_FOR() to ggd-utils
+
+
+2010-04-20 Colomban Wendling <ban@herbesfolles.org>
+
+ * src/ggd-tag-utils.c, src/ggd-tag-utils.h:
+ Make tag find functions take a const array
+ Tag find functions actually doesn't and shouldn't have to modify the
+ the given tag list they work on.
+ * src/ggd-tag-utils.c, src/ggd-tag-utils.h:
+ Add ggd_tag_sort_by_line() function that sorts a tag array by tag's
+ line.
+ * src/ggd-tag-utils.c:
+ Improve tag search for a given line
+ Make ggd_tag_find_from_line() use only a linear search rather than
+ sorting the tag array and then doing an almost linear search.
+ Benefits are probable speed improvement (array sorting isn't a cheap
+ operation) and no more modification of the given tag array.
+
+
+2010-04-18 Colomban Wendling <ban@herbesfolles.org>
+
+ * AUTHORS, COPYING, INSTALL, Makefile.am, README.in, TODO, autogen.sh,
+ configure.ac, data/Makefile.am, data/filetypes/Makefile.am,
+ data/filetypes/c.conf, po/LINGUAS, po/POTFILES.in, po/fr.po,
+ src/Makefile.am, src/ggd-doc-setting.c, src/ggd-doc-setting.h,
+ src/ggd-doc-type.c, src/ggd-doc-type.h, src/ggd-file-type-loader.c,
+ src/ggd-file-type-loader.h, src/ggd-file-type-manager.c,
+ src/ggd-file-type-manager.h, src/ggd-file-type.c, src/ggd-file-type.h,
+ src/ggd-options.c, src/ggd-options.h, src/ggd-plugin.c, src/ggd-plugin.h,
+ src/ggd-tag-utils.c, src/ggd-tag-utils.h, src/ggd-utils.c, src/ggd-utils.h,
+ src/ggd.c, src/ggd.h:
+ Initial commit of the plugin
Oops, something went wrong.

0 comments on commit b158f33

Please sign in to comment.