Re: [fpc-pascal] Something like g_object_get() in Pascal?
On 01 Aug 2010, at 14:45, Matthias Klumpp wrote: I have a record containing a set of variables. This record should now be accessed from an application developed in C (through a shared library). Because Pascal records are incompatible with C structs If you use {$packrecords c}, then records in FPC will use the same layout as C structs on the current platform. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Something like g_object_get() in Pascal?
On Sun, Aug 1, 2010 at 2:45 PM, Matthias Klumpp wrote: > Is there a possibility to get the same function in Pascal to? That I just > define one get_value() function which receives the property name as string > and outputs the value of it? I don't know about getting the value of a property, but you can get the type of a property using RTTI: Read more here: http://delphi.about.com/gi/o.htm?zi=1/XJ&zTi=1&sdn=delphi&cdn=compute&tm=47&f=11&su=p284.9.336.ip_p504.1.336.ip_&tt=2&bt=1&bts=1&zu=http%3A//www.blong.com/Conferences/BorConUK98/DelphiRTTI/CB140.htm Specifically: function GetPropInfo(TypeInfo: PTypeInfo; const PropName: string): PPropInfo; You would need to change your record into a class: TTestClass = class private Fval1: String; Fval2: Integer; published property val1: String read Fval1 write Fval1; property val2: Integer read Fval2 write Fval2; end; Probably this mechanism also allows to get the value of the property, although I am not sure ... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Property Tags
> 1 - How to simulate multiple inheritance ? Is there an alternative way > (Some other techniques, like interfaces etc) ? Err... we have interfaces since version 1.1. Check http://freepascal.org/docs-html/ref/refch7.html#x84-920007 this out. -- View this message in context: http://old.nabble.com/Property-Tags-tp29315514p29324416.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] textmode ide configuration
Hi, quick question: where does the textmode IDE store its configuration? It seems I have messed up something but I cant find any configuration at the obvious places where I would expect them. The following are the places I would intuitively look for a config file /etc/fp.cfg (or something starting with .fp) /etc/fp/ ~/.fp.cfg (or something starting with .fp) ~/.fp/ but i cannot find it. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] textmode ide configuration
On 08/02/2010 07:17 AM, Bernd Kreuss wrote: Hi, quick question: where does the textmode IDE store its configuration? It seems I have messed up something but I cant find any configuration at the obvious places where I would expect them. The following are the places I would intuitively look for a config file /etc/fp.cfg (or something starting with .fp) /etc/fp/ ~/.fp.cfg (or something starting with .fp) ~/.fp/ but i cannot find it. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal On my machine, it lives at /usr/lib64/fpc/2.4.0/ide/text/fp.cfg ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] textmode ide configuration
On 02 Aug 2010, at 16:17, Bernd Kreuss wrote: quick question: where does the textmode IDE store its configuration? I think that by default it stores them in the current directory (to support different configuration files for different "projects".) The names are fp.ini, fp.cfg and fp.dsk Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] textmode ide configuration
In our previous episode, Jonas Maebe said: > > quick question: where does the textmode IDE store its configuration? > > I think that by default it stores them in the current directory (to > support different configuration files for different "projects".) The > names are fp.ini, fp.cfg and fp.dsk Afaik if it can find centrally stored ones, it asks if you want to use them or create new ones. At least it works that way on windows. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] textmode ide configuration
On 02.08.2010 16:30, Marco van de Voort wrote: > In our previous episode, Jonas Maebe said: >>> quick question: where does the textmode IDE store its configuration? >> >> I think that by default it stores them in the current directory (to >> support different configuration files for different "projects".) The >> names are fp.ini, fp.cfg and fp.dsk > > Afaik if it can find centrally stored ones, it asks if you want to use them > or create new ones. At least it works that way on windows. I found them, it was fp.ini, fp.cfg and fp.dsk in the current directory. I didn't notice them because I was doing some experiments in my home dir and i did it from the console, so I didn't see them amongst all my other files there at a glance. It suddenly didn't display any compiler error messages anymore and I read somewhere that this might be a messed up configuration, so I was searching for a global configuration file. Simply deleting the above mentioned files solved the problem. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] fpGUI Toolkit v0.7 (final release) for FPC 2.4
fpGUI v0.7 is finally available --- This was a long wait since the previous v0.6 release, but v0.7 is well with it with loads of new features and tools. An archived source download can be found at the following URL, or the source code could be pulled directly from the source code repository. http://sourceforge.net/projects/fpgui/files/ For more details, please visit the fpGUI home page: http://opensoft.homeip.net/fpgui/ The v0.7 release contains a lot of added features compared to the previous release. Below is just a small list of things that changed or was added (see the repository log for more details). The pre-built HTML and INF class documentation will be made available during the next few days. This will include updated Class Documentation for fpGUI, FPC's RTL, FPC's FCL and a special version of FPC's Language Reference document in INF format. I will also include pre-built binaries of DocView (fpGUI's own help viewer) for Linux and Windows, plus instructions on how to integrate DocView with Lazarus IDE and MSEide so you can have context sensitive help from within each IDE's code editor. Change highlights - * FPC 2.4.0 compatible. * Fully tested on 32-bit and 64-bit platforms. Tested on Linux, Windows and the *BSD family. * Mobile device support is back. Tested on ARM Linux and Windows Mobile devices. * fpGUI UI Designer has improved a lot and extended it's component palette and Object Inspector. * Various bug fixes, memory leaks and other enhancements have been applied. * Units have a more uniform naming style. * Classes have a more uniform structure/hierarchy with base classes. * Help support has been added to the core framework * fpGUI now has it's own help file viewer called DocView. Docview includes the following features: - document annotation - bookmarks - browse history - exporting articles to plain text or IPF format. - full text search (including weighting of results to see how relevant the results are) - Font and Color customization - Concatenation of help files at run-time so a library of help files can be viewed simultaneously. - Easy integration via the "external tools" feature of IDE's like Lazarus or MSEide. This allows for context sensitive help. - History of most recently viewed help files. - Help file format used is the INF format (IBM's format used it OS/2), which is very compact, incredibly fast and supports full text search. * A lot of new components have been added, including enhancements to existing components. * Various new dialogs have been added, which include Color Wheel, Character Map, Database Login etc. * Improved integration with tiOPF project via the Model-GUI-Mediator design pattern. * Graphical FPCUnit unit test runner. * Lots of new language translations for the core fpGUI library. * A lot of new example projects demoing various GUI components. Some changes in v0.7-rc1 - FPC 2.4.0 compatible. - Fully tested on 32-bit and 64-bit platforms. Tested on Linux, Windows and the *BSD family. - Mobile device support is back. Tested on ARM Linux and Windows Mobile devices. - fpGUI UI Designer has improved a lot and extended it's component palette and Object Inspector. - Various bug fixes, memory leaks and other enhancements have been applied. - Units have a more uniform naming style. - Classes have a more uniform structure/hierarchy with base classes. - Help support has been added to the core framework - fpGUI now has it's own help file viewer called DocView. Docview includes the following features: - document annotation - bookmarks - browse history - exporting articles to plain text or IPF format. - full text search (including weighting of results to see how relevant the results are) - Font and Color customization - Concatenation of help files at run-time so a library of help files can be viewed simultaneously. - Easy integration via the "external tools" feature of IDE's like Lazarus or MSEide. This allows for context sensitive help. - History of most recently viewed help files. - Help file format used is the INF format (IBM's format used it OS/2), which is very compact, incredibly fast and supports full text search. - A lot of new components have been added, including enhancements to existing components. - Various new dialogs have been added, which include Color Wheel, Character Map, Database Login etc. - Improved integration with tiOPF project via the Model-GUI-Mediator design pattern. - Graphical FPCUnit unit test runner. - Lots of new language translations for the core fpGUI library. - A lot of new example projects demoing various GUI components. Some changes in v0.7-rc2 - - Localization of Character Map dialog. - Insert from Character Map
Re: [fpc-pascal] Property Tags
and what about property tags and dynamic dispatch ? this would solve a lot of problems of my project... (i'm reading about multiple inheritance and looks like it creates more problems than it solves...) on the other way looks like interfaces would make things more complex... its there any technique to simulate multiple inheritance ? like those oop models people talk about (iterator, recall, command etc) 2010/8/2 leledumbo : > >> 1 - How to simulate multiple inheritance ? Is there an alternative way >> (Some other techniques, like interfaces etc) ? > > Err... we have interfaces since version 1.1. Check > http://freepascal.org/docs-html/ref/refch7.html#x84-920007 this out. > > -- > View this message in context: > http://old.nabble.com/Property-Tags-tp29315514p29324416.html > Sent from the Free Pascal - General mailing list archive at Nabble.com. > > ___ > fpc-pascal maillist - fpc-pas...@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal