News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Add new file to active project is too intricacy than before

Started by EricKane, July 18, 2006, 10:27:45 PM

Previous topic - Next topic

EricKane

Add new file to active project is too intricacy than before, in spite of "New Empty File" or "New File"!!!

MortenMacFly

Quote from: Eric Kane 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"!!!
please read this: http://forums.next.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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

EricKane

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.

killerbot

QuoteAdd file into-> [opened project list]" to right click menu in editor dialog window.
I agree on this.

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

sethjackson

Quote from: killerbot on July 18, 2006, 11:30:51 PM
QuoteAdd 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.....

Quote from: MortenMacFly on July 18, 2006, 11:47:17 PM
Please have a look at this post:
http://forums.next.codeblocks.org/index.php?topic=3598.msg28334#msg28334
and tell me your thoughts...?!

I like it.

EricKane

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.

MortenMacFly

Quote from: Eric Kane 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:
Could you try this one and tell me your thoughts: http://forums.next.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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

tiwag

if i want to add a new header file i can't
it just gives an error !

see here



svn rev 2766

MortenMacFly

Quote from: tiwag on July 19, 2006, 08:17:04 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

tiwag


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 !
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 ??

MortenMacFly

#14
Quote from: killerbot on July 19, 2006, 10:31:08 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:"?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]