Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Documentation » How can I set up UPPWEB on my computer?
Re: How can I set up UPPWEB on my computer? [message #26941 is a reply to message #26848] Fri, 11 June 2010 09:27 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3359
Registered: August 2008
Senior Veteran
Hello Lionel

Now UltimateBook is updated and contains the code that can serve you.

It takes a series of folders with .tpp files inside, gather them all and convert them to .html or .pdf.

To run it please do this steps:

1. Before compiling it, put the main U++ folder here:

	void Main::DoGo()
	{
		GatherTpp tpp;
		String uppfolder = "My U++ folder";


2. Compile and run it

3. Set "Do .html" and/or "Do .pdf" checkboxes and set the "Html folder" or "Pdf file"

4. Click Go


It works very simple if you just convert .tpp in .html:

	GatherTpp tpp;
	
	tpp.AddFolder(folder_1_with_Tpp);
	tpp.AddFolder(folder_2_with_Tpp);
	...
	tpp.Load(tpp_file_that_is_index);		// It has a Gate2 arg for progress bar
	tpp.MakeHtml(folder_to_put_html);		// It has a Gate2 arg for progress bar
	tpp.MakePdf(file_to_put_pdf);			// It has a Gate2 arg for progress bar



If you want to modify existing T++ or add new T++ topics made by program you have these methods:

	int FindTopic(const String name);
	Topic &GetTopic(int id);
	Topic &AddTopic(const String name);
	String GatherTopics(const char *topic, String& title);



These code is basically uppweb package code packaged as a standalone class. It is also rather experimental and it will change, but I think the basic interface will remain stable.




Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Manual page
Next Topic: Ultimate book questions
Goto Forum:
  


Current Time: Sun May 05 06:12:35 CEST 2024

Total time taken to generate the page: 0.02877 seconds