User forums > Using Code::Blocks
I want my file creation back.
killerbot:
well we still have our class wizard for now. 8)
thomas:
Yes, in fact the class wizard is a good example how a wizard that actually saves work should be like.
It has no annoying "Welcome... now click OK to start" page, you enter one name and hit enter.
The problem with this one is that it doesn't come up when you press Ctrl-N ;)
I never use it because I never remember it's there. :lol:
Tjaalie:
I think Thomas is right.
I think when you want to program you have at least enough knowlege about a computer to not
have to use an wizard. Maby there could at least be an option to turn them off and show the normal save
file dialog.
--- Quote from: killerbot on July 18, 2006, 11:00:43 pm ---
--- Quote ---You have to manually add the file to the project later.
--- End quote ---
but often you want a new file and you don't want it to be added to a project. Sometimes you don't even want it saved (print purposes, say little scratchpad). Andthen you have a wizard asking you if it shold be added to the project or not. Woops ..; a wizard ;-) :mrgreen:
--- End quote ---
Ehh, before the wizard was there it was just one litle popup box that asked me if I wanted to add it or not. And I don't count one popup for an wizard.
mdelfede:
--- Quote from: thomas on July 18, 2006, 10:54:48 pm ---
--- Quote from: MortenMacFly on July 18, 2006, 10:46:23 pm ---
--- Quote from: thomas on July 18, 2006, 10:42:31 pm ---That's the added extra "smartness" you have to live with :(
--- End quote ---
...and that's out of your mouth... ;-)
...anyway: read my previous post (our posts have crossed) and tell me what's wrong with it?
--- End quote ---
Hey, it's not me who wants wizards everywhere ;)
In my opinion, wizards are for children or for people who just learn how to use a computer, not for programmers.
Granted, for a few complicated things, a wizard can be helpful. But for simple things, simple solutions are good, and things should never be smarter than they need to be (because they are not).
--- Quote ---2) file new (empty) --> untitled -> save it and you can give it a name and type as you like
--- End quote ---
That's an attempt to find a solution for a problem that would not be there if things were not made complicated without need in the first place. And it is a bad solution, too. You have to manually add the file to the project later.
--- End quote ---
I think more and more that the best solution would be to add a context menu to project files tree (sources, headers, resources...)
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.
It can co-exist with the wizards and also with the 'new empty file' added recently.
So we could have the choice between the wizard magics, the 'empty scratch file creation' and the 'add new file to project'.
Ciao
Max
MortenMacFly:
Ok, here it comes: I've created a wizard (*aaarg* - the BAD word ;-)) for an empty file:
- it shows the info page initially buit his can be turned off.
- it requires max. 2 parameters presented on one dialog
- it allows to select a target the file shall be added to if a project is active
- the default path for the new file is the project's base path (selected by default for the file seelction)
How about if this wizard (*aaargh* again the BAD word) would be added on the same level as "Empty file" now? This would allow to easily create a new file as scratchpad (the old method) and create a new file and quickly add it to a project?
Comments are welcome, find the wizard attached. To install: Copy it to "C::B\share\CodeBlocks\templates\wizard\empty_file" and add the following line to "C::B\share\CodeBlocks\templates\wizard\config.script":
--- Code: --- RegisterWizard(wizFiles, _T("empty_file"), _T("Empty file"), _T("C/C++"));
--- End code ---
With regards, Morten.
Here is the file: http://www.megaupload.com/?d=O84Q0BO0
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version