Project Template example?

Discussion Forums discussion Project Template example?

This topic contains 0 voices and has 6 replies.

Viewing 7 posts - 1 through 7 (of 7 total)
Author Posts
Author Posts
June 11, 2006 at 8:54 pm #73

zennehoy
Member

Hi all!

The options GUI promises a way of creating project-specific tools for different project templates, but my installation of pn2 didn’t come with any project templates I can use as a reference to create my own.

Does anyone have an example (or even better a link to documentation) for creating a project template? Thanks!

Zen

June 20, 2006 at 5:37 am #15003

simon
Key Master

Click Here for a sample template, note that you need to change the GUID (the “id” attribute on the top element) to a new unique identifier.

Hopefully that’s of some help!

June 20, 2006 at 11:59 am #15004

zennehoy
Member

Excellent, thank you!

Now all I have to do is figure out how to add entries to the tools menu from within the project template. Any hints?

While at it, how do you get at the project options and pass them as parameters to a tool?

Thanks again!

Zen

ps. I noticed that when opening a project group with multiple different project types, the union of all tools associated with the used project types are shown in the tools menu. Any chance of changing this to only display those tools associated with the currently selected project?

June 25, 2006 at 9:25 am #15005

zennehoy
Member

Since I haven’t had a reply on how to add Project-Specific tools from within a design template, I took a look at the sources: only to discover that it isn’t implemented (at least not within the project template file).

Are there any plans to add the funtionality required to specify project tools in the project template? Having to specify all tools for all project types within the UserTools.xml settings file is a bit limiting imho. Maybe I’m just missing something though…

Zen

July 28, 2006 at 4:14 pm #15006

simon
Key Master

There is now a project template editor available here: http://pnotepad.org/files/templateeditor.zip

It’s early software so go easy with it!

You can create a separate XML file in the PNtools directory containing tools related to your project (just copy and paste from usertools.xml once you’re happy with them). This is how it works at the moment, I may consider merging the project settings file and tools file but it adds a good bit of complexity.

July 31, 2006 at 1:32 pm #15007

zennehoy
Member

“The application failed to initialize properly (0xc0000135). Click on OK to terminate the application.” Not much to go easy on :(

Thanks for the info on how to add project-specific global tools though. That’s a great start!

Zen

July 31, 2006 at 4:05 pm #15008

simon
Key Master

It requires the .NET framework v1.1 – do you have that installed? That is the most common cause of this error.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.