Author Topic: Add new file to active project is too intricacy than before  (Read 10620 times)

Offline zealkane

  • Multiple posting newcomer
  • *
  • Posts: 29
Add new file to active project is too intricacy than before, in spite of "New Empty File" or "New File"!!!
« Last Edit: July 18, 2006, 10:33:26 pm by Eric Kane »
Zeal without knowledge is fire without light.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #1 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.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline zealkane

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Add new file to active project is too intricacy than before
« Reply #2 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.
Zeal without knowledge is fire without light.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5149
Re: Add new file to active project is too intricacy than before
« Reply #3 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #4 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
and tell me your thoughts...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

sethjackson

  • Guest
Re: Add new file to active project is too intricacy than before
« Reply #5 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
and tell me your thoughts...?!

I like it.

Offline zealkane

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Add new file to active project is too intricacy than before
« Reply #6 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.
Zeal without knowledge is fire without light.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #7 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?
(it is also in SVN if you prefer this variant).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Add new file to active project is too intricacy than before
« Reply #8 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



svn rev 2766
« Last Edit: July 19, 2006, 08:20:01 am by tiwag »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #9 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1442
    • CenizaSOFT
Re: Add new file to active project is too intricacy than before
« Reply #10 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #11 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... :-(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Add new file to active project is too intricacy than before
« Reply #12 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 !

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5149
Re: Add new file to active project is too intricacy than before
« Reply #13 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 ??

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #14 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:"?
« Last Edit: July 19, 2006, 10:57:48 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5149
Re: Add new file to active project is too intricacy than before
« Reply #15 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

Offline zealkane

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Add new file to active project is too intricacy than before
« Reply #16 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.
« Last Edit: July 19, 2006, 11:08:28 am by Eric Kane »
Zeal without knowledge is fire without light.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #17 on: July 19, 2006, 11:12:01 am »
How about this one:

(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png)?
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

sethjackson

  • Guest

Offline mdelfede

  • Multiple posting newcomer
  • *
  • Posts: 84
Re: Add new file to active project is too intricacy than before
« Reply #19 on: July 19, 2006, 02:16:47 pm »
How about this one:

(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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Add new file to active project is too intricacy than before
« Reply #20 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 "..."
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mdelfede

  • Multiple posting newcomer
  • *
  • Posts: 84
Re: Add new file to active project is too intricacy than before
« Reply #21 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #22 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... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline jpaterso

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: Add new file to active project is too intricacy than before
« Reply #23 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #24 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?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5149
Re: Add new file to active project is too intricacy than before
« Reply #25 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.

Offline MaxGaspa

  • Almost regular
  • **
  • Posts: 129
Re: Add new file to active project is too intricacy than before
« Reply #26 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

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Add new file to active project is too intricacy than before
« Reply #27 on: July 19, 2006, 05:51:17 pm »
How about this one:

(http://img90.imageshack.us/img90/2729/filepathpaneldn2.png)?
With regards, Morten.

Hello,

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

Best wishes,
Michael

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9489
Re: Add new file to active project is too intricacy than before
« Reply #28 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ