User forums > Using Code::Blocks
I want my file creation back.
MortenMacFly:
--- Quote from: mdelfede on July 18, 2006, 11:40:18 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.
--- End quote ---
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... ;-)
kidmosey:
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.
Ceniza:
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:
--- Quote from: MortenMacFly on July 18, 2006, 11:51:06 pm ---
--- Quote from: mdelfede on July 18, 2006, 11:40:18 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.
--- End quote ---
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... ;-)
--- End quote ---
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
MortenMacFly:
...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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version