Sign in Join

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

Mailing lists / lazarus / 2009-07

Todo list items inside Lazarus Packages (.lpk)?

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

I use the Lazarus todo list feature (View > Todo List) often. I also use Lazarus Packages a lot to group my code. But if I am working on a application, and in my case that application uses the fpGUI toolkit package (which I also develop). The standard "View > Todo List" doesn't show todo lists in the fpgui_toolkit.lpk units.

In my case, fpGUI is not a project on it's own, it is always used via the *.lpk package. So how do I view those todo items that appear in Lazarus Packages?

I first thought maybe there is a "Package > Todo list" option, but unfortunately there isn't. Any thoughts on how I can make this work?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gärtner
to Graeme Geldenhuys

Zitat von Graeme Geldenhuys :

Show quoted text 14 lines
Hi, I use the Lazarus todo list feature (View > Todo List) often. I also use Lazarus Packages a lot to group my code. But if I am working on a application, and in my case that application uses the fpGUI toolkit package (which I also develop). The standard "View > Todo List" doesn't show todo lists in the fpgui_toolkit.lpk units. In my case, fpGUI is not a project on it's own, it is always used via the *.lpk package. So how do I view those todo items that appear in Lazarus Packages? I first thought maybe there is a "Package > Todo list" option, but unfortunately there isn't. Any thoughts on how I can make this work?

Only a front end is missing. The scanner itself can already show the todos of a package.
In main.pp function TMainIDE.DoShowToDoList it does:

     frmToDo.MainSourceFilename:=Project1.MainUnitInfo.Filename

To show a package use:

     frmToDo.MainSourceFilename:=APackage.GetSrcFilename

Maybe you want to add a combobox to the todo dlg to select a project/package. And/or change the todo list to a treeview and allow to show several project/packages together.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gärtner
Mattias G?rtner wrote
Only a front end is missing. The scanner itself can already show the todos of a package. In main.pp function TMainIDE.DoShowToDoList it

That's what I like to hear. :-) Thanks Mattias, I'll take a look at extending the ToDo list form.

Maybe you want to add a combobox to the todo dlg to select a

That's a good idea, and one less dialog to maintain.

project/package. And/or change the todo list to a treeview

I don't really like the treeview idea. It already drives me crazy in the Search Results screen.

and allow to show several project/packages together.

This could be handy as well. Will add it to my todo list. ;-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: I use the Lazarus todo list feature (View > Todo List) often. I also use Lazarus Packages…
Graeme Geldenhuys wrote
I first thought maybe there is a "Package > Todo list" option, but unfortunately there isn't. Any thoughts on how I can make this work?

No I idea why I did not find this before! If you open the package and click on the "More..." button which presents a dropdown menu. Right at the bottom of that menu is a "View todo list" item. :-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gärtner
to Graeme Geldenhuys

Zitat von Graeme Geldenhuys :

Show quoted text 9 lines
Graeme Geldenhuys wrote: > > I first thought maybe there is a "Package > Todo list" option, but > unfortunately there isn't. Any thoughts on how I can make this work? No I idea why I did not find this before! If you open the package and click on the "More..." button which presents a dropdown menu. Right at the bottom of that menu is a "View todo list" item. :-)

Yes. But this is a little bit awkward.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gärtner
Mattias G?rtner wrote
Yes. But this is a little bit awkward.

Not to bad, because I always have the Project Inspect window open, so it's just a quick double click to open the Package.

The little bit awkward part is that I love keyboard shortcuts, and you can't assign a keyboard shortcut to that popup menu item. So yes, I will still be looking at modifying the "View > Todo List" dialog.

Regards,
- Graeme -

________________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gärtner
to Graeme Geldenhuys

Zitat von Graeme Geldenhuys :

Show quoted text 11 lines
Mattias G?rtner wrote: > > Yes. But this is a little bit awkward. Not to bad, because I always have the Project Inspect window open, so it's just a quick double click to open the Package. The little bit awkward part is that I love keyboard shortcuts, and you can't assign a keyboard shortcut to that popup menu item. So yes, I will still be looking at modifying the "View > Todo List" dialog.

Well, I could add a short cut for 'showing the todo list for the package/project of the current file in the source editor' or something like that. I need a good/short name for this function?. Any ideas?

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gärtner
Mattias G?rtner wrote
Well, I could add a short cut for 'showing the todo list for the package/project of the current file in the source editor' or something like that. I need a good/short name for this function?. Any ideas?

That would be great. I am terrible at function names, but lets see..

ShowPackageTodoList()
ShowTodoList4Package()
ShowPkgTodoList()

I need to study what kids use when sending SMS's on their mobile phones. They always have such weird acronyms for English words. Those could maybe be used in function names too. :-) eg: later = l8r etc... ;-)

Regards,
- Graeme -

________________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 12 lines
Mattias G?rtner wrote: > > Well, I could add a short cut for 'showing the todo list for the > package/project of the current file in the source editor' or > something like that. I need a good/short name for this function?. > Any ideas? That would be great. I am terrible at function names, but lets see.. ShowPackageTodoList() ShowTodoList4Package() ShowPkgTodoList()

A need a name for the key mapping. Not a pascal identifier.

[...]

Mattias

Reply by email