Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: kingcools on March 11, 2011, 04:25:51 pm

Title: Changing the file name of a class created with codeblocks
Post by: kingcools on March 11, 2011, 04:25:51 pm
Hi, i created the base of a class with the codeblcks class creator, but now the file is listed with its (full) path name in the project manager and i can not rename it(the option doesnt show up when i right click it).
How do i do this? It is pretty annoying because he name is veeeeery long.

thank you :)
Title: Re: Changing the file name of a class created with codeblocks
Post by: oBFusCATed on March 11, 2011, 04:29:37 pm
Close the file if it is opened for editing and the option will be reactivated.
I don't know why it is done like so, but it is very annoying and user unfriendly :(
Title: Re: Changing the file name of a class created with codeblocks
Post by: kingcools on March 11, 2011, 04:40:25 pm
thank you, but it doesnt work as "intended"
first it was like this:

c:\blabla\otherdirectory\codeblocks\myclass.h

then when i renamed it to "mynewclassname.h"

it went to:
c:\blabla\...\mynewclassname.h

but i want it to show up as:
mynewclassname.h in the project manager
Title: Re: Changing the file name of a class created with codeblocks
Post by: kingcools on March 14, 2011, 09:33:05 am
is this unchangeable? Shall I post a screenshot?