Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Mattias Gaertner
On Tue, 12 Feb 2013 13:58:15 -0500 Donald Ziesig wrote: > On 02/12/2013 03:36 AM, Mattias Gaertner wrote: >[...] > I extended the TCodetoolsClassCompletionOptionsFrame and added the > template expander data in TCodeToolsOptions. I can see the data being > saved and restored appropriately in co

Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Howard Page-Clark
On 12/02/13 6:58, Donald Ziesig wrote: The following code from my TemplateExpander unit fails at compilation: uses CodeToolOptions; because the compiler can't find the file. Assuming CodeTools has been added as a dependency for your project, I think you also need to add in the Project Opt

Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Donald Ziesig
On 02/12/2013 03:36 AM, Mattias Gaertner wrote: On Mon, 11 Feb 2013 21:43:03 -0500 Donald Ziesig wrote: [...] Hmmm. In my code, the XML reader detects, and the IDE writes XML errors to stdout as you say. I haven't implemented a GUI to generate the XML. (Yet). Right now, if the author of the

Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Mattias Gaertner
On Mon, 11 Feb 2013 21:43:03 -0500 Donald Ziesig wrote: >[...] > Hmmm. In my code, the XML reader detects, and the IDE writes XML errors > to stdout as you say. I haven't implemented a GUI to generate the XML. > (Yet). Right now, if the author of the XML makes an error, he had > better be w

Re: [Lazarus] Code Completion Templates

2013-02-11 Thread Donald Ziesig
On 02/11/2013 03:57 PM, Mattias Gaertner wrote: On Mon, 11 Feb 2013 15:50:47 -0500 Donald Ziesig wrote: [...] 3) I have a separate program to parse the xml file and detect any possible syntax errors before Lazarus tries to load it. Where should I put that? What kind of syntax errors? For th

Re: [Lazarus] Code Completion Templates

2013-02-11 Thread Mattias Gaertner
On Mon, 11 Feb 2013 15:50:47 -0500 Donald Ziesig wrote: >[...] > >> 3) I have a separate program to parse the xml file and detect any > >> possible syntax errors before Lazarus tries to load it. Where should I > >> put that? > > What kind of syntax errors? For the xml or for the pascal snippets?

Re: [Lazarus] Code Completion Templates

2013-02-11 Thread Donald Ziesig
On 02/11/2013 03:46 AM, Mattias Gaertner wrote: On Sun, 10 Feb 2013 20:45:49 -0500 Donald Ziesig wrote: [...] I have almost finished a patch that uses an xml file, a new unit and mods to codecompletion.pas to implement configurable code completion. I have a few questions remaining: 1) What i

Re: [Lazarus] Code Completion Templates

2013-02-11 Thread Mattias Gaertner
On Sun, 10 Feb 2013 20:45:49 -0500 Donald Ziesig wrote: >[...] > I have almost finished a patch that uses an xml file, a new unit and > mods to codecompletion.pas to implement configurable code completion. > > I have a few questions remaining: > > 1) What is the preferred way to specify the na

Re: [Lazarus] Code Completion Templates

2013-02-11 Thread Sven Barth
On 11.02.2013 02:45, Donald Ziesig wrote: 2) What is the preferred way to submit the patch? (In my previous life, before retirement, all I had to do was submit my code to the Quality Control unit and wait for their inevitable nasty-grams; the classic of which was "What is this thing called a 'sta

Re: [Lazarus] Code Completion Templates

2013-02-10 Thread Donald Ziesig
On 02/05/2013 02:42 PM, Sven Barth wrote: On 05.02.2013 18:30, Mattias Gaertner wrote: Donald Ziesig hat am 5. Februar 2013 um 23:16 geschrieben: Hi All! Could anyone point me at the file(s) containing the templates invoked with Ctrl-Shift-C? Specifically I would like to replace the Set co

Re: [Lazarus] Code Completion Templates

2013-02-05 Thread Martin
On 05/02/2013 19:42, Sven Barth wrote: On 05.02.2013 18:30, Mattias Gaertner wrote: Donald Ziesig hat am 5. Februar 2013 um 23:16 geschrieben: Could anyone point me at the file(s) containing the templates invoked with Ctrl-Shift-C? ... It's hard coded. See components/codetools/codecompletion

Re: [Lazarus] Code Completion Templates

2013-02-05 Thread Sven Barth
On 05.02.2013 18:30, Mattias Gaertner wrote: Donald Ziesig hat am 5. Februar 2013 um 23:16 geschrieben: Hi All! Could anyone point me at the file(s) containing the templates invoked with Ctrl-Shift-C? Specifically I would like to replace the Set code that expands to: if(AValue=f) then exit;

Re: [Lazarus] Code Completion Templates

2013-02-05 Thread Donald Ziesig
On 02/05/2013 12:30 PM, Mattias Gaertner wrote: Donald Ziesig hat am 5. Februar 2013 um 23:16 geschrieben: Hi All! Could anyone point me at the file(s) containing the templates invoked with Ctrl-Shift-C? Specifically I would like to replace the Set code that expands to: if(AValue=f) then exi

Re: [Lazarus] Code Completion Templates

2013-02-05 Thread Mattias Gaertner
Donald Ziesig hat am 5. Februar 2013 um 23:16 geschrieben: > Hi All! > > Could anyone point me at the file(s) containing the templates invoked > with Ctrl-Shift-C? > > Specifically I would like to replace the Set code that expands to: > > if(AValue=f) then exit; > f=AValue; > > with > Update(f,AV

[Lazarus] Code Completion Templates

2013-02-05 Thread Donald Ziesig
Hi All! Could anyone point me at the file(s) containing the templates invoked with Ctrl-Shift-C? Specifically I would like to replace the Set code that expands to: if(AValue=f) then exit; f=AValue; with Update(f,AValue); // Keeps track of modifications to the underlying object. Thanks,