comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Ada and Doxygen
Date: Sat, 27 Feb 2010 09:25:16 -0500
Date: 2010-02-27T09:25:16-05:00	[thread overview]
Message-ID: <umxyuvjqr.fsf@stephe-leake.org> (raw)
In-Reply-To: 68cf6a9d-240b-4970-98f0-fee32795f00d@e7g2000yqf.googlegroups.com

Vadim Godunko <vgodunko@gmail.com> writes:

> We are known current GNAT's style for comments. Each package has a
> description at the specification and each entity also has a
> description below its declaration in the specification. GPS shows such
> a comment in tooltips.
>
> Qt's uses another way. There are no comments in headers at all. This
> makes header files clean - it is very important for overview of the
> class. 

You are implying that the comments get in the way of an "overview".

That makes sense; if you are mostly familiar with a package, but
forget the exact names, or want to see if a particular function is
there, it would be useful to have a short list of just the functions.

Emacs supports this by hiding selected parts of the file; all
comments, for example. See hs-minor-mode (hs for hide-show). That also
hides blocks in bodies, but apparently it doesn't currently understand
Ada for that feature. I don't like the current keybindings, but that's
easy to fix.

> All comments are placed in the implementation files. Special tool
> parse both headers and implementation files, construct list of
> classes, its methods/signals/slots/etc; then parse implementation
> files and extracts description for each entity; links
> classes/methods/ slots/signals with their descriptions and construct
> complete documentation in HTML form, which can be hosted somewhere
> or read by browser. After that, another tool pack this documentation
> and all related resources into the one "database" which can be
> registered in the Qt Assistant to extend useful of it (Qt Assistant
> allows to do full text search for example). And even it is not a
> last step, when you use Qt Creator (IDE for Qt) and stay somewhere
> in the code, you can click key and Qt Creator opens description of
> class/method you stay on in the Qt Assistant documentation. It is
> very fast and useful!

This could be done for the Ada code by a tool similar to AdaBrowse,
and an Emacs key binding could pop up Qt Assistant from Ada code. 

If I start using QtAda more, I'll be motivated to do this.

-- 
-- Stephe



  parent reply	other threads:[~2010-02-27 14:25 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-24  8:39 Ada and Doxygen Hibou57 (Yannick Duchêne)
2010-02-24 10:10 ` Georg Bauhaus
2010-02-24 11:20   ` Hibou57 (Yannick Duchêne)
2010-02-24 13:05     ` Georg Bauhaus
2010-02-25 12:18     ` Stephen Leake
2010-02-25 13:31       ` Marco
2010-02-25 15:02         ` Hibou57 (Yannick Duchêne)
2010-02-25 14:56       ` Hibou57 (Yannick Duchêne)
2010-02-26  8:49         ` Stephen Leake
2010-02-26 18:42           ` Hibou57 (Yannick Duchêne)
2010-02-27 14:00             ` Stephen Leake
2010-02-27 14:25               ` Hibou57 (Yannick Duchêne)
2010-02-26 18:43           ` Vadim Godunko
2010-02-26 19:02             ` Hibou57 (Yannick Duchêne)
2010-02-26 20:04               ` Vadim Godunko
2010-02-27  7:46                 ` sjw
2010-02-27  9:12                   ` Hibou57 (Yannick Duchêne)
2010-02-27 13:38                     ` Jacob Sparre Andersen
2010-02-27 14:23                       ` Hibou57 (Yannick Duchêne)
2010-02-27 14:25                 ` Stephen Leake [this message]
2010-03-06 13:41             ` Marco
2010-03-03 23:55           ` Randy Brukardt
2010-03-04  6:56             ` Hibou57 (Yannick Duchêne)
2010-02-25 12:12 ` Stephen Leake
2010-02-25 18:31 ` Tero Koskinen
2010-02-26 10:52 ` Gautier write-only
2010-02-26 18:50   ` Hibou57 (Yannick Duchêne)
2011-03-16 21:44 ` Yannick Duchêne (Hibou57)
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox