Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

ToDo dialog

13 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tony Maro

How does one make use of the ToDo dialog in Lazarus?

I never used it in Delphi (was added after D4?) and can't find any docs on it.

Thanks,

Tony

Reply by email

Unknown author
to Tony Maro

Hi Tony

ToDo list it isn't an Delphi component but an Expert (there is full with other good things)
See : http://www.gexperts.org/ (i dont know if work with D4)

Olivier

Show quoted text 14 lines
How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added after D4?) and can't find any docs on it. Thanks, Tony _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Bob Wingard
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…

Mattias,

Changes the jump to code function in todolist.pp, does a better search of the unit path before calling OnOpenFile. It attempts to pass an absolute path to the file to be opened.

Testing shows that the todo parser is having trouble with single line comments. I have not looked into it but if you have a //#todoxxx comment somewhere in one of your project files the parser will add duplicate todo entries with incorrect line numbers.

I am glad you guys had this conversation because I was looking into ways to determine the unit search path for the find Identifier function that Mattias outlined and this little exercise has helped a bunch.

Bob

Mattias Gaertner wrote 45 lines
On Wed, 26 Nov 2003 21:41:03 +0100 (CET) wrote: > > > On Wed, 26 Nov 2003, Tony Maro wrote: > > > Tony Maro wrote: > > > > > Michael Van Canneyt wrote: > > > > > >> One adds items. The items are saved in the project file as comments, > > >> like this: > > >> > > >> {%TODO The todo text} > > >> {%TODO Some more todo text} > > >> > > >> The dialog essentially just manages these comments. > > >> > > >> > > > Doesn't work for me. I tried manually adding a TODO line as described > > > > > > in the project file, and hit refresh in the todo dialog. No effect. > > > I also can't see a way to add a todo from the todo dialog. Is this > > > implemented yet? > > > > Ah - it's a # symbol, not percent. > > > > I did this, it populated the list. I double clicked one expecting to > > jump to the code and got "Not implemented" at which point it locked in > > and endless loop requiring that I kill X to get control of the PC back. > > > > Oh well... > > It seems Mattias started this, but hasn't quite finished it yet :-) The ToDo List was implemented by Olivier GUILBAUD. See todolist.pp for details. Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip00048.zip
Type: application/octet-stream
Size: 1330 bytes
Desc: "todolist112703.zip"
Url : http://localhost/pipermail/lazarus/attachments/20031127/58396abc/zip00048.obj

Reply by email

Tony Maro
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…
Tony Maro wrote 15 lines
Michael Van Canneyt wrote: > One adds items. The items are saved in the project file as comments, > like this: > > {%TODO The todo text} > {%TODO Some more todo text} > > The dialog essentially just manages these comments. > > Doesn't work for me. I tried manually adding a TODO line as described in the project file, and hit refresh in the todo dialog. No effect. I also can't see a way to add a todo from the todo dialog. Is this implemented yet?

Ah - it's a # symbol, not percent.

I did this, it populated the list. I double clicked one expecting to jump to the code and got "Not implemented" at which point it locked in and endless loop requiring that I kill X to get control of the PC back.

Oh well...

-Tony

Reply by email

Mattias Gaertner
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…
Show quoted text 32 lines
On Wed, 26 Nov 2003, Tony Maro wrote: > Tony Maro wrote: > > > Michael Van Canneyt wrote: > > > >> One adds items. The items are saved in the project file as comments, > >> like this: > >> > >> {%TODO The todo text} > >> {%TODO Some more todo text} > >> > >> The dialog essentially just manages these comments. > >> > >> > > Doesn't work for me. I tried manually adding a TODO line as described > > > > in the project file, and hit refresh in the todo dialog. No effect. > > I also can't see a way to add a todo from the todo dialog. Is this > > implemented yet? > > Ah - it's a # symbol, not percent. > > I did this, it populated the list. I double clicked one expecting to > jump to the code and got "Not implemented" at which point it locked in > and endless loop requiring that I kill X to get control of the PC back. > > Oh well... It seems Mattias started this, but hasn't quite finished it yet :-)

The ToDo List was implemented by Olivier GUILBAUD. See todolist.pp for details.

Mattias

Reply by email

Unknown author
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…
Tony Maro wrote 25 lines
Tony Maro wrote: > Michael Van Canneyt wrote: > >> One adds items. The items are saved in the project file as comments, >> like this: >> >> {%TODO The todo text} >> {%TODO Some more todo text} >> >> The dialog essentially just manages these comments. >> >> > Doesn't work for me. I tried manually adding a TODO line as described > in the project file, and hit refresh in the todo dialog. No effect. > I also can't see a way to add a todo from the todo dialog. Is this > implemented yet? Ah - it's a # symbol, not percent. I did this, it populated the list. I double clicked one expecting to jump to the code and got "Not implemented" at which point it locked in and endless loop requiring that I kill X to get control of the PC back. Oh well...

It seems Mattias started this, but hasn't quite finished it yet :-)

Michael.

Reply by email

Bob Wingard
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…

Mattias,
Implements the TODO list jump to code function. Diff picked up a couple of small changes I made to to frmSearch, Had a stray label on the form, I killed it, and I changed the color to clBtnFace because it looked BAD on win32.

Bob

Mattias Gaertner wrote 45 lines
On Wed, 26 Nov 2003 21:41:03 +0100 (CET) wrote: > > > On Wed, 26 Nov 2003, Tony Maro wrote: > > > Tony Maro wrote: > > > > > Michael Van Canneyt wrote: > > > > > >> One adds items. The items are saved in the project file as comments, > > >> like this: > > >> > > >> {%TODO The todo text} > > >> {%TODO Some more todo text} > > >> > > >> The dialog essentially just manages these comments. > > >> > > >> > > > Doesn't work for me. I tried manually adding a TODO line as described > > > > > > in the project file, and hit refresh in the todo dialog. No effect. > > > I also can't see a way to add a todo from the todo dialog. Is this > > > implemented yet? > > > > Ah - it's a # symbol, not percent. > > > > I did this, it populated the list. I double clicked one expecting to > > jump to the code and got "Not implemented" at which point it locked in > > and endless loop requiring that I kill X to get control of the PC back. > > > > Oh well... > > It seems Mattias started this, but hasn't quite finished it yet :-) The ToDo List was implemented by Olivier GUILBAUD. See todolist.pp for details. Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip00047.zip
Type: application/octet-stream
Size: 4766 bytes
Desc: "todolist.zip"
Url : http://localhost/pipermail/lazarus/attachments/20031126/e4924a6b/zip00047.obj

Reply by email

Tony Maro
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…
Michael Van Canneyt wrote 9 lines
One adds items. The items are saved in the project file as comments, like this: {%TODO The todo text} {%TODO Some more todo text} The dialog essentially just manages these comments.

Doesn't work for me. I tried manually adding a TODO line as described in the project file, and hit refresh in the todo dialog. No effect. I also can't see a way to add a todo from the todo dialog. Is this implemented yet?

Thanks,
Tony

Reply by email

Bob Wingard
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…
Mattias Gaertner wrote 22 lines
On Thu, 27 Nov 2003 18:53:21 -0600 Bob Wingard wrote: > Mattias, > >[...] > I am glad you guys had this conversation because I was looking into ways > to determine the unit search path for the find Identifier function that > Mattias outlined and this little exercise has helped a bunch. The unit search path for a directory can be retrieved with UnitPath:=CodeToolBoss.GetUnitPathForDirectory(Dir); Same for include and src path: IncPath:=CodeToolBoss.GetIncludePathForDirectory(Dir); SrcPath:=CodeToolBoss.GetSrcPathForDirectory(Dir); The combined Src Path plus Unit Path is SearchPath:=MergeSearchPaths(SrcPath,UnitPath);

This is why the exercise was good for me, got me looking at the CodeToolBoss.

Show quoted text 6 lines
About "Find In Files": The user should be able to specify the search rules for the files. For example: all open files, all files in a search path, all project files, all files of a package, all required packages, all depending packages, ... or any combination.

Fill in the ....?

Show quoted text 5 lines
The task to gather all needed paths and to finally create the file list, should be separate from the Find In Files dialog. Maybe in an unit of its own. I need this also for some other tasks. Even separate from the LCL, so we can provide some command line tools.

What parts of the LCL and Lazarus can I have dependencies on. I am thinking about project files used unit searches etc.

I suggest to define a class TSearchFileRules for this.

ok, I started something like this in SearchResultView.pp I could move the TLazSearch class to a separate file, rename and extend it.

Can you do that?

yes.

If you think, that's much more work, than you wanted to do, I can do that. I have to implement some of the package part anyway.

No I do not think its more work than I wanted to do, just a matter of time. How quickly do you need it? I think your time would be better spent working on the core of lazarus, it does not take a deep understanding of the structure of the lcl or lazarus to do most of the little things that I have been doing. It is a good way to be useful while learning about the core though.

You seem to have a good idea of what you want, send me an outline and I will work to implement it.

Show quoted text 8 lines
Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Bob Wingard
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…

You don't sleep do you?;)

Mattias Gaertner wrote 79 lines
On Fri, 28 Nov 2003 10:08:26 -0600 Bob Wingard wrote: >[...] > > About "Find In Files": > > The user should be able to specify the search rules for the files. For > > example: all open files, all files in a search path, all project files, > > all files of a package, all required packages, all depending packages, > > ... or any combination. > Fill in the ....? Not enough? ;) Ok, here some more: Files in a directory, with or without sub directories, include file filter, exclude filter (see publish project dialog), ... I don't expect you to implement all this. For find identifier we need only All project units, and a package plus all depending packages/projects. > > The task to gather all needed paths and to finally create the file list, > > should be separate from the Find In Files dialog. Maybe in an unit of > > its own. I need this also for some other tasks. Even separate from the > > LCL, so we can provide some command line tools. > > > What parts of the LCL and Lazarus can I have dependencies on. I am > thinking about project files used unit searches etc. Don't use the IDE manager units (main, mainbar, (base)debugmanager, (base)pkgmanager, uniteditor, formeditor, customformeditor). If you require information from them, either add some parameters or define some hooks. The codetoolmanager unit can be used. All others can be used. > > I suggest to define a class TSearchFileRules for this. > > > ok, I started something like this in SearchResultView.pp I could move > the TLazSearch class to a separate file, rename and extend it. Yes, please rename it. > > Can you do that? > yes. > > If you think, that's much more work, than you wanted to do, I can do > > that. I have to implement some of the package part anyway. > > No I do not think its more work than I wanted to do, just a matter of > time. How quickly do you need it? Not this weekend. > I think your time would be better > spent working on the core of lazarus, it does not take a deep > understanding of the structure of the lcl or lazarus to do most of the > little things that I have been doing. It is a good way to be useful > while learning about the core though. > > You seem to have a good idea of what you want, send me an outline and I > will work to implement it. Fantastic. Sounds like x-mas is coming :) My idea is you can define a list of rules to search for files. When the search is executed, it will create a TStrings of absolute filenames. (and relative filenames for virtual files, but this is another story). Then this list will be given to the codetools to search all references. The dialog does not need to be a complete rule editor. Just the most common tasks. I can give you more details, but I guess you know how to write frontends. :) Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…
Show quoted text 6 lines
Mattias, [...] I am glad you guys had this conversation because I was looking into ways to determine the unit search path for the find Identifier function that Mattias outlined and this little exercise has helped a bunch.

The unit search path for a directory can be retrieved with

UnitPath:=CodeToolBoss.GetUnitPathForDirectory(Dir);

Same for include and src path:

IncPath:=CodeToolBoss.GetIncludePathForDirectory(Dir);
SrcPath:=CodeToolBoss.GetSrcPathForDirectory(Dir);

The combined Src Path plus Unit Path is

SearchPath:=MergeSearchPaths(SrcPath,UnitPath);

About "Find In Files":
The user should be able to specify the search rules for the files. For example: all open files, all files in a search path, all project files, all files of a package, all required packages, all depending packages, ... or any combination.
The task to gather all needed paths and to finally create the file list, should be separate from the Find In Files dialog. Maybe in an unit of its own. I need this also for some other tasks. Even separate from the LCL, so we can provide some command line tools.

I suggest to define a class TSearchFileRules for this.

Can you do that?
If you think, that's much more work, than you wanted to do, I can do that. I have to implement some of the package part anyway.

Mattias

Reply by email

Mattias Gaertner
to Tony Maro: How does one make use of the ToDo dialog in Lazarus? I never used it in Delphi (was added…
Show quoted text 7 lines
[...] > About "Find In Files": > The user should be able to specify the search rules for the files. For > example: all open files, all files in a search path, all project files, > all files of a package, all required packages, all depending packages, > ... or any combination. Fill in the ....?

Not enough? ;)
Ok, here some more: Files in a directory, with or without sub directories, include file filter, exclude filter (see publish project dialog), ...

I don't expect you to implement all this. For find identifier we need only All project units, and a package plus all depending packages/projects.

Show quoted text 7 lines
> The task to gather all needed paths and to finally create the file list, > should be separate from the Find In Files dialog. Maybe in an unit of > its own. I need this also for some other tasks. Even separate from the > LCL, so we can provide some command line tools. > What parts of the LCL and Lazarus can I have dependencies on. I am thinking about project files used unit searches etc.

Don't use the IDE manager units (main, mainbar, (base)debugmanager, (base)pkgmanager, uniteditor, formeditor, customformeditor). If you require information from them, either add some parameters or define some hooks. The codetoolmanager unit can be used.
All others can be used.

> I suggest to define a class TSearchFileRules for this. > ok, I started something like this in SearchResultView.pp I could move the TLazSearch class to a separate file, rename and extend it.

Yes, please rename it.

Show quoted text 7 lines
> Can you do that? yes. > If you think, that's much more work, than you wanted to do, I can do > that. I have to implement some of the package part anyway. No I do not think its more work than I wanted to do, just a matter of time. How quickly do you need it?

Not this weekend.

Show quoted text 8 lines
I think your time would be better spent working on the core of lazarus, it does not take a deep understanding of the structure of the lcl or lazarus to do most of the little things that I have been doing. It is a good way to be useful while learning about the core though. You seem to have a good idea of what you want, send me an outline and I will work to implement it.

Fantastic. Sounds like x-mas is coming :)
My idea is you can define a list of rules to search for files. When the search is executed, it will create a TStrings of absolute filenames. (and relative filenames for virtual files, but this is another story). Then this list will be given to the codetools to search all references.

The dialog does not need to be a complete rule editor. Just the most common tasks. I can give you more details, but I guess you know how to write frontends. :)

Mattias

Reply by email