Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: EricKane on July 18, 2006, 10:27:45 pm

Title: Add new file to active project is too intricacy than before
Post by: EricKane on July 18, 2006, 10:27:45 pm
Add new file to active project is too intricacy than before, in spite of "New Empty File" or "New File"!!!
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 18, 2006, 10:47:06 pm
Add new file to active project is too intricacy than before, in spite of "New Empty File" or "New File"!!!
please read this: http://forums.codeblocks.org/index.php?topic=3598.msg28308#msg28308 (http://forums.codeblocks.org/index.php?topic=3598.msg28308#msg28308).
With regards, Morten.
Title: Re: Add new file to active project is too intricacy than before
Post by: EricKane on July 18, 2006, 11:29:01 pm
I can use wizard add "new c/c++ file" to active project,but if i add "new empty file" to active project, i must to save it before, can not directly add "new empty file" to active project,too discommodious.
should be add an option like " Add file into-> [opened project list]" to right click menu in editor dialog window.
Title: Re: Add new file to active project is too intricacy than before
Post by: killerbot on July 18, 2006, 11:30:51 pm
Quote
Add file into-> [opened project list]" to right click menu in editor dialog window.
I agree on this.
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 18, 2006, 11:47:17 pm
Please have a look at this post:
http://forums.codeblocks.org/index.php?topic=3598.msg28334#msg28334 (http://forums.codeblocks.org/index.php?topic=3598.msg28334#msg28334)
and tell me your thoughts...?!
Title: Re: Add new file to active project is too intricacy than before
Post by: sethjackson on July 19, 2006, 02:45:55 am
Quote
Add file into-> [opened project list]" to right click menu in editor dialog window.
I agree on this.

I'm going to have to disagree on this one.....

Please have a look at this post:
http://forums.codeblocks.org/index.php?topic=3598.msg28334#msg28334 (http://forums.codeblocks.org/index.php?topic=3598.msg28334#msg28334)
and tell me your thoughts...?!

I like it.
Title: Re: Add new file to active project is too intricacy than before
Post by: EricKane on July 19, 2006, 07:45:05 am
I mean if add an option for diractly add created "empty file" to some or other project, that will save many time.
in current way,we need 3 steps to add an empty file to some or other project:
1. create a new empty file .
2. save it.
3. click "Add files..." in project menu ,then to find out created "empty file" where i saved it and add it to some or other project.(if there has many files in my project, i must to find out it expend many time and looks.)

We can use an option like "Add file into...-> <opened project list>" of right click menu in editor dialog window,then we not need expend time to find out i saved new files in many other files.

I think that is my thought.

And i know, if i said too many there some guy will be said "thanks , but no thanks",because i am not a developer for CB. But I am not kibitz, i just said out my thought. How to actualize software functions in detail, that is your developer's business.
Regards, Eric.
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 19, 2006, 07:59:27 am
I mean if add an option for diractly add created "empty file" to some or other project, that will save many time.
in current way,we need 3 steps to add an empty file to some or other project:
Could you try this one and tell me your thoughts: http://forums.codeblocks.org/index.php?topic=3598.msg28334#msg28334 (http://forums.codeblocks.org/index.php?topic=3598.msg28334#msg28334)?
(it is also in SVN if you prefer this variant).
Title: Re: Add new file to active project is too intricacy than before
Post by: tiwag on July 19, 2006, 08:17:04 am
if i want to add a new header file i can't
it just gives an error !

see here
(http://img150.imageshack.us/img150/8158/addnewfileerrorin5.png)


svn rev 2766
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 19, 2006, 08:54:20 am
it just gives an error !
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...
Title: Re: Add new file to active project is too intricacy than before
Post by: Ceniza on July 19, 2006, 09:00:09 am
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
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 19, 2006, 09:40:00 am
I'ven't played with Squirrel but it should be 2 to 4 lines I guess :P
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... :-(
Title: Re: Add new file to active project is too intricacy than before
Post by: tiwag on July 19, 2006, 09:54:16 am
it just gives an error !
It gives an error because you haven't specified a full path name...
ok thanks !
Title: Re: Add new file to active project is too intricacy than before
Post by: killerbot on July 19, 2006, 10:31:08 am
it just gives an error !
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...

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 ??
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 19, 2006, 10:39:13 am
option 1) seems the easiest and maybe the best ??
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:"?
Title: Re: Add new file to active project is too intricacy than before
Post by: killerbot on July 19, 2006, 11:05:45 am
or relative !!

for example I never ever have my sources next to tje project, this is the structure I use (say for a lib)

my_lib
  |
  |_____inc   // (exported headers)
  |
  |_____src  // the implementation (cpp and not exported headers)
  |
  |_____doc // documentation
  |
  |_____project // the cbp

so then I could type in : ..\src\my_file.cpp or ..\inc\my_file.h
Title: Re: Add new file to active project is too intricacy than before
Post by: EricKane on July 19, 2006, 11:06:56 am
Quote
Please have a look at this post:
http://forums.codeblocks.org/index.php?topic=3598.msg28334#msg28334
and tell me your thoughts...?!  
when developer add it in next revision , i will try. If each software need be patched by myself, i have no time to do other things what i must to do.
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 19, 2006, 11:12:01 am
How about this one:
(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png) (http://imageshack.us)
(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png (http://img90.imageshack.us/img90/2729/filepathpaneldn2.png))?
With regards, Morten.
Title: Re: Add new file to active project is too intricacy than before
Post by: sethjackson on July 19, 2006, 01:54:00 pm
How about this one:
(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png) (http://imageshack.us)
(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png (http://img90.imageshack.us/img90/2729/filepathpaneldn2.png))?
With regards, Morten.

I like that one. :)
Title: Re: Add new file to active project is too intricacy than before
Post by: mdelfede on July 19, 2006, 02:16:47 pm
How about this one:
(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png) (http://imageshack.us)
(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png (http://img90.imageshack.us/img90/2729/filepathpaneldn2.png))?
With regards, Morten.

I like that one. :)

Adding to more than one target is missing in that one... would be better a checklist.

Ciao

Max
Title: Re: Add new file to active project is too intricacy than before
Post by: thomas on July 19, 2006, 02:52:44 pm
Yep, a checklist instead of a checkbox and combobox would be nice. Also, it should immediately pop up the file selector box, so you don't need to click on "..."
Title: Re: Add new file to active project is too intricacy than before
Post by: mdelfede on July 19, 2006, 02:59:59 pm
Yep, a checklist instead of a checkbox and combobox would be nice. Also, it should immediately pop up the file selector box, so you don't need to click on "..."

Is it possible to combine the file selector and the wizard page in one dialog ? Then the problem of missing path would be gone.
The wizard could open in last visited path (or project path if none).

Ciao

Max
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 19, 2006, 03:01:50 pm
Yep, a checklist instead of a checkbox and combobox would be nice. Also, it should immediately pop up the file selector box, so you don't need to click on "..."
Hey, common: Once you have enabled the checkbox on the info dialog that's what you got... ;-)
Title: Re: Add new file to active project is too intricacy than before
Post by: jpaterso on July 19, 2006, 04:41:24 pm
How about the default code? That was a great option that was available before... It doesn't seem to work anymore with newly created files...

Thanks,

- Joe
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 19, 2006, 04:55:03 pm
How about the default code? That was a great option that was available before... It doesn't seem to work anymore with newly created files...
What default code? (I really can't recall?!)
You don't mean the class wizard? Or the code that is put if you choose e.g. the DLL wizard?!
Title: Re: Add new file to active project is too intricacy than before
Post by: killerbot on July 19, 2006, 05:15:33 pm
you could specify some text that woule be applied to every new header and or source file.

Eg company headers , or gnu license stuff etc ...
I think that's down for the moment.
Title: Re: Add new file to active project is too intricacy than before
Post by: Max on July 19, 2006, 05:43:09 pm
Please,

thomas> Yep, a checklist instead of a checkbox and combobox would be nice. Also, it should immediately pop up the file selector
thomas> box, so you don't need to click on "..."

don't forget an "All" option to add the new file to all available targets. I am adding (latest nightly) some new files in a project with 4 targest. It is not confortable to manually add any new file to all the targets.

Massimo
Title: Re: Add new file to active project is too intricacy than before
Post by: Michael on July 19, 2006, 05:51:17 pm
How about this one:
(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png) (http://imageshack.us)
(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png (http://img90.imageshack.us/img90/2729/filepathpaneldn2.png))?
With regards, Morten.

Hello,

It looks good :), but IMHO a bit too big.

Best wishes,
Michael
Title: Re: Add new file to active project is too intricacy than before
Post by: MortenMacFly on July 19, 2006, 06:13:46 pm
Adding to more than one target is missing in that one... would be better a checklist.
I'll give it a try when I have time... I need to write down all that stuff not to forget...