Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Scripted Wizard renewed icons, and small refinements to a few wizard scripts

(1/2) > >>

ptDev:
Dear all,

I have been experimenting with replacing the icons of the "New Project" dialog, and updated all the "faulty" ones (with a white background) with more up to date alpha-channel versions. Some logo icons, such as the GNU logo, SFML logo, and wxWidgets logo, in particular, now look much better. I also replaced the wizard banner of the wxWidgets project wizard, to take advantage of the modern logo.

I attached all the images, placed in the corresponding paths Code::Blocks expects to find them, in a zip archive. If you wish to try them out, just unzip directly on your own installation.

In addition to the cosmetic changes, I also corrected the path verification and generated source for both the SDL and SFML project wizards. The SFML wizard was verifying the header files in the wrong place, forgetting that their inclusion is under the SFML directory, which was in conflict with what the generated source states (example):

--- Code: ---#include <SFML/Audio.hpp>
--- End code ---

The SDL project wizard was also searching without taking into account that the header should be at $(#SDL)\include\SDL\SDL.h, as well as providing the user with a main.cpp that made the (wrong) inclusion

--- Code: ---#include <SDL.h>
--- End code ---

Both project wizards were modified to make the default behaviour match that which the library authors recommend. The attached patch covers these subtle changes.

[attachment deleted by admin]

MortenMacFly:

--- Quote from: ptDev on March 27, 2010, 12:54:43 am ---The SDL project wizard was also searching without taking into account that the header should be at $(#SDL)\include\SDL\SDL.h, as well as providing the user with a main.cpp that made the (wrong) inclusion

--- Code: ---#include <SDL.h>
--- End code ---

--- End quote ---
I am not sure about this. I recall that SDL changed the default path where this file is found in one of it's releases. So while this might work with a recent release it won't work with an older version. However, I need to check myself as I am not 100% sure (probably it was another library in the end...).

ptDev:
I searched in the SDL official page to make sure, but couldn't find documentation using #include "SDL.h". In any case, if this is an old location for the headers, it probably is older than version 1.2. I would prefer the project wizard to reflect the behaviour of the most recent stable releases by default, rather than that of (likely) deprecated versions. As a compromise for users of older versions, perhaps it would be better to query the user about the SDL version?

If needed, I may adjust it in that way, but in that case, I would need to be sure about the SDL version at which the include path was modified.

stahta01:

--- Quote from: MortenMacFly on March 28, 2010, 03:46:54 pm ---I am not sure about this. I recall that SDL changed the default path where this file is found in one of it's releases. So while this might work with a recent release it won't work with an older version. However, I need to check myself as I am not 100% sure (probably it was another library in the end...).

--- End quote ---

IIRC, the difference is that most MSVC packaged libs use <sdl.h> but the MinGW GCC SDL packages and examples use <sdl/sdl.h>.

That is why I posted the patch that checks both places.

Tim S.

ptDev:

--- Quote from: stahta01 on March 31, 2010, 01:02:17 am ---IIRC, the difference is that most MSVC packaged libs use <sdl.h> but the MinGW GCC SDL packages and examples use <sdl/sdl.h>.

That is why I posted the patch that checks both places.

Tim S.

--- End quote ---

I have always used SDL with MinGW, hence my confusion. Thank you for your patch.

Navigation

[0] Message Index

[#] Next page

Go to full version