RE: [lazarus] Question of feature: code browser

2006-07-23 Thread George Birbilis
Btw, the following code from some project of mine may be handy in this case
(esp. if Lazarus has option to put shortcut keys in tooltip [hint] for a
menu item - else modify appropriately to get the shortcut key and print its
name too)

Change the LogoPrint to some text dumping function of yours and call
printMenuHelp(yourMainMenu) to print all menu items in a nested way and show
their hint (and shortcut key if you modify it appropriately)

procedure TScriptForm.printMenuItemHelp(const m:TMenuItem;const
depth:integer);
var
 i:integer;
 pad:string;
begin
 if not m.Visible then exit;
 if depth0 then
  begin
  pad:=DupeString(' ',depth);
  if depth=1
   then pad:=pad+'* '
   else pad:=pad+'+ ';
   if m.Caption'-'
then LogoPrint(pad+m.Caption+' -- '+m.Hint)
else LogoPrint(pad+'-'); //menu item is a separator
  end;
 for i:=0 to m.Count-1 do
  begin
  printMenuItemHelp(m.Items[i],depth+1);
  if depth=0 then
   LogoPrint('');
  end;
end;

procedure TScriptForm.printMenuHelp(const m:TMenu);
begin
 printMenuItemHelp(m.Items,0);
end;

procedure TScriptForm.mnuHelpMakeMenuHelpClick(Sender: TObject);
begin
 printMenuHelp(mainMenu1);
end;


George Birbilis ([EMAIL PROTECTED])
Microsoft MVP J# for 2004-2006
Borland Spirit of Delphi
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup


 -Original Message-
 From: George Birbilis [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 22, 2006 4:38 PM
 To: lazarus@miraclec.com
 Subject: RE: [lazarus] Question of feature: code browser

  find implementation has no menu item, because IMO no one
 would use it
  via the menu.

 What do you mean? It should show on the context menu when you
 right click a symbol in the source code editor I believe.
 Isn't Find Declaration showing there at Lazarus? (as done in
 Delphi). Not all people want (or can) use keyboard shortcuts,
 sometimes they're forced to stay away from kbd as much as
 possible for health reasons. Also when you have speech
 control s/w, it usually can read context menus, but can't
 guess keyboard mappings of some app.

  Where should we put the 'Lazarus IDE shortcut reference card'?

 It wouldn't hurt, but it should be interactive (that is the
 titles displayed next to the shortcut keys on the reference
 card should be clickable in order to simulate pressing of the
 respective shortcut key combination)

 
 George Birbilis ([EMAIL PROTECTED])
 Microsoft MVP J# for 2004-2006
 Borland Spirit of Delphi
 * QuickTime, QTVR, ActiveX, VCL, .NET
 http://www.kagi.com/birbilis
 * Robotics
 http://www.mech.upatras.gr/~Robotics
 http://www.mech.upatras.gr/~robgroup




   _ 

 avast! Antivirus http://www.avast.com : Outbound message clean.


 Virus Database (VPS): 0629-2, 21/07/2006 Tested on: 22/7/2006
 4:38:21 ??
 avast! - copyright (c) 1988-2006 ALWIL Software.



 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
 



  _  

avast! Antivirus http://www.avast.com : Outbound message clean. 


Virus Database (VPS): 0629-2, 21/07/2006
Tested on: 22/7/2006 11:04:09 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] Question of feature: code browser

2006-07-22 Thread George Birbilis
  and also
  working on another feature: there is 'find declaration' but 'find
  implementation' is missing...)

 Do you mean Ctrl+Shift+Up ?

Maybe they mean at some popup menu?
BTW, Delphi7 doesn't have find implementation I think but only find
declaration (quite annoying, don't suppose there's some magic key for that
at D7 too?)


George Birbilis ([EMAIL PROTECTED])
Microsoft MVP J# for 2004-2006
Borland Spirit of Delphi
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus http://www.avast.com : Outbound message clean. 


Virus Database (VPS): 0629-2, 21/07/2006
Tested on: 22/7/2006 1:15:39 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-22 Thread Burkhard Carstens
Am Samstag, 22. Juli 2006 12:16 schrieb George Birbilis:
   and also
   working on another feature: there is 'find declaration' but 'find
   implementation' is missing...)
 
  Do you mean Ctrl+Shift+Up ?

 Maybe they mean at some popup menu?
 BTW, Delphi7 doesn't have find implementation I think but only
 find declaration (quite annoying, don't suppose there's some magic
 key for that at D7 too?)

Ctrl+Shift+Up / Ctrl+Shift+Down ?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-22 Thread Mattias Gaertner
On Sat, 22 Jul 2006 13:16:13 +0300
George Birbilis [EMAIL PROTECTED] wrote:

   and also
   working on another feature: there is 'find declaration' but 'find
   implementation' is missing...)
 
  Do you mean Ctrl+Shift+Up ?
 
 Maybe they mean at some popup menu?
 BTW, Delphi7 doesn't have find implementation I think but only find
 declaration (quite annoying, don't suppose there's some magic key for
that
 at D7 too?)

They use the same shortcuts here.

find implementation has no menu item, because IMO no one would use it via
the menu. I use the function more often than page up/down. For newbies it is
mentioned in the tutorial and afaik at least one other place in the wiki.
Experts looks up the keymapping.
On the one hand: there are never enough hints for a newbie. 
OTOH I don't want to fill the menus with functions, that only exists to see
the shortcut. For example 'delete line' Ctrl-Y is the same case.

What do other people think? 
Where should we put the 'Lazarus IDE shortcut reference card'?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-22 Thread Michael Van Canneyt


On Sat, 22 Jul 2006, Mattias Gaertner wrote:

 On Sat, 22 Jul 2006 13:16:13 +0300
 George Birbilis [EMAIL PROTECTED] wrote:
 
and also
working on another feature: there is 'find declaration' but 'find
implementation' is missing...)
  
   Do you mean Ctrl+Shift+Up ?
  
  Maybe they mean at some popup menu?
  BTW, Delphi7 doesn't have find implementation I think but only find
  declaration (quite annoying, don't suppose there's some magic key for
 that
  at D7 too?)
 
 They use the same shortcuts here.
 
 find implementation has no menu item, because IMO no one would use it via
 the menu. I use the function more often than page up/down. For newbies it is
 mentioned in the tutorial and afaik at least one other place in the wiki.
 Experts looks up the keymapping.
 On the one hand: there are never enough hints for a newbie. 
 OTOH I don't want to fill the menus with functions, that only exists to see
 the shortcut. For example 'delete line' Ctrl-Y is the same case.
 
 What do other people think? 
 Where should we put the 'Lazarus IDE shortcut reference card'?

In the menu, obviously... ;-)

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-22 Thread Mattias Gaertner
On Sat, 22 Jul 2006 12:47:32 +0200 (CEST)
Michael Van Canneyt [EMAIL PROTECTED] wrote:

 
 
 On Sat, 22 Jul 2006, Mattias Gaertner wrote:
 
  On Sat, 22 Jul 2006 13:16:13 +0300
  George Birbilis [EMAIL PROTECTED] wrote:
  
 and also
 working on another feature: there is 'find declaration' but 'find
 implementation' is missing...)
   
Do you mean Ctrl+Shift+Up ?
   
   Maybe they mean at some popup menu?
   BTW, Delphi7 doesn't have find implementation I think but only find
   declaration (quite annoying, don't suppose there's some magic key for
  that
   at D7 too?)
  
  They use the same shortcuts here.
  
  find implementation has no menu item, because IMO no one would use it
via
  the menu. I use the function more often than page up/down. For newbies
it is
  mentioned in the tutorial and afaik at least one other place in the
wiki.
  Experts looks up the keymapping.
  On the one hand: there are never enough hints for a newbie. 
  OTOH I don't want to fill the menus with functions, that only exists to
see
  the shortcut. For example 'delete line' Ctrl-Y is the same case.
  
  What do other people think? 
  Where should we put the 'Lazarus IDE shortcut reference card'?
 
 In the menu, obviously... ;-)

There are more than 300 shortcuts. Sub-sub-menus? ;)


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-22 Thread Michael Van Canneyt


On Sat, 22 Jul 2006, Mattias Gaertner wrote:

 On Sat, 22 Jul 2006 12:47:32 +0200 (CEST)
 Michael Van Canneyt [EMAIL PROTECTED] wrote:
 
  
  
  On Sat, 22 Jul 2006, Mattias Gaertner wrote:
  
   On Sat, 22 Jul 2006 13:16:13 +0300
   George Birbilis [EMAIL PROTECTED] wrote:
   
  and also
  working on another feature: there is 'find declaration' but 'find
  implementation' is missing...)

 Do you mean Ctrl+Shift+Up ?

Maybe they mean at some popup menu?
BTW, Delphi7 doesn't have find implementation I think but only find
declaration (quite annoying, don't suppose there's some magic key for
   that
at D7 too?)
   
   They use the same shortcuts here.
   
   find implementation has no menu item, because IMO no one would use it
 via
   the menu. I use the function more often than page up/down. For newbies
 it is
   mentioned in the tutorial and afaik at least one other place in the
 wiki.
   Experts looks up the keymapping.
   On the one hand: there are never enough hints for a newbie. 
   OTOH I don't want to fill the menus with functions, that only exists to
 see
   the shortcut. For example 'delete line' Ctrl-Y is the same case.
   
   What do other people think? 
   Where should we put the 'Lazarus IDE shortcut reference card'?
  
  In the menu, obviously... ;-)
 
 There are more than 300 shortcuts. Sub-sub-menus? ;)

Nono, you need just 1 menu item: Help - Shortcut Key Chart :-)

And that displays a nice tree with all shortcuts in it :-)

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-22 Thread Mattias Gaertner
On Sat, 22 Jul 2006 13:21:42 +0200 (CEST)
Michael Van Canneyt [EMAIL PROTECTED] wrote:

 
 
 On Sat, 22 Jul 2006, Mattias Gaertner wrote:
 
  On Sat, 22 Jul 2006 12:47:32 +0200 (CEST)
  Michael Van Canneyt [EMAIL PROTECTED] wrote:
  
   
   
   On Sat, 22 Jul 2006, Mattias Gaertner wrote:
   
On Sat, 22 Jul 2006 13:16:13 +0300
George Birbilis [EMAIL PROTECTED] wrote:

   and also
   working on another feature: there is 'find declaration' but
'find
   implementation' is missing...)
 
  Do you mean Ctrl+Shift+Up ?
 
 Maybe they mean at some popup menu?
 BTW, Delphi7 doesn't have find implementation I think but only
find
 declaration (quite annoying, don't suppose there's some magic key
for
that
 at D7 too?)

They use the same shortcuts here.

find implementation has no menu item, because IMO no one would use
it
  via
the menu. I use the function more often than page up/down. For
newbies
  it is
mentioned in the tutorial and afaik at least one other place in the
  wiki.
Experts looks up the keymapping.
On the one hand: there are never enough hints for a newbie. 
OTOH I don't want to fill the menus with functions, that only exists
to
  see
the shortcut. For example 'delete line' Ctrl-Y is the same case.

What do other people think? 
Where should we put the 'Lazarus IDE shortcut reference card'?
   
   In the menu, obviously... ;-)
  
  There are more than 300 shortcuts. Sub-sub-menus? ;)
 
 Nono, you need just 1 menu item: Help - Shortcut Key Chart :-)

I see.

 
 And that displays a nice tree with all shortcuts in it :-)

I can add a menu item, that will open the keymapping tab in the editor
options. How about that?
I just realized, that we still have no help for the shortcuts. Oh, no. 300
help items. :(


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-22 Thread Michael Van Canneyt


On Sat, 22 Jul 2006, Mattias Gaertner wrote:

On Sat, 22 Jul 2006, Mattias Gaertner wrote:

 On Sat, 22 Jul 2006 13:16:13 +0300
 George Birbilis [EMAIL PROTECTED] wrote:
 
and also
working on another feature: there is 'find declaration' but
 'find
implementation' is missing...)
  
   Do you mean Ctrl+Shift+Up ?
  
  Maybe they mean at some popup menu?
  BTW, Delphi7 doesn't have find implementation I think but only
 find
  declaration (quite annoying, don't suppose there's some magic key
 for
 that
  at D7 too?)
 
 They use the same shortcuts here.
 
 find implementation has no menu item, because IMO no one would use
 it
   via
 the menu. I use the function more often than page up/down. For
 newbies
   it is
 mentioned in the tutorial and afaik at least one other place in the
   wiki.
 Experts looks up the keymapping.
 On the one hand: there are never enough hints for a newbie. 
 OTOH I don't want to fill the menus with functions, that only exists
 to
   see
 the shortcut. For example 'delete line' Ctrl-Y is the same case.
 
 What do other people think? 
 Where should we put the 'Lazarus IDE shortcut reference card'?

In the menu, obviously... ;-)
   
   There are more than 300 shortcuts. Sub-sub-menus? ;)
  
  Nono, you need just 1 menu item: Help - Shortcut Key Chart :-)
 
 I see.
 
  
  And that displays a nice tree with all shortcuts in it :-)
 
 I can add a menu item, that will open the keymapping tab in the editor
 options. How about that?
 I just realized, that we still have no help for the shortcuts. Oh, no. 300
 help items. :(

Before you start programming: I was not being serious; 

In the long term, I think you should add a mandatory 'Hint' parameter to the 
shortcut key registration routine, and it should throw an error when the hint 
is empty; thus forcing people to minimally document their functions.

This should enable you to create a nice reference chart on the fly, and generate
e.g. a fpDoc table from this chart. 

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-17 Thread Mattias Gaertner
On Sat, 15 Jul 2006 16:00:33 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Hi Alexandre,
 
 I wrote a plugin for Lazarus a while back (Got the idea from GExperts)
 - not sure if this is what you want, but have a look anyway.  I use it
 constantly in my day-to-day work.  It searches your code as you type.
 It registers the Ctrl+Shift+G to launch and immediately you can start
 typing a phrase (of a procedure name) you are looking for.
 
 More details (and screenshot) on the website below.
 
 Lazarus - Procedure List
 http://opensoft.homeip.net/lazarus/procedurelist.html
 
 The code is available in my SubVersion repository (and any submissions
 are welcome).  Maybe we can add this as part of the Lazarus IDE?

Added.

Mattias



 
 Regards,
   Graeme.
 
 
 On 7/15/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:
  I remember a feature in D6 in the UnitEditor: a vertical code browser
  for fast-searching in source code. This was a very nice gadget.
 
 
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-17 Thread Alexandre Leclerc

2006/7/17, Mattias Gaertner [EMAIL PROTECTED]:

On Sat, 15 Jul 2006 16:00:33 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Hi Alexandre,

 I wrote a plugin for Lazarus a while back (Got the idea from GExperts)
 - not sure if this is what you want, but have a look anyway.  I use it
 constantly in my day-to-day work.  It searches your code as you type.
 It registers the Ctrl+Shift+G to launch and immediately you can start
 typing a phrase (of a procedure name) you are looking for.

 More details (and screenshot) on the website below.

 Lazarus - Procedure List
 http://opensoft.homeip.net/lazarus/procedurelist.html

 The code is available in my SubVersion repository (and any submissions
 are welcome).  Maybe we can add this as part of the Lazarus IDE?

Added.


Good idea, I agree; this is a nice tool that can be/is complementary
to the code explorer.

--
Alexandre Leclerc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-17 Thread Graeme Geldenhuys

Thanks Mattias!

Regards,
 Graeme.


On 7/17/06, Mattias Gaertner [EMAIL PROTECTED] wrote:

 Lazarus - Procedure List
 http://opensoft.homeip.net/lazarus/procedurelist.html

 The code is available in my SubVersion repository (and any submissions
 are welcome).  Maybe we can add this as part of the Lazarus IDE?

Added.

Mattias


--
There's no place like 127.0.0.1

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-15 Thread Graeme Geldenhuys

Hi Alexandre,

I wrote a plugin for Lazarus a while back (Got the idea from GExperts)
- not sure if this is what you want, but have a look anyway.  I use it
constantly in my day-to-day work.  It searches your code as you type.
It registers the Ctrl+Shift+G to launch and immediately you can start
typing a phrase (of a procedure name) you are looking for.

More details (and screenshot) on the website below.

Lazarus - Procedure List
http://opensoft.homeip.net/lazarus/procedurelist.html

The code is available in my SubVersion repository (and any submissions
are welcome).  Maybe we can add this as part of the Lazarus IDE?

Regards,
 Graeme.


On 7/15/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:

I remember a feature in D6 in the UnitEditor: a vertical code browser
for fast-searching in source code. This was a very nice gadget.




--
There's no place like 127.0.0.1

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-15 Thread Mattias Gaertner
On Sat, 15 Jul 2006 09:35:29 -0400
Alexandre Leclerc [EMAIL PROTECTED] wrote:

 I remember a feature in D6 in the UnitEditor: a vertical code browser
 for fast-searching in source code. This was a very nice gadget.

Do you mean the View - Code Explorer?

 
 1. Any-one work[ed,ing] on this?

No.

 
 2. Can I use VirtualTreeView as a new component/source dependency to
 implement such a feature? (It has everything required to build such a
 tool.) If no, what should be used?

Yes. But then it will be an external plugin.

 
 3. I was planning to develop this in another form, then dock that form
 in the UnitEditor if desired. I know this mechanism is not working
 well right now, but some patches are working... Should this avenue be
 kept?

Yes. I'm currently fixing bugs, but Docking is definitely one of my next
goals.

 
 4. I'm sure there are already functions and tools to get information
 about a source file's structure (interface, implementation,
 initialization, finalization) but where is it?

codetools

 
 5. I'm sure there are already functions and tools to get all the type
 / classes / procedures / functions in the interface section of a
 source file... but where is it? (I assume that because of
 code-completion Ctrl+c that works well.)

See the code explorer for an example.

 
 6. I'm sure there are already functions and tools to get all the types
 / var / procedures / functions present in the implementation part of a
 source file... but where can I find these?

See the code explorer for an example.

 
 7. Any function to detect {$i include.inc} in a source file? 

All codetools support include files.


 (I
 personally hate these, but I know someone talked about code-folding
 such include files: that would be awesome, 

Yes, but it would require a lot of changes to synedit.


 especially if a search in a
 document would extend into the .inc files too...

Use Search - 'Find in files'.
Otherwise: Extend Find/Replace to use functions of 'Find in files'.


 this is another
 feature I want to work on, because searching is a pain... 

Ehm, what and how do you search?


 and also
 working on another feature: there is 'find declaration' but 'find
 implementation' is missing...)

Do you mean Ctrl+Shift+Up ?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-15 Thread Alexandre Leclerc

2006/7/15, Mattias Gaertner [EMAIL PROTECTED]:

On Sat, 15 Jul 2006 09:35:29 -0400
Alexandre Leclerc [EMAIL PROTECTED] wrote:

 I remember a feature in D6 in the UnitEditor: a vertical code browser
 for fast-searching in source code. This was a very nice gadget.

Do you mean the View - Code Explorer?


Yes, exactly that. I see a lot of work has already been done. Next
step is to dock that in the UnitEditor. I see many features are
already in lazarus, but simply not at hand or don't know about it. The
work left is almost better UI integration and presentation.

I see that the goto stuff is not working on my version. I'll be able
to work on this.


 4. I'm sure there are already functions and tools to get information
 about a source file's structure (interface, implementation,
 initialization, finalization) but where is it?

codetools


Ok, I also see examples of codetools that you made. I'll take a look
at all that.


 (I
 personally hate these, but I know someone talked about code-folding
 such include files: that would be awesome,

Yes, but it would require a lot of changes to synedit.


Maybe one day! :) Post 1.0


 especially if a search in a
 document would extend into the .inc files too...

Use Search - 'Find in files'.
Otherwise: Extend Find/Replace to use functions of 'Find in files'.


Search in document is too broad sometimes, or you always need to
change the directory where you want to search. Some changes could
enhance the behaviour...


 this is another
 feature I want to work on, because searching is a pain...

Ehm, what and how do you search?


How Ctrl+F :)

Sometimes when diging in the LCL you want to see the implementation of
a function. (Ctrl+Shift+Up) But other times parts of a string... but
the actual find is not going in the include files. But I think this
will be useless now, because most of the time it was for the
implementation of a procedure.


 and also
 working on another feature: there is 'find declaration' but 'find
 implementation' is missing...)

Do you mean Ctrl+Shift+Up ?


Yes! This is what I was looking for.  Thank you.

Is there a place where all these features are documented? :) I see
that many of them I'm missing and was about to code already exist.

Thank you very much for your time. My coding life with Lazarus has
enhanced a lot now :)

--
Alexandre Leclerc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-15 Thread Al Boldi
Alexandre Leclerc wrote:
 2006/7/15, Mattias Gaertner [EMAIL PROTECTED]:
  On Sat, 15 Jul 2006 09:35:29 -0400
 
  Alexandre Leclerc [EMAIL PROTECTED] wrote:
   I remember a feature in D6 in the UnitEditor: a vertical code browser
   for fast-searching in source code. This was a very nice gadget.
 
  Do you mean the View - Code Explorer?

 Yes, exactly that. I see a lot of work has already been done. Next
 step is to dock that in the UnitEditor. I see many features are
 already in lazarus, but simply not at hand or don't know about it. The
 work left is almost better UI integration and presentation.

Did you take a look at the TStudio layout?

It doesn't use the docking subsystem, because that still needs some work, but 
it statically docks the complete IDE, with variable splitters, as a stop-gap 
solution.

I even have a new version lined up, that supports docking non-modal dialogs 
like the Search Window, and the debug windows.

There is also a TDockMgr that makes docking a snap, but that is based on the 
docking subsystem, which still needs some work.

Thanks!

--
Al

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-15 Thread Alexandre Leclerc

2006/7/15, Al Boldi [EMAIL PROTECTED]:

Alexandre Leclerc wrote:
 2006/7/15, Mattias Gaertner [EMAIL PROTECTED]:
  On Sat, 15 Jul 2006 09:35:29 -0400
 
  Alexandre Leclerc [EMAIL PROTECTED] wrote:
   I remember a feature in D6 in the UnitEditor: a vertical code browser
   for fast-searching in source code. This was a very nice gadget.
 
  Do you mean the View - Code Explorer?

 Yes, exactly that. I see a lot of work has already been done. Next
 step is to dock that in the UnitEditor. I see many features are
 already in lazarus, but simply not at hand or don't know about it. The
 work left is almost better UI integration and presentation.

Did you take a look at the TStudio layout?

It doesn't use the docking subsystem, because that still needs some work, but
it statically docks the complete IDE, with variable splitters, as a stop-gap
solution.


No I did not see that... I'll take a look in the source code. What has
to be done to build the IDE with it?

Usually I do not like complete docked IDE's (MDI). I like at least 3
separate windows... as traditionnal delphi. Using F11  F12 is good
integration for me :) But evevrything related to units (browsing code,
history, tools, etc.) I like to have that all together.

I saw the new IDE of D2005... but did not like it. I must say I never
worked with it too. It was a demo version from borland.

--
Alexandre Leclerc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-15 Thread Al Boldi
Alexandre Leclerc wrote:
 2006/7/15, Al Boldi [EMAIL PROTECTED]:
  Alexandre Leclerc wrote:
   2006/7/15, Mattias Gaertner [EMAIL PROTECTED]:
On Sat, 15 Jul 2006 09:35:29 -0400
   
Alexandre Leclerc [EMAIL PROTECTED] wrote:
 I remember a feature in D6 in the UnitEditor: a vertical code
 browser for fast-searching in source code. This was a very nice
 gadget.
   
Do you mean the View - Code Explorer?
  
   Yes, exactly that. I see a lot of work has already been done. Next
   step is to dock that in the UnitEditor. I see many features are
   already in lazarus, but simply not at hand or don't know about it. The
   work left is almost better UI integration and presentation.
 
  Did you take a look at the TStudio layout?
 
  It doesn't use the docking subsystem, because that still needs some
  work, but it statically docks the complete IDE, with variable splitters,
  as a stop-gap solution.

 No I did not see that... I'll take a look in the source code. What has
 to be done to build the IDE with it?

It works by hooking it into main.pp with something like this:

   IDEloStyle.TStudio.Create(Self).Show;

 Note, keep the following windows open before calling:
   ProjectInspector
   ObjectInspector
   CodeExplorer
   Messages

 Usually I do not like complete docked IDE's (MDI). I like at least 3
 separate windows... as traditionnal delphi. Using F11  F12 is good
 integration for me :) But evevrything related to units (browsing code,
 history, tools, etc.) I like to have that all together.

With opensource you can change it to your liking.

Thanks!

--
Al

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Question of feature: code browser

2006-07-15 Thread Lepidosteus

With opensource you can change it to your liking.


I suppose you mean free software, not open source.

There is a lot of open soruced softwares out there that doesn't allow
you to change their code.

--
Lepidosteus
http://lepidosteus.com

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives