Author Topic: I want my file creation back.  (Read 16631 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: I want my file creation back.
« Reply #15 on: July 18, 2006, 11:51:06 pm »
It would be simple to right click on headers, for example, select 'new file', give a name and have the header file added to project with no wizards.
Yes, but you would have to at least offer one selection: The target. A project can contain several targets - so to which one shall the new header file be added? ...and that's where the wiazards come into play... ;-)

...I hope I'm not beaten as I'm the only one pro wizards here... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline kidmosey

  • Multiple posting newcomer
  • *
  • Posts: 95
    • MUSITU International
Re: I want my file creation back.
« Reply #16 on: July 19, 2006, 02:40:46 am »
Okay, so the project's context menu has an option to "Add Files..." and opens up the file open dialog.

Why not allow the user to open non-existent files and only commit them to the project/disk if the user saves them?

Then you'd have a quick create, a scratch pad, and be able to easily add a new empty file to your project.

Edit: I suggest using the "Add Files..." dialog to avoid cluttering the context menu with a "New File..." entry.
« Last Edit: July 19, 2006, 03:02:23 am by kidmosey »
3 years until google knows more than god.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: I want my file creation back.
« Reply #17 on: July 19, 2006, 03:00:56 am »
So far kidmosey's idea is the best approach IMHO, but the current implementation to create a new file has a drawback: no default highlighting.

The current highlighting can be changed, I know that, but it takes many clicks to select it.

A few possible "solutions":
  • 1. How it used to work: show the "save as" dialog and if a project is active the choice to add it to a target or not.
  • 2. Tricky: hit Ctrl+S just after its creation and goto 1.
  • 3. Dialog: show a dialog to select the highlighting to be used + set as default + don't show again. If Ctrl+S then goto 1.

My $20 (we don't have cents neither coins with smaller value still in use :P)

mdelfede

  • Guest
Re: I want my file creation back.
« Reply #18 on: July 19, 2006, 11:05:04 am »
It would be simple to right click on headers, for example, select 'new file', give a name and have the header file added to project with no wizards.
Yes, but you would have to at least offer one selection: The target. A project can contain several targets - so to which one shall the new header file be added? ...and that's where the wiazards come into play... ;-)

...I hope I'm not beaten as I'm the only one pro wizards here... ;-)

Mhhhh... could be done in all targets by default (sigh) or show a wizard (arrrrrghhhh!!) to tell on which target put the file...
Of course the best would be to ask in the save dialog the very first time it's saved... but I think this would clobber a bit the dialog.

Ciao

Max

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: I want my file creation back.
« Reply #19 on: July 21, 2006, 11:04:32 am »
...ok I've done some investigations into the new empty_file wizard and the panel itself. I believe it is possible to have a wxCheckListBox there and I see the need for this. I've started implementing this which requires mainly changes in the plugin itself. Please give me some time.

BTW: What I'm also trying is to enable the ability to add a quick "all targets" checkbox and maybe (!) a "select project" combobox for the case you have a workspace with many projects and want to add the file to another project than the active one. The last one I cannot promise because if it makes things too complicated I'll skip this and just stay by the way it is now: "it is required to have the project activated you want to add the files to".

Just to let you know...

With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline iw2nhl

  • Multiple posting newcomer
  • *
  • Posts: 116
  • BASIC, C, C++, Qt, bash
Re: I want my file creation back.
« Reply #20 on: July 21, 2006, 04:28:28 pm »
BTW: What I'm also trying is to enable the ability to add a quick "all targets" checkbox
Wow, this is just what I wanted since first time I used C::B!

BTW: why as default all targets are not checked? Isn't more usual to add the file to all targets?
I'm thinking about the classic "Release" and "Debug" targets which must have the same files.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: I want my file creation back.
« Reply #21 on: July 21, 2006, 04:37:08 pm »
BTW: why as default all targets are not checked? Isn't more usual to add the file to all targets?
I'm thinking about the classic "Release" and "Debug" targets which must have the same files.
This would be an issue for projects like C::B. There targets are libs and plugins used by the main (application) target. For such projects this default settings would be annoying. So I guess if I do this mandrav and/or Thomas will kill me. ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline iw2nhl

  • Multiple posting newcomer
  • *
  • Posts: 116
  • BASIC, C, C++, Qt, bash
Re: I want my file creation back.
« Reply #22 on: July 21, 2006, 04:47:50 pm »
Ok, I just asked, but I thought that there were reasons for not doing it ;-)

Well, then I (and people with little projects) really need the "All targets" button...  8)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: I want my file creation back.
« Reply #23 on: July 21, 2006, 07:36:08 pm »
Well, then I (and people with little projects) really need the "All targets" button...  8)
...which I have already implemented. I'm struggling with the issues how to query more than a singluar value to a script. My first attempt wasn't good on second thoughts so now I'm doing a re-write which should do the job better...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Tjaalie

  • Multiple posting newcomer
  • *
  • Posts: 40
Re: I want my file creation back.
« Reply #24 on: July 23, 2006, 11:40:40 am »
Whooooohhhh my first two page thread!!!
Damm it feels good.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: I want my file creation back.
« Reply #25 on: July 25, 2006, 03:12:27 pm »
Ok guys, I've implemented the selection of multiple targets for the single-file wizards in SVN. Please give it a try (e.g. with today's nightly) and feel free to report back.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ