Recent

Author Topic: we need a new method for adding components  (Read 8441 times)

Angello

  • New Member
  • *
  • Posts: 12
we need a new method for adding components
« on: October 13, 2004, 05:30:20 pm »
Now, we must recompile the whole IDE to get new components shown in the palette. (I get error on linking because ide is running and .exe is locked by the os, so i have to run ppas.bat file)
I wonder if it`s possible to make LCL interface as a special kind of libraries with components (like .DLLs in windows or modules for linux) which will be dynamically loaded by the ide. Then it will be necessary only to compile the module and to load it at a new tab with buttons for components found in it, thus avoiding the whole ide compilation.

Adam.Pilorz

  • Jr. Member
  • **
  • Posts: 67
    • http://www.pilotmp3.devtown.net
we need a new method for adding components
« Reply #1 on: October 13, 2004, 06:57:22 pm »
Hmm... And maybe not compile it at all? I mean to create the tabs dynamicaly with dynamical buttons, as the IDE don't need these components at all... It needs to "know" which components are installed (this data can be contained in a configuration file) and which units are used by them. And then a program using these components are compiled with them... In my opinion the IDE don't need aditional components in it's binaries at all...

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
we need a new method for adding components
« Reply #2 on: October 14, 2004, 09:36:32 am »
The IDE needs these components in compiled form in orer to be able to stream them to a .lrs (lazarus resource) file.

The problem with Angello's idea, is that fpc doesn't support packages yet. It is planned for fpc 2.0, though. Once that is  implemented, lazarus can use it.

Anonymous

  • Guest
we need a new method for adding components
« Reply #3 on: May 18, 2005, 01:29:37 am »
fpc 2.0.0 is out.. does it support packages?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
we need a new method for adding components
« Reply #4 on: May 18, 2005, 03:35:15 pm »
No, packages were skipped in order to have 2.0 in 2005. If 2.0 would have waited for packages, it probably would not have been released this year. Maybe in fpc 2.2, see FPC roadmap.

Vincent.

draconius

  • Newbie
  • Posts: 1
Re: we need a new method for adding components
« Reply #5 on: October 05, 2009, 12:52:09 pm »
Hi,

i've thought about how it would be possible.

I think the components should linked like an PlugIn.

So the IDE have a list of Components and at start each Component (PlugIn)
respond his Object's, Icon's and so on by a defined interface.

And with these responds it creates an LinkLibrary on the fly an maybe store it in an cachefile, so it have not to recreate it every time only on change or usercomand.

Best regrads from Germany  :D
Draconius

software engineer in Delphi 5 Prof.

 

TinyPortal © 2005-2018