Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-16 Thread Tobias Hunger
On Wed, Dec 16, 2020 at 9:08 AM Eike Ziller wrote: > Of course an option is also to check if a single sensible place where to add > the file to exists > (single CMakeLists.txt file, single target, single > add_target_sources/other-function-that-we-recognize) and then automatically > add it, > o

Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-16 Thread Eike Ziller
> On Dec 15, 2020, at 17:22, Kevin André wrote: > > So I would suggest showing a > diff of the CMake file(s) to the user first and asking for > confirmation before actually applying each of the changes. That would be a sensible requirement, yes. At some point it might be simpler for the user to

Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-15 Thread Tobias Hunger
On Tue, Dec 15, 2020, 17:23 Kevin André wrote: > I think it could be done without understanding the structure of a > CMake file, but with some kind of pattern matching instead. Try to > emulate what a person would do when a new file is to be added: find > out where the pre-existing source files a

Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-15 Thread Kevin André
On Tue, Dec 8, 2020 at 5:19 PM Eike Ziller wrote: > > > On Dec 8, 2020, at 16:43, Kevin André wrote: > > > > On Tue, Dec 8, 2020 at 9:43 AM Eike Ziller wrote: > >> > >>> On Dec 8, 2020, at 00:27, Kevin André wrote: > >>> > >>> Every time I use the dialog for adding a new class, there is still a

Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-08 Thread Eike Ziller
> On Dec 8, 2020, at 16:43, Kevin André wrote: > > On Tue, Dec 8, 2020 at 9:43 AM Eike Ziller wrote: >> >>> On Dec 8, 2020, at 00:27, Kevin André wrote: >>> >>> Hi, >>> >>> Every time I use the dialog for adding a new class, there is still a >>> lot that I need to do manually after the fil

Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-08 Thread Kevin André
On Tue, Dec 8, 2020 at 10:49 AM Christian Kandeler wrote: > > > What where the arguments against a separate namespace field? > > Nested namespaces come to mind. A separate namespace field could still support nested namespaces. The issue I'm raising is simply that namespace support is hidden. Like

Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-08 Thread Kevin André
On Tue, Dec 8, 2020 at 9:43 AM Eike Ziller wrote: > > > On Dec 8, 2020, at 00:27, Kevin André wrote: > > > > Hi, > > > > Every time I use the dialog for adding a new class, there is still a > > lot that I need to do manually after the files were generated: > > > > 1. Add cpp file and often the he

Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-08 Thread Christian Kandeler
> What where the arguments against a separate namespace field? Nested namespaces come to mind. Christian ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator

Re: [Qt-creator] Suggestions for 'new class' dialog

2020-12-08 Thread Eike Ziller
> On Dec 8, 2020, at 00:27, Kevin André wrote: > > Hi, > > Every time I use the dialog for adding a new class, there is still a > lot that I need to do manually after the files were generated: > > 1. Add cpp file and often the header file as well to CMakeLists.txt Unfortunately automatically

[Qt-creator] Suggestions for 'new class' dialog

2020-12-07 Thread Kevin André
Hi, Every time I use the dialog for adding a new class, there is still a lot that I need to do manually after the files were generated: 1. Add cpp file and often the header file as well to CMakeLists.txt 2. Add GPL header to each file (copy from another file and update the year if necessary) 3. A