[GSoC] User-Defined Project & File Templates

Sven Brauch svenbrauch at googlemail.com
Sat Mar 24 09:35:51 UTC 2012


It could read name, mail address, and project name from the VCS. :)

Am 24. März 2012 08:53 schrieb Andrei G <otzy007 at gmail.com>:
> I ask you because right now I don't see other improvement than adding
> more licenses and maybe setting some custom fields into them. I'll
> play more with them and I'll figure out what needs to be improved :)
>
>
> On 24/03/2012, Aleix Pol <aleixpol at kde.org> wrote:
>> On Fri, Mar 23, 2012 at 7:31 PM, Andrei G <otzy007 at gmail.com> wrote:
>>>
>>>
>>> On Fri, Mar 23, 2012 at 5:54 PM, Aleix Pol <aleixpol at kde.org> wrote:
>>>>
>>>> On Fri, Mar 23, 2012 at 4:40 PM, Andrei G <otzy007 at gmail.com> wrote:
>>>> >
>>>> >
>>>> > On Fri, Mar 23, 2012 at 5:29 PM, Aleix Pol <aleixpol at kde.org> wrote:
>>>> >>
>>>> >> On Fri, Mar 23, 2012 at 3:57 PM, Andrei G <otzy007 at gmail.com> wrote:
>>>> >> > On Wed, Mar 21, 2012 at 3:46 PM, Aleix Pol <aleixpol at kde.org> wrote:
>>>> >> >>
>>>> >> >> On Wed, Mar 21, 2012 at 2:25 PM, Andrei G <otzy007 at gmail.com>
>>>> >> >> wrote:
>>>> >> >> >
>>>> >> >> >
>>>> >> >> > On Wed, Mar 21, 2012 at 1:27 AM, Aleix Pol <aleixpol at kde.org>
>>>> >> >> > wrote:
>>>> >> >> >>
>>>> >> >> >> On Tue, Mar 20, 2012 at 10:22 PM, Andrei G <otzy007 at gmail.com>
>>>> >> >> >> wrote:
>>>> >> >> >> >
>>>> >> >> >> >
>>>> >> >> >> > On Tue, Mar 20, 2012 at 5:59 PM, Aleix Pol <aleixpol at kde.org>
>>>> >> >> >> > wrote:
>>>> >> >> >> >>
>>>> >> >> >> >>
>>>> >> >> >> >
>>>> >> >> >> > So I should think more on the templates sharing part on GHNS
>>>> >> >> >> > and
>>>> >> >> >> > the
>>>> >> >> >> > creation of new files from a template?
>>>> >> >> >> > To create a new file from a template I think something like
>>>> >> >> >> > appwizard(Create
>>>> >> >> >> > New Project) can be used. I am thinking of something similar
>>>> >> >> >> > like
>>>> >> >> >> > NetBeans
>>>> >> >> >> > New File context.
>>>> >> >> >> > You select the Language and the type of file.
>>>> >> >> >> > For example for C++: .h file and .cpp file
>>>> >> >> >> >
>>>> >> >> >> > Am I on the right track? :D
>>>> >> >> >> >
>>>> >> >> >> > --
>>>> >> >> >> > Andrei
>>>> >> >> >>
>>>> >> >> >> Well, yes. But I'd like you to think it a bit further.
>>>> >> >> >> - What's the difference between using this and "create new
>>>> >> >> >> class"?
>>>> >> >> >> - Is it going to overlap?
>>>> >> >> >> - What use cases do you want to cover? Where does it end?
>>>> >> >> >> - Do you plan on integrating it with the buildsystem? For
>>>> >> >> >> example
>>>> >> >> >> if
>>>> >> >> >> you add a test, you'll want to add it to compile, if c++.
>>>> >> >> >>
>>>> >> >> >> See the comments I made in the public mailing list with the OBS
>>>> >> >> >> guy,
>>>> >> >> >> maybe it will help.
>>>> >> >> >>
>>>> >> >> >> Aleix
>>>> >> >> >
>>>> >> >> >
>>>> >> >> >
>>>> >> >> > I think that this new feature should include "Create Class". And
>>>> >> >> > of
>>>> >> >> > course
>>>> >> >> > they will be included in the buildsystem.
>>>> >> >> > For C++ templates: Header(.h), .cpp, Class, maybe .ui files
>>>> >> >> >
>>>> >> >> > By public mailing list you mean
>>>> >> >> > site:http://barney.cs.uni-potsdam.de/pipermail/kdevelop ?
>>>> >> >> >
>>>> >> >> > I found this discussion
>>>> >> >> >
>>>> >> >> >
>>>> >> >> >
>>>> >> >> > http://barney.cs.uni-potsdam.de/pipermail/kdevelop/2000-November/005890.html
>>>> >> >> > but I think it's not the one you told me to see it
>>>> >> >> > --
>>>> >> >> > Andrei
>>>> >> >>
>>>> >> >> no, I mean one from yesterday about GSoC.
>>>> >> >>
>>>> >> >> And please, think things through. You can't say you will tackle the
>>>> >> >> "new class" usecase that easily, the wizard we have now is a bit
>>>> >> >> more
>>>> >> >> advanced, it lets you override methods and uses DUChain, it's not
>>>> >> >> something you can do with file templates alone.
>>>> >> >>
>>>> >> >> Aleix
>>>> >> >
>>>> >> >
>>>> >> > I wasn't thinking I will do class creation with just a simple
>>>> >> > template.
>>>> >> > I
>>>> >> > was thinking that the existing create class wizard could be called
>>>> >> > from
>>>> >> > Create New File from Template. It's too stupid to put an example
>>>> >> > class
>>>> >> > and
>>>> >> > then the user modifies it.
>>>> >> >
>>>> >> > I might say stupid thinks and not think too much, but I just want to
>>>> >> > make an
>>>> >> > idea of what the community wants from this GSoC proposal.
>>>> >> >
>>>> >> > --
>>>> >> > Andrei
>>>> >>
>>>> >> Well, the idea is that we need to make sure that you know what needs
>>>> >> to be done :P.
>>>> >>
>>>> >> Aleix
>>>> >
>>>> > I understand that :D
>>>> >
>>>> > What do you think would be better? To modify the existing templates
>>>> > wizard
>>>> > to act like QCreator's one, to be for projects and also for files, or
>>>> > to
>>>> > have 2 wizards?
>>>> >
>>>> >
>>>> > --
>>>> > Andrei
>>>>
>>>> well, right now we have a "create file" action. You can enhance it to
>>>> add non-empty files too.
>>>
>>>      I know there is one :p I user Kdevelop for most of my programming
>>> tasks
>>>>
>>>>
>>>> also there's a lot to improve in the new class wizard.
>>>>
>>>> I think that you should brainstorm yourself and think of all teh
>>>> features you'd like to have and see what you can do.
>>>>
>>>> it's fine if we have different ui's, classes are very specific
>>>> sometimes, depends a lot on the language too. For example, it would be
>>>> cool that if you tell it to be a QObject instance, then it adds the
>>>> Q_OBJECT class and all.
>>>>
>>>>
>>>> Also the templating for the license insertion in the files can be
>>>> improved
>>>> too.
>>>
>>>
>>>>
>>>> Aleix
>>>
>>>
>>> How do you thing license insertion could be improved?
>>>
>>>
>>> --
>>> Andrei
>>
>> don't make me do the thinking :)
>>
>
>
> --
> Andrei
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel




More information about the KDevelop-devel mailing list