|
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2007-09-08 14:38:52
|
Update of /cvsroot/xrns-php/xrns-sf In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv30508 Modified Files: main.c main.rc xrns-sf.html xrns-sf.ppj Log Message: Changed files for 1.04 Index: xrns-sf.html =================================================================== RCS file: /cvsroot/xrns-php/xrns-sf/xrns-sf.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xrns-sf.html 6 Sep 2007 21:46:53 -0000 1.2 --- xrns-sf.html 8 Sep 2007 14:38:51 -0000 1.3 *************** *** 1,205 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" /> <title>XRNS Script Frontend Documentation</title> <style type="text/css"> body { font-family: sans-serif; } p { font-family: monospace; } p.code{ border: 1px dotted black; color:rgb(0,150,0); background-color:rgb(250,250,250); } p.warning{ font-weight:bold; color:rgb(150,0,0); } a { font-family: monospace; text-decoration:none; color:rgb(0,0,128); } a:link,a:visited,a:active { color:rgb(0,0,128); } a:hover { text-decoration:underline; color:rgb(128,0,0); } </style> </head> <body> ! <h3>XRNS Script Frontend 1.03</h3> <p> Developed by Alexander Stoica 2007<br /> <br /> License: Public Domain <br /> <a href="http://xrns-php.sourceforge.net">http://xrns-php.sourceforge.net</a> <br /><br /> Use <a href="mailto:in...@be...">in...@be...</a> for feedback or bug reports. <br /><br /> <a href="http://www.beatslaughter.de">http://www.beatslaughter.de</a><br /> </p> <br /> <h4>What is it?</h4> XRNS Script Frontend can be used, to provide a graphical user interface for command line scripts written in PHP on the windows operating system. <br /> <h4>How does it work?</h4> The frontend includes a stripped down version of the PHP scripting language, which is known for easy XML programming and is widely used. It's also possible to use external command line tools without requiring the user to copy them somewhere into a known path. Each script has a small config file, which defines how the GUI should be build and also holds some other infos. A more in depth look at this file will follow shortly. <br /><br /> The folder "php" holds the PHP commandline interpreter and a windows batch file, which allows one to generate a phpinfo.txt, which might be of help when developing own scripts. Any additional scripts go into the "scripts" folder with their corresponding config file. If a script relies on any extra command line tools, one should put them into the "utils" folder. <br /><br /> Since version 1.02 there are no scripts included anymore. Instead you can download these from the SourceForge download page. <br /> <a href="http://sourceforge.net/project/showfiles.php?group_id=203983">http://sourceforge.net/project/showfiles.php?group_id=203983</a> <br /><br /> Alternatively you can download work in progress versions of the scripts. Simply start the file "get_cvs_dev_version_scripts.cmd" and it will download these from the SourceForge page. <p class="warning"> Warning! These are work in progress and probably unstable, use at your own risk. </p> <br /> <h4>Script configuration file format reference</h4> The script configuration files are just normal *.ini files widely used by other software too. You should name the configuration file using the same basename as your script. For example, if the script is named "yourscript.php", the configuration file should be named "yourscript.cfg". <br /><br /> The first line should always be the name of the section. <p class="code">[config]</p> The following keys are used to provide general information about the script and are self explaining. <p class="code"> caption=Name of the script<br /> author=Coded by John Doe.<br /> url=http://www.johndoe.com<br /> description=Short description, what your script does. </p> The "gui" key specifies, how the interface will be created. It accepts simple keywords, which are translated by the frontend. The order of the keywords is important, since all the information the user selects gets passed in that order as commandline parameters to the PHP script. Mutliple keywords need to be separated by a semicolon ";". <br /><br /> Following the tradition of the first example in other programming languages, here is a simple label showing "Hello world". The "label" keyword is used to place additional descriptions on the interface for the user. The text needs to be enclosed by round brackets "()". <p class="code"> gui=label(Hello world) </p> The "text" keyword can be used to request any type of text to be passed to the script. If you specify the keyword with optional round brackets "()", one can set a default text show in the textfield. <p class="code"> gui=text<br /> gui=text(default text) </p> The "clipboard" keyword will pass the clipboard contents to the script through a temporary file. The script is responsible for writing back the modified data to this file. When the script has finished executing, the contents of that temporary file will be shown in the textbox on the interface. <p class="code"> gui=clipboard </p> The "folder" keyword allows the user to browse for a folder. The chosen path will then be passed to the script. <p class="code"> gui=folder </p> The "file" keyword allows the user to browse for a file to open. The chosen file will then be passed to the script. This keyword is usually used to select a source file. <p class="code"> gui=file </p> It's also possible to specify extensions, including a default one, which will be used when the user leaves the extension blank when entering or selecting a filename in the file chooser dialog. All extensions are enclosed in round brackets "()" and each extension will be separated by a comma ",". Prepend a "def:" to the extension, which one wants to define as default. <p class="code"> gui=file(def:xrns, xrni, zip) </p> The keyword "output" behaves nearly like the "file" keyword with some exceptions. The current directory will be set to the path of this file, similar like the user has called the PHP interpreter from this location. This keyword is usually used to select a destination file. <p class="code"> gui=output<br /> gui=output(def:xrns, xrni, zip) </p> The last keyword is "options". It's used to display a combobox, where one can choose one of multiple options. It's also possible to define a default selected entry. <p class="code"> gui=options(1, 2, def:3, 4, 5, 6, 7, 8, 9, 10) </p> As a summary, here is an example of how a complete configuration file looks like. <p class="code"> [config]<br /> caption=Name of the script<br /> author=Coded by John Doe.<br /> url=http://www.johndoe.com<br /> description=Short description, what your script does.<br /> gui=label(Select an option:); options(1, 2, def:3, 4, 5, 6, 7, 8, 9, 10) </p> <h4>Thanks and Credits</h4> This product includes PHP software, freely available from:<br /> <a href=http://www.php.net/software/>http://www.php.net/software</a>. <br /><br /> Xiph.Org Foundation for the flac and ogg encoder/decoder utilities.<br /> <a href="http://www.xiph.org">http://www.xiph.org</a> <br /><br /> Info-ZIP Workgroup for the zip and unzip utilities.<br /> <a href="http://www.info-zip.org">http://www.info-zip.org</a> <br /><br /> gnu.org for the CVS command line utility.<br /> <a href="http://www.nongnu.org/cvs">http://www.nongnu.org/cvs</a> <br /><br /> Pelle Orinius for his excellent C programming IDE and compiler.<br /> <a href="http://www.smorgasbordet.com/pellesc">http://www.smorgasbordet.com/pellesc</a> <br /><br /> XXXXXXXXXXXXX for his original idea.<br /> <a href="http://www.trotch.com">http://www.trotch.com</a> <br /> <h4>History</h4> Version 1.03 (08/31/2007)<br /> <ul> <li>Changed: The update redirects now to the SourceForge download page.</li> <li>Changed: The file "update_scripts.cmd" was renamed to "get_cvs_dev_version_scripts.cmd", so that it's more clear that these are work in progress versions.</li> </ul> Version 1.02 (08/29/2007)<br /> <ul> <li>Added: New keyword "text", to accept any text input from the user.</li> <li>Changed: The frontend has no included scripts anymore, instead it's possible to get all the files with an online update.</li> </ul> Version 1.01 (08/19/2007)<br /> <ul> <li>Fixed: Using one of the keywords "options", "file" or "output" with only one parameter made the application hang.</li> </ul> Version 1.0 (08/13/2007)<br /> <ul> <li>initial release</li> </ul> <br /> </body> </html> --- 1,418 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" /> + <title>XRNS Script Frontend Documentation</title> + <style type="text/css"> + body { + font-family: sans-serif; + } + + p { + font-family: monospace; + } + + p.code{ + border: 1px dotted black; + color:rgb(0,150,0); + background-color:rgb(250,250,250); + } + + p.warning{ + font-weight:bold; + color:rgb(150,0,0); + } + + a { + font-family: monospace; + text-decoration:none; + color:rgb(0,0,128); + } + + a:link,a:visited,a:active { + color:rgb(0,0,128); + } + + a:hover { + text-decoration:underline; + color:rgb(128,0,0); + } + </style> + </head> + + <body> ! ! <h3>XRNS Script Frontend 1.04</h3> ! <p> + Developed by Alexander Stoica 2007<br /> + <br /> + License: Public Domain + <br /> + <a href="http://xrns-php.sourceforge.net">http://xrns-php.sourceforge.net</a> + <br /><br /> + Use <a href="mailto:in...@be...">in...@be...</a> for feedback or bug reports. + <br /><br /> + <a href="http://www.beatslaughter.de">http://www.beatslaughter.de</a><br /> + </p> + + <br /> + <h4>What is it?</h4> + XRNS Script Frontend can be used, to provide a graphical user interface for command line + scripts written in PHP on the windows operating system. + <br /> + + <h4>How does it work?</h4> + The frontend includes a stripped down version of the PHP scripting language, which is + known for easy XML programming and is widely used. It's also possible to use external + command line tools without requiring the user to copy them somewhere into a known path. + Each script has a small config file, which defines how the GUI should be build and + also holds some other infos. A more in depth look at this file will follow shortly. + <br /><br /> + The folder "php" holds the PHP commandline interpreter and a windows batch file, which + allows one to generate a phpinfo.txt, which might be of help when developing own scripts. + Any additional scripts go into the "scripts" folder with their corresponding config file. + If a script relies on any extra command line tools, one should put them into the "utils" + folder. + <br /><br /> + Since version 1.02 there are no scripts included anymore. Instead you can download these from the + SourceForge download page. + <br /> + <a href="http://sourceforge.net/project/showfiles.php?group_id=203983">http://sourceforge.net/project/showfiles.php?group_id=203983</a> + <br /><br /> + Alternatively you can download work in progress versions of the scripts. Simply start the file + "get_cvs_dev_version_scripts.cmd" and it will download these from the SourceForge page. + <p class="warning"> + Warning! These are work in progress and probably unstable, use at your own risk. + </p> + <br /> + + <h4>Script configuration file format reference</h4> + The script configuration files are just normal *.ini files widely used by other software too. + You should name the configuration file using the same basename as your script. For example, + if the script is named "yourscript.php", the configuration file should be named "yourscript.cfg". + <br /><br /> + The first line should always be the name of the section. + <p class="code">[config]</p> + The following keys are used to provide general information about the script and are self explaining. + <p class="code"> + caption=Name of the script<br /> + author=Coded by John Doe.<br /> + url=http://www.johndoe.com<br /> + description=Short description, what your script does. + </p> + The "gui" key specifies, how the interface will be created. It accepts simple keywords, which are + translated by the frontend. The order of the keywords is important, since all the information the user + selects gets passed in that order as commandline parameters to the PHP script. Mutliple keywords need to be + separated by a semicolon ";". + <br /><br /> + Following the tradition of the first example in other programming languages, here is a simple label + showing "Hello world". The "label" keyword is used to place additional descriptions on the interface + for the user. The text needs to be enclosed by round brackets "()". + <p class="code"> + gui=label(Hello world) + </p> + The "text" keyword can be used to request any type of text to be passed to the script. If you specify the keyword with + optional round brackets "()", one can set a default text show in the textfield. + <p class="code"> + gui=text<br /> + gui=text(default text) + </p> + The "clipboard" keyword will pass the clipboard contents to the script through a temporary file. The script + is responsible for writing back the modified data to this file. When the script has finished executing, the contents + of that temporary file will be shown in the textbox on the interface. + <p class="code"> + gui=clipboard + </p> + The "folder" keyword allows the user to browse for a folder. The chosen path will then be passed to the script. + <p class="code"> + gui=folder + </p> + The "file" keyword allows the user to browse for a file to open. The chosen file will then be passed to the script. + This keyword is usually used to select a source file. + <p class="code"> + gui=file + </p> + It's also possible to specify extensions, including a default one, which will be used when the user leaves the + extension blank when entering or selecting a filename in the file chooser dialog. All extensions are enclosed in round + brackets "()" and each extension will be separated by a comma ",". Prepend a "def:" to the extension, which one wants to define + as default. + <p class="code"> + gui=file(def:xrns, xrni, zip) + </p> + The keyword "output" behaves nearly like the "file" keyword with some exceptions. The current directory will be set to + the path of this file, similar like the user has called the PHP interpreter from this location. This keyword is usually + used to select a destination file. + <p class="code"> + gui=output<br /> + gui=output(def:xrns, xrni, zip) + </p> + The last keyword is "options". It's used to display a combobox, where one can choose one of multiple options. + It's also possible to define a default selected entry. + <p class="code"> + gui=options(1, 2, def:3, 4, 5, 6, 7, 8, 9, 10) + </p> + As a summary, here is an example of how a complete configuration file looks like. + <p class="code"> + [config]<br /> + caption=Name of the script<br /> + author=Coded by John Doe.<br /> + url=http://www.johndoe.com<br /> + description=Short description, what your script does.<br /> + gui=label(Select an option:); options(1, 2, def:3, 4, 5, 6, 7, 8, 9, 10) + </p> + + + <h4>Thanks and Credits</h4> + This product includes PHP software, freely available from:<br /> + <a href=http://www.php.net/software/>http://www.php.net/software</a>. + <br /><br /> + Xiph.Org Foundation for the flac and ogg encoder/decoder utilities.<br /> + <a href="http://www.xiph.org">http://www.xiph.org</a> + <br /><br /> + Info-ZIP Workgroup for the zip and unzip utilities.<br /> + <a href="http://www.info-zip.org">http://www.info-zip.org</a> + <br /><br /> + gnu.org for the CVS command line utility.<br /> + <a href="http://www.nongnu.org/cvs">http://www.nongnu.org/cvs</a> + <br /><br /> + Pelle Orinius for his excellent C programming IDE and compiler.<br /> + <a href="http://www.smorgasbordet.com/pellesc">http://www.smorgasbordet.com/pellesc</a> + <br /><br /> + XXXXXXXXXXXXX for his original idea.<br /> + <a href="http://www.trotch.com">http://www.trotch.com</a> + <br /> + + <h4>History</h4> + + Version 1.04 (09/08/2007)<br /> + + <ul> + + <li>Changed: Updated included PHP version to 5.2.4.</li> + + </ul> + Version 1.03 (08/31/2007)<br /> + <ul> + <li>Changed: The update redirects now to the SourceForge download page.</li> + <li>Changed: The file "update_scripts.cmd" was renamed to "get_cvs_dev_version_scripts.cmd", so that it's more clear that these are work in progress versions.</li> + </ul> + Version 1.02 (08/29/2007)<br /> + <ul> + <li>Added: New keyword "text", to accept any text input from the user.</li> + <li>Changed: The frontend has no included scripts anymore, instead it's possible to get all the files with an online update.</li> + </ul> + Version 1.01 (08/19/2007)<br /> + <ul> + <li>Fixed: Using one of the keywords "options", "file" or "output" with only one parameter made the application hang.</li> + </ul> + Version 1.0 (08/13/2007)<br /> + <ul> + <li>initial release</li> + </ul> + <br /> + </body> + </html> + Index: xrns-sf.ppj =================================================================== RCS file: /cvsroot/xrns-php/xrns-sf/xrns-sf.ppj,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** xrns-sf.ppj 23 Aug 2007 15:44:14 -0000 1.1 --- xrns-sf.ppj 8 Sep 2007 14:38:51 -0000 1.2 *************** *** 1,61 **** --- 1,122 ---- # + # PROJECT FILE generated by "Pelles C for Windows, version 4.50". + # WARNING! DO NOT EDIT THIS FILE. + # + + POC_PROJECT_VERSION = 4.00# + POC_PROJECT_TYPE = 0# + POC_PROJECT_ARGUMENTS = # + POC_PROJECT_WORKPATH = # + POC_PROJECT_EXECUTOR = # + CC = pocc.exe# + AS = poasm.exe# + RC = porc.exe# + LINK = polink.exe# + CCFLAGS = -Tx86-coff -Ot -Ox -W1 -Gz -Ze -D_UNICODE -DUNICODE# + ASFLAGS = -AIA32 -Gz# + RCFLAGS = # + LINKFLAGS = -release -subsystem:windows -machine:ix86 kernel32.lib user32.lib gdi32.lib comctl32.lib comdlg32.lib advapi32.lib delayimp.lib# + WizCreator = Pelle Orinius# + + .SILENT: + + # + # Build xrns-sf.exe. + # + xrns-sf.exe: \ + output\main.obj \ + output\main.res \ + output\hyperlink.obj + $(LINK) $(LINKFLAGS) -out:"$@" $** + + # + # Build main.obj. + # + output\main.obj: \ + main.c \ + main.h \ + hyperlink.h + $(CC) $(CCFLAGS) "$!" -Fo"$@" + + # + # Build main.res. + # + output\main.res: \ + main.rc \ + main.h \ + hyperlink.h \ + main.ico \ + renoise-logo.bmp \ + manifest.xml + $(RC) $(RCFLAGS) "$!" -Fo"$@" + + .EXCLUDEDFILES: + + # + # Build hyperlink.obj. + # + output\hyperlink.obj: \ + hyperlink.c \ + hyperlink.h + $(CC) $(CCFLAGS) "$!" -Fo"$@" + Index: main.rc =================================================================== RCS file: /cvsroot/xrns-php/xrns-sf/main.rc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** main.rc 6 Sep 2007 21:46:53 -0000 1.3 --- main.rc 8 Sep 2007 14:38:51 -0000 1.4 *************** *** 1,88 **** // RESOURCE SCRIPT generated by "Pelles C for Windows, version 4.50". #include <windows.h> #include <commctrl.h> #include <richedit.h> #include "main.h" LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US IDI_APP ICON "main.ico" IDB_RLOGO BITMAP "renoise-logo.bmp" DLG_MAIN DIALOGEX DISCARDABLE 50, 50, 480, 250 STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|WS_THICKFRAME|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_VISIBLE CAPTION "XRNS Script Frontend" CLASS "xrns-sf" FONT 8, "MS Sans Serif", 0, 0, 1 BEGIN CONTROL "", DLG_MAIN_BANNER, "Static", SS_BLACKRECT, 0, 0, 480, 30 CONTROL "", DLG_MAIN_COMBO_SCRIPTS, "ComboBox", WS_BORDER|CBS_DROPDOWNLIST|CBS_SORT|CBS_HASSTRINGS|WS_VSCROLL|WS_TABSTOP, 366, 8, 108, 12 CONTROL "", DLG_MAIN_CONTROLAREA, "Static", SS_WHITERECT|WS_BORDER, 0, 30, 480, 198 CONTROL "Show script info", DLG_MAIN_LINK_DESC, "HyperlinkCtrl32", HLS_HCENTER|HLS_VCENTER|HLS_ULHOVER, 6, 212, 70, 10 CONTROL "Show console", DLG_MAIN_LINK_CONSOLE, "HyperlinkCtrl32", HLS_HCENTER|HLS_VCENTER|HLS_ULHOVER, 80, 212, 70, 10 CONTROL "About", IDABOUT, "Button", WS_TABSTOP, 4, 232, 60, 15 CONTROL "Cancel", IDCANCEL, "Button", WS_TABSTOP, 352, 232, 60, 15 CONTROL "Run Script", IDOK, "Button", BS_DEFPUSHBUTTON|WS_TABSTOP, 416, 232, 60, 15 END DLG_ABOUT DIALOGEX DISCARDABLE 6, 18, 200, 148 STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|DS_NOIDLEMSG|WS_CAPTION|WS_VISIBLE EXSTYLE WS_EX_TOOLWINDOW CAPTION "About" FONT 8, "MS Sans Serif", 0, 0, 1 BEGIN CONTROL "", DLG_ABOUT_BANNER, "Static", SS_BLACKRECT, 0, 0, 200, 30 CONTROL "License: Public Domain", -1, "Static", WS_GROUP, 10, 38, 180, 8 CONTROL "http://xrns-php.sourceforge.net", DLG_ABOUT_LINK_SOURCEFORGE, "HyperlinkCtrl32", HLS_LEFT|HLS_TOP|HLS_ULHOVER|HLS_PLAYCLICK|HLS_AUTOSIZE|WS_TABSTOP, 10, 48, 99, 8 CONTROL "Frontend developed by Alexander Stoica", -1, "Static", WS_GROUP, 10, 68, 180, 8, WS_EX_TRANSPARENT CONTROL "http://www.beatslaughter.de", DLG_ABOUT_LINK_BEATSLAUGHTER, "HyperlinkCtrl32", HLS_LEFT|HLS_TOP|HLS_ULHOVER|HLS_PLAYCLICK|HLS_AUTOSIZE|WS_TABSTOP, 10, 78, 91, 8 CONTROL "In cooperation with XXXXXXXXXXXXX ", -1, "Static", WS_GROUP, 10, 90, 180, 8, WS_EX_TRANSPARENT CONTROL "http://www.trotch.com", DLG_ABOUT_LINK_TROTCH, "HyperlinkCtrl32", HLS_LEFT|HLS_TOP|HLS_ULHOVER|HLS_PLAYCLICK|HLS_AUTOSIZE|WS_TABSTOP, 10, 100, 72, 8 CONTROL "", -1, "Static", SS_ETCHEDHORZ|SS_CENTERIMAGE|WS_BORDER, 0, 122, 210, 10 CONTROL "OK", IDOK, "Button", BS_DEFPUSHBUTTON|WS_TABSTOP, 134, 128, 60, 15 END DLG_INFO DIALOGEX DISCARDABLE 6, 18, 200, 119 STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|DS_NOIDLEMSG|WS_CAPTION|WS_VISIBLE EXSTYLE WS_EX_TOOLWINDOW CAPTION "Script info" FONT 8, "MS Sans Serif", 0, 0, 1 BEGIN CONTROL "", DLG_INFO_BANNER, "Static", SS_BLACKRECT, 0, 0, 200, 30 CONTROL "", DLG_INFO_LINK, "HyperlinkCtrl32", HLS_HCENTER|HLS_VCENTER|HLS_ULHOVER|HLS_PLAYCLICK|WS_TABSTOP, 0, 80, 200, 12 CONTROL "", DLG_INFO_TEXT, "Edit", ES_MULTILINE|ES_AUTOVSCROLL|ES_WANTRETURN|ES_READONLY|WS_VSCROLL|WS_BORDER|WS_TABSTOP, 0, 30, 200, 50 CONTROL "OK", IDOK, "Button", BS_DEFPUSHBUTTON|WS_TABSTOP, 135, 98, 60, 15 END VS_VERSION_INFO VERSIONINFO ! FILEVERSION 1,0,3,0 ! PRODUCTVERSION 1,0,3,0 FILEFLAGSMASK 0x3F FILEFLAGS 0x0 FILEOS VOS__WINDOWS32 FILETYPE VFT_APP FILESUBTYPE VFT2_UNKNOWN BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904B0" BEGIN VALUE "CompanyName", "Alexander Stoica\0" VALUE "FileDescription", "XRNS Script Frontend\0" ! VALUE "FileVersion", "1.03\0" VALUE "InternalName", "xrns-sf.exe\0" VALUE "LegalCopyright", "License: Public Domain\0" VALUE "OriginalFilename", "xrns-sf.exe\0" VALUE "ProductName", "XRNS Script Frontend\0" ! VALUE "ProductVersion", "1.03\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 0x4B0 END END 1 MANIFEST "manifest.xml" --- 1,176 ---- // RESOURCE SCRIPT generated by "Pelles C for Windows, version 4.50". + + #include <windows.h> + #include <commctrl.h> + #include <richedit.h> + #include "main.h" + + LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US + + IDI_APP ICON "main.ico" + IDB_RLOGO BITMAP "renoise-logo.bmp" + + DLG_MAIN DIALOGEX DISCARDABLE 50, 50, 480, 250 + STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|WS_THICKFRAME|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_VISIBLE + CAPTION "XRNS Script Frontend" + CLASS "xrns-sf" + FONT 8, "MS Sans Serif", 0, 0, 1 + BEGIN + CONTROL "", DLG_MAIN_BANNER, "Static", SS_BLACKRECT, 0, 0, 480, 30 + CONTROL "", DLG_MAIN_COMBO_SCRIPTS, "ComboBox", WS_BORDER|CBS_DROPDOWNLIST|CBS_SORT|CBS_HASSTRINGS|WS_VSCROLL|WS_TABSTOP, 366, 8, 108, 12 + CONTROL "", DLG_MAIN_CONTROLAREA, "Static", SS_WHITERECT|WS_BORDER, 0, 30, 480, 198 + CONTROL "Show script info", DLG_MAIN_LINK_DESC, "HyperlinkCtrl32", HLS_HCENTER|HLS_VCENTER|HLS_ULHOVER, 6, 212, 70, 10 + CONTROL "Show console", DLG_MAIN_LINK_CONSOLE, "HyperlinkCtrl32", HLS_HCENTER|HLS_VCENTER|HLS_ULHOVER, 80, 212, 70, 10 + CONTROL "About", IDABOUT, "Button", WS_TABSTOP, 4, 232, 60, 15 + CONTROL "Cancel", IDCANCEL, "Button", WS_TABSTOP, 352, 232, 60, 15 + CONTROL "Run Script", IDOK, "Button", BS_DEFPUSHBUTTON|WS_TABSTOP, 416, 232, 60, 15 + END + + DLG_ABOUT DIALOGEX DISCARDABLE 6, 18, 200, 148 + STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|DS_NOIDLEMSG|WS_CAPTION|WS_VISIBLE + EXSTYLE WS_EX_TOOLWINDOW + CAPTION "About" + FONT 8, "MS Sans Serif", 0, 0, 1 + BEGIN + CONTROL "", DLG_ABOUT_BANNER, "Static", SS_BLACKRECT, 0, 0, 200, 30 + CONTROL "License: Public Domain", -1, "Static", WS_GROUP, 10, 38, 180, 8 + CONTROL "http://xrns-php.sourceforge.net", DLG_ABOUT_LINK_SOURCEFORGE, "HyperlinkCtrl32", HLS_LEFT|HLS_TOP|HLS_ULHOVER|HLS_PLAYCLICK|HLS_AUTOSIZE|WS_TABSTOP, 10, 48, 99, 8 + CONTROL "Frontend developed by Alexander Stoica", -1, "Static", WS_GROUP, 10, 68, 180, 8, WS_EX_TRANSPARENT + CONTROL "http://www.beatslaughter.de", DLG_ABOUT_LINK_BEATSLAUGHTER, "HyperlinkCtrl32", HLS_LEFT|HLS_TOP|HLS_ULHOVER|HLS_PLAYCLICK|HLS_AUTOSIZE|WS_TABSTOP, 10, 78, 91, 8 + CONTROL "In cooperation with XXXXXXXXXXXXX ", -1, "Static", WS_GROUP, 10, 90, 180, 8, WS_EX_TRANSPARENT + CONTROL "http://www.trotch.com", DLG_ABOUT_LINK_TROTCH, "HyperlinkCtrl32", HLS_LEFT|HLS_TOP|HLS_ULHOVER|HLS_PLAYCLICK|HLS_AUTOSIZE|WS_TABSTOP, 10, 100, 72, 8 + CONTROL "", -1, "Static", SS_ETCHEDHORZ|SS_CENTERIMAGE|WS_BORDER, 0, 122, 210, 10 + CONTROL "OK", IDOK, "Button", BS_DEFPUSHBUTTON|WS_TABSTOP, 134, 128, 60, 15 + END + + DLG_INFO DIALOGEX DISCARDABLE 6, 18, 200, 119 + STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|DS_NOIDLEMSG|WS_CAPTION|WS_VISIBLE + EXSTYLE WS_EX_TOOLWINDOW + CAPTION "Script info" + FONT 8, "MS Sans Serif", 0, 0, 1 + BEGIN + CONTROL "", DLG_INFO_BANNER, "Static", SS_BLACKRECT, 0, 0, 200, 30 + CONTROL "", DLG_INFO_LINK, "HyperlinkCtrl32", HLS_HCENTER|HLS_VCENTER|HLS_ULHOVER|HLS_PLAYCLICK|WS_TABSTOP, 0, 80, 200, 12 + CONTROL "", DLG_INFO_TEXT, "Edit", ES_MULTILINE|ES_AUTOVSCROLL|ES_WANTRETURN|ES_READONLY|WS_VSCROLL|WS_BORDER|WS_TABSTOP, 0, 30, 200, 50 + CONTROL "OK", IDOK, "Button", BS_DEFPUSHBUTTON|WS_TABSTOP, 135, 98, 60, 15 + END + + VS_VERSION_INFO VERSIONINFO ! ! FILEVERSION 1,0,4,0 ! ! PRODUCTVERSION 1,0,4,0 ! FILEFLAGSMASK 0x3F + FILEFLAGS 0x0 + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE VFT2_UNKNOWN + BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904B0" + BEGIN + VALUE "CompanyName", "Alexander Stoica\0" + VALUE "FileDescription", "XRNS Script Frontend\0" ! ! VALUE "FileVersion", "1.04\0" ! VALUE "InternalName", "xrns-sf.exe\0" + VALUE "LegalCopyright", "License: Public Domain\0" + VALUE "OriginalFilename", "xrns-sf.exe\0" + VALUE "ProductName", "XRNS Script Frontend\0" ! ! VALUE "ProductVersion", "1.04\0" ! END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 0x4B0 + END + END + + 1 MANIFEST "manifest.xml" + + Index: main.c =================================================================== RCS file: /cvsroot/xrns-php/xrns-sf/main.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** main.c 6 Sep 2007 21:46:53 -0000 1.3 --- main.c 8 Sep 2007 14:38:51 -0000 1.4 *************** *** 1,1507 **** /**************************************************************************** * * * File : main.c * * * * Purpose : Generic dialog based Win32 application. * * * * History : Date Reason * * 08/23/07 Last modfied by Alexander Stoica * * * ****************************************************************************/ [...4492 lines suppressed...] + + hFile = CreateFile(szBuffer, GENERIC_WRITE, FILE_SHARE_WRITE, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL|FILE_FLAG_SEQUENTIAL_SCAN, NULL); + + if (hFile != INVALID_HANDLE_VALUE) + { + WriteFile(hFile, &wp.rcNormalPosition, sizeof(wp.rcNormalPosition), &dwBytesWritten, NULL); + WriteFile(hFile, &gCfg, sizeof(CONFIG), &dwBytesWritten, NULL); + CloseHandle(hFile); + } + } + |