How to create an "Empty wxWidgets Project" templat

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
daddydave
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 214
Joined: Wed Jun 15, 2005 3:31 am
Location: United States
Contact:

How to create an "Empty wxWidgets Project" templat

Post by daddydave » Tue Jul 19, 2005 3:30 am

How to create an "Empty wxWidgets Project" template in wx-devcpp
(response to leo128 in the wx-devcpp announcement thread).

The goal of these instructions is to be able to open a new wxwidgets project with the appropriate linker and compiler options, but without having any files automatically created for you for use with the wxdsgn Form Designer. That way, you have the flexibility to create either type of project, or add the wxdsgn forms later on.

Find the wx-devcpp templates folder, if you installed to the default location, it is C:\Dev-cpp\Templates. There is a file for a frame project template file called 00-wxWidgets.template. Make a copy of it in the same folder with a new name (I think I called mine 40-wxWidgets-Empty.template.) This will have all your compile, link options from the wx-devcpp wxdsgn Form Designer frame and dialog projects but without the files. There are only a couple of lines to edit in this text file, Name and Description. Change those lines to "Name=Empty wxWidgets Project" and "Description=An empty project for wxWidgets applications."

Then do File > New > Project... in wx-devcpp and you should have a new choice, Empty wxWidgets project.

My 40-wxWidgets-Empty.template looks like this (except for the Name and Description lines, it is identical to the original):

[Template]
ver=1
Name=Empty wxWidgets Project
IconIndex=0
Description=An empty project for wxWidgets applications.
Catagory=Basic

[Project]
Name=wxProject
UnitCount=0
Type=0
Cpp=1
ResourceIncludes="%DEVCPP_DIR%include"
[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@_
[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@_
Name=wxWindows Project
IsCpp=1
[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@_
CompilerSettings=0000000001001000000000
CompilerSet=0
IncludeVersionInfo=0
SupportXPThemes=0

It wraps in the forum, but I was able to copy and paste the above into Notepad with wrapping turned off, and it looked OK (the long lines should not be wrapping).

Robjob
In need of some credit
In need of some credit
Posts: 1
Joined: Tue Jul 19, 2005 8:43 pm

Thanks

Post by Robjob » Tue Jul 19, 2005 8:44 pm

Thanks daddy dave :D

Post Reply