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

EricKane

  • Guest
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 »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

EricKane

  • Guest
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.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
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: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://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.

EricKane

  • Guest
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://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: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • 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: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://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: 5491
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: 9694
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ