User forums > Using Code::Blocks
Add new file to active project is too intricacy than before
Ceniza:
If you're going to add it to the active project and the path is relative, the project's base directory sounds good :)
I'ven't played with Squirrel but it should be 2 to 4 lines I guess :P
MortenMacFly:
--- Quote from: Ceniza on July 19, 2006, 09:00:09 am ---I'ven't played with Squirrel but it should be 2 to 4 lines I guess :P
--- End quote ---
The problem is: This isn't an issue with the (squirrel) wizard script but with the wizard plugin itself. The message is issued by the wizard plugin... :-(
tiwag:
--- Quote from: MortenMacFly on July 19, 2006, 08:54:20 am ---
--- Quote from: tiwag on July 19, 2006, 08:17:04 am ---it just gives an error !
--- End quote ---
It gives an error because you haven't specified a full path name...
--- End quote ---
ok thanks !
killerbot:
--- Quote from: MortenMacFly on July 19, 2006, 08:54:20 am ---
--- Quote from: tiwag on July 19, 2006, 08:17:04 am ---it just gives an error !
--- End quote ---
It gives an error because you haven't specified a full path name. So the wizards doens't now in what folder to place the file into. Please use the "..." button... I'll think about that...
--- End quote ---
I noticed this one too, I also typed in the filename without browsing to a directory.
I think other people might also make this mistake; So from the top of my head I see 2 solutions :
1) either make the text box uneditable
2) create it in the (active) project directory or (active) target directory if there's one. Otherwise people habe to browse for it.
option 1) seems the easiest and maybe the best ??
MortenMacFly:
--- Quote from: killerbot on July 19, 2006, 10:31:08 am ---option 1) seems the easiest and maybe the best ??
--- End quote ---
I would fully agree on that. Choosing the project's directory as default if only a file name has been provided makes no sense in many cases. And since the "File select" dialog starts in the projects base directory this is usually a very good default (at least for me) and saves "browsing" time...
Edit: On second thoughts: then we will have the guys complaining that want to enter a short path by hand and not using the mouse. So how about simply changing the label for this textbox from "Filename:" to "Filename with full path:"?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version