Autore Topic: Creazione di pagine gb.qt4.webkit utilizzando gb.markdown  (Letto 589 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.723
  • Ne mors quidem nos iunget
    • Mostra profilo
Vi riporto questa discussione apparsa nella M.L. ufficiale:


" OK, I've got the markdown to html bit under control and can generate the inner html for <body> nicely for our "appinfo" text files. The next step is to generate the full html text for an entire web page, including the <head> section with a css reference and applying some "class" attributes to parts of the html text.

Looking through the IDE code that makes the various help texts it looks like this is being done "manually" with a lot of literal strings being
used?

My goal is to build a gb.qt4.webkit based project (component) that will display web pages with information about our applications from some text files we include in .hidden in the source project. (I can get these files out of the executable archive OK).  Sort of like the IDE help but a bit different.

My question is what is the best way for me to go next?
a) follow the IDE "hammer and chisel" method
b) look at the new wiki code,
or
c) is there something blatantly obvious that I am not seeing here?

tia
Bruce
"


" So I will try again.  What we have is:
* some text files in many of our projects that describe "how to" do something in that application
- by "how to" I mean stepwise descriptions of what actions need to be done to complete a "business" level activity that is supported by the application.  These activities are not capable of, say, being driven by a wizard control or similar as they involve external parties and may take hours, days, ... to complete.  The text files are there to provide (and this is really the best description I can give them) an aide-mémoire for the user's to go through the entire business activity.
* up till now we have used these doc files internally to reply to user queries on these things, i.e. we reply by phone, fax or email with a "these are the things that have to be done" message.

What I want to do is provide a do-it-yourself solution so the users can access the aide-mémoire files themselves. So it's sort of like a gambas help browser thing I am trying to build.  The aide-mémoire "pages" are fairly simple. A topic, a title and a list of the steps needed. As an example, to change the ownership of a registered racing thoroughbred, which is required by the "rules" here in Australia, the registered trainer must submit a paper or fax form of up to 20 pages length to the national registry organisation.  To prepare this paperwork could take the trainer an hour or so.  Our gambas application does this in a few seconds. The steps (manual) are:
1) prepare the ownership change form
2) submit the form to the registry
3) wait ... .... ... until the registry confirms that the change has been approved and registered, or denied, or queried ...
4) file the ownership papers appropriately.
Our application takes care of 1,2 and 4.  But looks more like:
1) use menu item blah to prepare and submit ownership change documents to registry
   * the horse owners records will be updated, but marked as "pending"
2) when the change confirmation is received, use menu item blah2 to update owner records
  * the pending status will be removed and emails to the (changed) owners will be sent automatically.
  * the new ownership schedule will be printed so you can file it appropriately.
3) if the change is denied or queried by the registry see the following how-tos:
  * etc

And this is one of the simplest (haha) things one could imagine for the arcane and bureaucratic ways things are run here. (You dont want to see other examples.)

So:
I want to build a how-to form in our trainer application that (simply) has an index page and a set of dynamically generated pages (based) on some simple text files. The index page will be static with just a set of links that access the topic page.  I don't need or want anything fancier than that... yet.
We are doing the following:
* these files are being actively converted to the gambas "markdown" syntax.  Very simple, but time consuming due to the number of them (~300)
* trying to figure out the best way to build the "how-to" form.

This last bit is what I am asking about.  I am "wishing" that there is a really easy way to achieve the goals outlined above without having to re-invent the wheel so to speak.

Any input will be (really) gratefully recieved.

tia
Bruce
"


" I am not quit sure I understand what you mean the best way to build the how
to form.

I use a web editor like Dreamweaver, Aptana Studio, etc. to create template
pages. These pages are stored in the project folder. I then load the data
needed to complete the page from a database, text or xml file. An entire
page of content can be loaded this way.

I hope this helps

Randall
"
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »