<br><br><div class="gmail_quote">On Sun, Dec 28, 2008 at 11:03 PM, Milian Wolff <span dir="ltr"><<a href="mailto:mail@milianw.de">mail@milianw.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am Sunday 28 December 2008 schrieb Hamish Rodda:<br>
<div class="Ih2E3d">> On Saturday 27 December 2008 06:56:27 Milian Wolff wrote:<br>
> > Am Freitag 26 Dezember 2008 schrieb Niko Sams:<br>
> > > >        ii) provide proper file skeletons for the "create class/file"<br>
> > > > actions iii) provide proper support for the inheritance stuff in the<br>
> > > > "create class" dialog.<br>
> > ><br>
> > > That would be really great. There is some basic code generation stuff<br>
> > > for C++ in KDevelop and a few base classes in KDevPlatform. Harmish<br>
> > > Rodda has done that for C++ and the base classes.<br>
> ><br>
> > Yes, found that already. Lets hope I can understand it and apply it to<br>
> > PHP.<br>
><br>
> I tried to keep it as generic as possible, if you look/copy the code in<br>
> kdevelop/languages/cpp/codegen and modify it for php (ie. tell it which<br>
> methods are overridable, which to filter out etc) it should be pretty easy.<br>
> The other thing that might need effort is parsing of each inheritance<br>
> string (for c++ eg. "public BaseClass"), and then of course the code to<br>
> create the class itself - for the moment we're using string concatenation<br>
> but eventually I plan to switch to AST generation as an intermediate step.<br>
<br>
</div>How does KDevelop decide which Wizard to show? If I understand the C++ code<br>
correct, you just add the "create class" wizard into the context menu. But<br>
then we would have "create c++ class", "create php class" , ... spam in the<br>
context menu... Or am I missing something? Since the current dialog doesn't<br>
ask which language I'm using I don't see how the create class wizard would be<br>
modular?<br>
<div><div></div><div class="Wj3C7c"></div></div></blockquote><div>Maybe we should just have an "add class" entry and choose the language in the wizard...<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="Wj3C7c"><br>
--<br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de">mail@milianw.de</a><br>
<a href="http://milianw.de" target="_blank">http://milianw.de</a><br>
</div></div><br>_______________________________________________<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div><br>