Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: Repxl on January 16, 2010, 02:53:50 pm

Title: Open Zip Project
Post by: Repxl on January 16, 2010, 02:53:50 pm
hello i installed Code::Blocks .. and i have choose open zip folder and then i had 3 methods of open i have choose the last option but this have opened me just a no needed code or idk i need that it open the files what are inside of the zip


my question is how i can get back the choose option on open where i can choose  3 methods of open the file

i tryed in settings but no found it i tryed rr pc or rr blocks but it now allways open me the file in the 1 method


Please help asap.
Title: Re: Open Zip Project
Post by: MortenMacFly on January 16, 2010, 03:22:42 pm
my question is how i can get back the choose option on open where i can choose  3 methods of open the file
Settings -> Environment -> file extension handling -> Remove the registered wild-card in question (or adjust the settings accordingly).
Title: Re: Open Zip Project
Post by: Repxl on January 16, 2010, 03:37:07 pm
thanks.

and how i can open the all files in the zip as project.. or that it open the source


like in Visual c++ its allowed you can open from zip all the headers / source etc files and then run it :)

Title: Re: Open Zip Project
Post by: MortenMacFly on January 16, 2010, 03:48:24 pm
like in Visual c++ its allowed you can open from zip all the headers / source etc files and then run it :)
That is a typical stupid idea. It's certainly not supported by C::B and I really see no sense in making that happen so I doubt it will ever be. Projects usually have a folder structure which you have to follow if you want to compile a project. Even if you want to compile a single file in a ZIP archive it has to be extracted anyways. What happens in an "automised" process is that everything is extracted to a temporary folder and removed afterwards (including your modifications). So why should that make sense? The only meaningful way of dealing with ZIP archives is extracting the content of the to a folder of your choice and then operating as usual.

However, it is certainly possible to add support for "that" to C::B via a plugin. There is a special type of plugins dedicated for such things: MIME handler plugins. So if anyone wants to... feel free to add a handler accordingly through a plugin.