Sign in Join

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

Mailing lists / lazarus / 2008-08

File Browser in Lazarus IDE?

11 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,

Is there a File Browser in the Lazarus IDE? The Project Inspector cannot be used for what I need. For example, I have lots of optional units in some projects (tiOPF project being one of them). Those units are only pulled into the system at compile-time via project wide DEFINE's. So if I want to edit some of those units I need to use File|Open then navigate to the file and select open. If there was something like a file listing, I could simply double click on a file to open it, and not loose my file location (navigation point).

Alternatively, if Lazarus doesn't have such a feature.... Could I setup a file association in Gnome desktop, so that a double click in Nautilus will open it in Lazarus IDE?

Regards,
- Graeme -

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

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
Hi, Is there a File Browser in the Lazarus IDE? The Project Inspector cannot be used for what I need. For example, I have lots of optional units in some projects (tiOPF project being one of them). Those units are only pulled into the system at compile-time via project wide DEFINE's. So if I want to edit some of those units I need to use File|Open then navigate to the file and select open. If there was something like a file listing, I could simply double click on a file to open it, and not loose my file location (navigation point).

A file browser window should be easy to add, no ?

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
A file browser window should be easy to add, no ?

Yup and it's already added to my todo list, because the File|Open idea is driving me nuts and I can't figure out how to set file associations with Gnome/Nautilus! :-)

Regards,
- Graeme -

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

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: A file browser window should be easy to add, no ? Michael.
Michael Van Canneyt wrote
A file browser window should be easy to add, no ?

Oh, and my actual reason for asking was to find out if this was already done and simply as a optional package in the Lazarus directories (but maybe with a non-obvious name and why I couldn't find it). From your reply I guess nobody done this yet, which is no problem - I'll implement it myself then. Thanks for the quick response.

Regards,
- Graeme -

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

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 11 lines
On Wed, Aug 13, 2008 at 9:04 AM, Michael Van Canneyt wrote: > > A file browser window should be easy to add, no ? Oh, and my actual reason for asking was to find out if this was already done and simply as a optional package in the Lazarus directories (but maybe with a non-obvious name and why I couldn't find it). From your reply I guess nobody done this yet, which is no problem - I'll implement it myself then. Thanks for the quick response.

We'll make a deal:
You provide the actual window (with some callbacks for opening files), and I'll do the IDE integration.

If we share the workload, it may happen sooner :-)

Michael.

Reply by email

Graeme Geldenhuys
to Mattias Gärtner: An embedded and charset-unspecified text was scrubbed... Name: not available Url:…
Mattias G?rtner wrote 8 lines
> Is there a File Browser in the Lazarus IDE? The Project Inspector > cannot be used for what I need. For example, I have lots of optional > units in some projects (tiOPF project being one of them). Those units > are only pulled into the system at compile-time via project wide > DEFINE's. Why did you not add them to the project? You can remove them from the uses section if you want.

Those units need to be maintained, but they don't compile with FPC, but only with Delphi. For example, the persistence layers used in tiOPF: ADO, BDE, DOA (direct oracle access), UIB, dbExpress, etc... As far as I understand, if you add them to the project or laz package, they are still going to be compiled even if removed them from the uses clause (Compile Clean option), which then means it will fail under FPC.

The debian and rpm packages install file associations, so double clicking starts lazarus. But at the moment every time a new IDE is started.

Not the desired behaviour either... I'll implement the File Browser (Lazarus add-on package) instead. Double clicking a file would then open it in the editor. Another benefit of this approach would mean that later other developers could extend the file browser to integrate with SVN as well or whatever else they can come up with...

Regards,
- Graeme -

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

Reply by email

Graeme Geldenhuys
to Mattias Gärtner: An embedded and charset-unspecified text was scrubbed... Name: not available Url:…
Mattias G?rtner wrote 12 lines
> is driving me nuts and I can't figure out how to set file associations > with Gnome/Nautilus! :-) sudo install -m 644 lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png sudo install -m 644 lazarus/install/lazarus.desktop /usr/share/applications/lazarus.desktop sudo install -m 644 lazarus/install/lazarus-mime.xml /usr/share/mime/packages/lazarus.xml See for example: lazarus/tools/install/create_lazarus_deb.sh

Thanks for this... Even though it's not going to help me with my Lazarus / File Open issue, it will come in handy for other things.

Regards,
- Graeme -

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

Reply by email

Mattias Gärtner
to Graeme Geldenhuys: On Wed, Aug 13, 2008 at 11:40 AM, Mattias G?rtner Those units need to be maintained, but…

Zitat von Graeme Geldenhuys :

Show quoted text 18 lines
On Wed, Aug 13, 2008 at 11:40 AM, Mattias G??rtner wrote: >> Is there a File Browser in the Lazarus IDE? The Project Inspector >> cannot be used for what I need. For example, I have lots of optional >> units in some projects (tiOPF project being one of them). Those units >> are only pulled into the system at compile-time via project wide >> DEFINE's. > > Why did you not add them to the project? > You can remove them from the uses section if you want. Those units need to be maintained, but they don't compile with FPC, but only with Delphi. For example, the persistence layers used in tiOPF: ADO, BDE, DOA (direct oracle access), UIB, dbExpress, etc... As far as I understand, if you add them to the project or laz package, they are still going to be compiled even if removed them from the uses clause (Compile Clean option), which then means it will fail under FPC.

Why do you think that?
Lazarus always only compiles the main source file. FPC decides what to compile.

Show quoted text 10 lines
> The debian and rpm packages install file associations, so double clicking starts > lazarus. > But at the moment every time a new IDE is started. Not the desired behaviour either... I'll implement the File Browser (Lazarus add-on package) instead. Double clicking a file would then open it in the editor. Another benefit of this approach would mean that later other developers could extend the file browser to integrate with SVN as well or whatever else they can come up with...

ok

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gärtner
Mattias G?rtner wrote 12 lines
> > Those units need to be maintained, but they don't compile with FPC, > but only with Delphi. For example, the persistence layers used in > tiOPF: ADO, BDE, DOA (direct oracle access), UIB, dbExpress, etc... > As far as I understand, if you add them to the project or laz package, > they are still going to be compiled even if removed them from the uses > clause (Compile Clean option), which then means it will fail under > FPC. Why do you think that? Lazarus always only compiles the main source file. FPC decides what to compile.

Ah, I never actually tried, always assumed. :-) We all know what happens if you assume things. ;-)

Regards,
- Graeme -

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

Reply by email