![]() Void zipoutput(string documentName) Functions and Variablesįilename + relative path to the output file produced:įilenames + relative path to the output files produced. The ZIP file name is the output file name selected in the GUI: Void createutf8file(string dst, string content)Įxpand the filename fn with the project base path as root:Ĭompress the whole output with all the files into a ZIP archive and name the html document documentName. Void createfile(string dst, string content)Ĭreate a new UTF-8 encoded text file dst with the content from content. Subdirectories in dst are created automatically:Ĭreate a new text file dst with the content from content: For relative paths of the src the root is the template directory. Same as write and writeln but encodes the string into html entities:Īdd the src file to the output dst file. The methods document.write and document.writeln add text to the HTML document.Īdd the string s + new line to the output file: The section contains a predefined document object. Void addOutputFormat(string text, string ext) – section These values are shown in the Format combobox directly next to the output: Void addFileNameInput(string id, string label, string text, string filter, string default="")Īdd a output format with a file extension. Input field for file names with a button to select the filename: Void addColorButton(string id, string label, string default="") ![]() The return value is the key field.įorm.addComboBox("bgcolor", "Background Color", colors) The items array is an associative JavaScript array. Void addComboBox(string id, string label, array items, string default) Void addSpinBox(string id, string label, int def=0, int min=0,int max=100) The number can be between minRange and maxRange: Void addCheckBox(string id, string label, bool default=false) Void addLineEdit(string id, string label,int len=0,string default="") Those values can be accessed as formvalue in the section. Methods for the form objectĪll input fields have an id parameter that is used to identify the value. The section contains a predefined form object. This function is good for debugging the code. The same method works with the output object for the current output format. The values for the input file can be retrieved with Where the last part is the method to get the actual value. So the corresponding method call for the pan minimum value is p2vr project files.įor example, the project file looks like: The structure is similar to the structure in the. The output object contains the configuration for the current output format and config gives access to the whole configuration file. All Script SectionsĪll script sections contain two predefined objects. Everything outside of those tags is added to the final HTML page. You can always look up and change the path in Settings/Preferences. On Windows: C:UsersAppDataRoamingGardenGnomeSoftwarePano2VRHtmlTemplatesĪnd on Mac it is: /Users//Library/Application Support/GardenGnomeSoftware/Pano2VR/HtmlTemplates The major advantage of this approach is that many text editors are able to use syntax highlighting for HTML to make the code more readable. The processing is similar to PHP where you embed scripting code into HTML. You can find a list of predefined objects in Qt’s ECMAScript Reference. The templates use ECMAScript scripting language (JavaScript is also based on ECMAScript so they use the same syntax), as defined in standard ECMA-262. ggt (Garden Gnome Template) files as a basis for the HTML output. You will then need to contact your host provider and ask them to install for you.Pano2VR (and Object2VR) use. In most cases, if it is not installed you will get an error message stating it is missing. Make sure the ZIP extension for PHP is installed on your server.Do not use numbers (0-9) in the beginning of the GGPKG’s file name.If these don’t fix your issue, feel free to contact us. ![]() Having troubles? Please take a look at the following requirements. The package is customizable using attributes in your post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |