├── .gitattributes ├── .gitignore ├── README.md ├── XULPeriodicTable ├── README.txt ├── XUL Periodic Table - ff.bat ├── XUL Periodic Table with jsconsole.bat ├── XUL Periodic Table.bat ├── XUL Periodic Table.exe ├── application.ini ├── chrome.manifest ├── chrome │ └── content │ │ ├── ChangeLog.txt │ │ ├── bchick.xul │ │ ├── bchick.xul.txt │ │ ├── broadcast.xul │ │ ├── broadcast.xul.txt │ │ ├── button.xul │ │ ├── button.xul.txt │ │ ├── checkbox.xul │ │ ├── checkbox.xul.txt │ │ ├── colorpicker.xul │ │ ├── colorpicker.xul.txt │ │ ├── cropping.xul │ │ ├── cropping.xul.txt │ │ ├── grid.xul │ │ ├── grid.xul.txt │ │ ├── image.xul │ │ ├── image.xul.txt │ │ ├── images │ │ ├── blue-star.png │ │ ├── cyan-star.png │ │ ├── green-star.png │ │ ├── magenta-star.png │ │ ├── red-star.ico │ │ ├── red-star.png │ │ ├── star.png │ │ └── yellow-star.png │ │ ├── index.html │ │ ├── label.xul │ │ ├── label.xul.txt │ │ ├── layout.xul │ │ ├── layout.xul.txt │ │ ├── list.xul │ │ ├── list.xul.txt │ │ ├── menubar.xul │ │ ├── menubar.xul.txt │ │ ├── popup.xul │ │ ├── popup.xul.txt │ │ ├── progressmeter.xul │ │ ├── progressmeter.xul.txt │ │ ├── radio.xul │ │ ├── radio.xul.txt │ │ ├── scrolling.xul │ │ ├── scrolling.xul.txt │ │ ├── splitter.xul │ │ ├── splitter.xul.txt │ │ ├── stack.xul │ │ ├── stack.xul.txt │ │ ├── tab.xul │ │ ├── tab.xul.txt │ │ ├── textbox.xul │ │ ├── textbox.xul.txt │ │ ├── top.xul │ │ ├── top.xul.txt │ │ ├── tree-nested.xul │ │ ├── tree-nested.xul.txt │ │ ├── tree-simple.xul │ │ └── tree-simple.xul.txt └── defaults │ └── preferences │ └── prefs.js ├── helloWorld ├── README.txt ├── application.ini ├── chrome.manifest ├── chrome │ └── content │ │ ├── hello.xul │ │ └── main.js ├── defaults │ └── preferences │ │ └── prefs.js ├── helloWorld - ff.bat ├── helloWorld with jsconsole.bat ├── helloWorld.bat └── helloWorld.exe └── mybrowser ├── README.txt ├── application.ini ├── chrome.manifest ├── chrome ├── content │ ├── mybrowser.js │ └── mybrowser.xul └── locale │ └── en-US │ └── mybrowser.dtd ├── defaults └── preferences │ └── prefs.js ├── mybrowser - ff.bat ├── mybrowser with jsconsole.bat ├── mybrowser.bat └── mybrowser.exe /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ################# 2 | ## Eclipse 3 | ################# 4 | 5 | *.pydevproject 6 | .project 7 | .metadata 8 | bin/ 9 | tmp/ 10 | *.tmp 11 | *.bak 12 | *.swp 13 | *~.nib 14 | local.properties 15 | .classpath 16 | .settings/ 17 | .loadpath 18 | 19 | # External tool builders 20 | .externalToolBuilders/ 21 | 22 | # Locally stored "Eclipse launch configurations" 23 | *.launch 24 | 25 | # CDT-specific 26 | .cproject 27 | 28 | # PDT-specific 29 | .buildpath 30 | 31 | 32 | ################# 33 | ## Visual Studio 34 | ################# 35 | 36 | ## Ignore Visual Studio temporary files, build results, and 37 | ## files generated by popular Visual Studio add-ons. 38 | 39 | # User-specific files 40 | *.suo 41 | *.user 42 | *.sln.docstates 43 | 44 | # Build results 45 | [Dd]ebug/ 46 | [Rr]elease/ 47 | *_i.c 48 | *_p.c 49 | *.ilk 50 | *.meta 51 | *.obj 52 | *.pch 53 | *.pdb 54 | *.pgc 55 | *.pgd 56 | *.rsp 57 | *.sbr 58 | *.tlb 59 | *.tli 60 | *.tlh 61 | *.tmp 62 | *.vspscc 63 | .builds 64 | *.dotCover 65 | 66 | ## TODO: If you have NuGet Package Restore enabled, uncomment this 67 | #packages/ 68 | 69 | # Visual C++ cache files 70 | ipch/ 71 | *.aps 72 | *.ncb 73 | *.opensdf 74 | *.sdf 75 | 76 | # Visual Studio profiler 77 | *.psess 78 | *.vsp 79 | 80 | # ReSharper is a .NET coding add-in 81 | _ReSharper* 82 | 83 | # Installshield output folder 84 | [Ee]xpress 85 | 86 | # DocProject is a documentation generator add-in 87 | DocProject/buildhelp/ 88 | DocProject/Help/*.HxT 89 | DocProject/Help/*.HxC 90 | DocProject/Help/*.hhc 91 | DocProject/Help/*.hhk 92 | DocProject/Help/*.hhp 93 | DocProject/Help/Html2 94 | DocProject/Help/html 95 | 96 | # Click-Once directory 97 | publish 98 | 99 | # Others 100 | [Bb]in 101 | [Oo]bj 102 | sql 103 | TestResults 104 | *.Cache 105 | ClientBin 106 | stylecop.* 107 | ~$* 108 | *.dbmdl 109 | Generated_Code #added for RIA/Silverlight projects 110 | 111 | # Backup & report files from converting an old project file to a newer 112 | # Visual Studio version. Backup files are not needed, because we have git ;-) 113 | _UpgradeReport_Files/ 114 | Backup*/ 115 | UpgradeLog*.XML 116 | 117 | 118 | 119 | ############ 120 | ## Windows 121 | ############ 122 | 123 | # Windows image file caches 124 | Thumbs.db 125 | 126 | # Folder config file 127 | Desktop.ini 128 | 129 | 130 | ############# 131 | ## Python 132 | ############# 133 | 134 | *.py[co] 135 | 136 | # Packages 137 | *.egg 138 | *.egg-info 139 | dist 140 | build 141 | eggs 142 | parts 143 | bin 144 | var 145 | sdist 146 | develop-eggs 147 | .installed.cfg 148 | 149 | # Installer logs 150 | pip-log.txt 151 | 152 | # Unit test / coverage reports 153 | .coverage 154 | .tox 155 | 156 | #Translations 157 | *.mo 158 | 159 | #Mr Developer 160 | .mr.developer.cfg 161 | 162 | # Mac crap 163 | .DS_Store 164 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | These are example applications created for XULRunner. 2 | 3 | https://developer.mozilla.org/en-US/docs/XULRunner 4 | -------------------------------------------------------------------------------- /XULPeriodicTable/README.txt: -------------------------------------------------------------------------------- 1 | The XUL Periodic Table's contents were downloaded from http://www.hevanet.com/acorbin/xul and modified slightly. The images were missing from the download so I replaced them with other images. There were a few typos in the XUL files that prevented them from rendering properly so I fixed them. The source tab in the viewer actually looks at whatever is in the .txt version of the specific XUL file you're looking at. These txt files may or may not reflect the actual source. I only updated the .txt files corresponding to the xul files I edited and may have missed one or two. It's best to look at the actual xul files in a text editor if you run into trouble though, the source tab looks just awesome and it's probably ok. 2 | 3 | In the past this content could be viewed in firefox like any other webpage. That is no longer possible, so the content has been changed into a XUL Runner application. 4 | 5 | If you want to use the bat files to launch this application on XUL Runner you will need to adjust the paths in them to suit your system and copy XUL Periodic Table.exe into the same folder where xulrunner.exe is. Of course you can launch this app by calling \xulrunner.exe --app application.ini from this directory but, you won't get the fancy icon and convenient clicky bat file. If you're not using xulrunner 18.0.1 you'll have to recreate `XUL Periodic Table.exe` using a copy of `xulrunner-stub.exe` that came with your verson of xulrunner. 6 | 7 | All XUL Periodic Table.exe is, is the xulrunner-stub.exe with an application icon injected into it using resourcehacker. The application icon is easy to create using gimp, creating each layer of the image as the different sizes of icon, and exporting the image as an icon. Use the resource hacker to pull the appicon out of the exe and look at it in gimp. It's really easy to make. 8 | 9 | http://angusj.com/resourcehacker/ 10 | http://www.gimp.org/tutorials/Creating_Icons/ 11 | 12 | You can also create shortcuts to the bat files and modify the shortcuts's properties so they'll use the icon from XUL Periodic Table.exe. You can specify that the bat file is to be launched minimized so it doesn't flash across the screen. 13 | 14 | Have fun! 15 | 16 | 17 | Kastor 18 | 19 | ☭ Hial Atropa!! ☭ 20 | 21 | -------------------------------------------------------------------------------- /XULPeriodicTable/XUL Periodic Table - ff.bat: -------------------------------------------------------------------------------- 1 | Start "Starting XUL Periodic Table" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -app application.ini %* 2 | exit -------------------------------------------------------------------------------- /XULPeriodicTable/XUL Periodic Table with jsconsole.bat: -------------------------------------------------------------------------------- 1 | Start "Starting XUL Periodic Table" /MIN "XUL Periodic Table.bat" -jsconsole 2 | exit -------------------------------------------------------------------------------- /XULPeriodicTable/XUL Periodic Table.bat: -------------------------------------------------------------------------------- 1 | Start "Starting XUL Periodic Table" "../xulrunner/XUL Periodic Table.exe" -app application.ini %* 2 | exit -------------------------------------------------------------------------------- /XULPeriodicTable/XUL Periodic Table.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewkastor/XULRunner-Examples/575591aa4519cb348fe6eb27b47c66b282627d31/XULPeriodicTable/XUL Periodic Table.exe -------------------------------------------------------------------------------- /XULPeriodicTable/application.ini: -------------------------------------------------------------------------------- 1 | 2 | [App] 3 | ; 4 | ; This field specifies your organization's name. This field is recommended, 5 | ; but optional. 6 | Vendor=Atropa 7 | ; 8 | ; This field specifies your application's name. This field is required. 9 | Name=XULPeriodicTable 10 | ; 11 | ; This field specifies your application's version. This field is optional. 12 | Version=1.0 13 | ; 14 | ; This field specifies your application's build ID (timestamp). This field is 15 | ; required. 16 | BuildID=20130203 17 | ; 18 | ; This field specifies a compact copyright notice for your application. This 19 | ; field is optional. 20 | ; Copyright=Copyright (c) 2006 Mark Finkle 21 | ; 22 | ; This ID is just an example. Every XUL app ought to have it's own unique ID. 23 | ; You can use the microsoft "guidgen" or "uuidgen" tools, or go on 24 | ; irc.mozilla.org and /msg botbot uuid. This field is optional. 25 | ID=xulperiodictable@www.hevanet.com 26 | 27 | [Gecko] 28 | ; 29 | ; This field is required. It specifies the minimum Gecko version that this 30 | ; application requires. Specifying 1.8 matches all releases with a version 31 | ; prefixed by 1.8 (e.g., 1.8a4, 1.8b, 1.8.2). 32 | MinVersion=1.8 33 | ; 34 | ; This field is optional. It specifies the maximum Gecko version that this 35 | ; application requires. It should be specified if your application uses 36 | ; unfrozen interfaces. Specifying 1.8 matches all releases with a version 37 | ; prefixed by 1.8 (e.g., 1.8a4, 1.8b, 1.8.2). 38 | MaxVersion=200.* 39 | -------------------------------------------------------------------------------- /XULPeriodicTable/chrome.manifest: -------------------------------------------------------------------------------- 1 | content myapp file:chrome/content/ -------------------------------------------------------------------------------- /XULPeriodicTable/chrome/content/ChangeLog.txt: -------------------------------------------------------------------------------- 1 | The XUL Periodic Table's contents were downloaded from 2 | http://www.hevanet.com/acorbin/xul and modified slightly. The images 3 | were missing from the download so I replaced them with other images. 4 | There were a few typos in the XUL files that prevented them from 5 | rendering properly so I fixed them. The source tab in the viewer 6 | actually looks at whatever is in the .txt version of the specific XUL 7 | file you're looking at. These txt files may or may not reflect the 8 | actual source. I only updated the .txt files corresponding to the xul 9 | files I edited and may have missed one or two. It's best to look at the 10 | actual xul files in a text editor if you run into trouble though, the 11 | source tab looks just awesome and it's probably ok. 12 | 13 | In the past this content could be viewed in firefox like any other 14 | webpage. That is no longer possible, so the content has been changed 15 | into a XUL Runner application. 16 | 17 | If you want to use the bat files to launch this application on XUL 18 | Runner you will need to adjust the paths in them to suit your system and 19 | copy XUL Periodic Table.exe into the same folder where xulrunner.exe is. 20 | Of course you can launch this app by calling \xulrunner.exe --app application.ini from this directory but, 22 | you won't get the fancy icon and convenient clicky bat file. 23 | 24 | All XUL Periodic Table.exe is, is the xulrunner-stub.exe with an 25 | application icon injected into it using resourcehacker. The application 26 | icon is easy to create using gimp, creating each layer of the image as 27 | the different sizes of icon, and exporting the image as an icon. Use the 28 | resource hacker to pull the appicon out of the exe and look at it in 29 | gimp. It's really easy to make. 30 | 31 | http://angusj.com/resourcehacker/ 32 | http://www.gimp.org/tutorials/Creating_Icons/ 33 | 34 | You can also create shortcuts to the bat files and modify the 35 | shortcuts's properties so they'll use the icon from XUL Periodic 36 | Table.exe. You can specify that the bat file is to be launched minimized 37 | so it doesn't flash across the screen. 38 | 39 | Have fun! 40 | 41 | Kastor 42 | 43 | ☭ Hial Atropa!! ☭ 44 | 45 | -------------------------------------------------------------------------------- /XULPeriodicTable/chrome/content/bchick.xul: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 46 | 47 | 48 | XUL Broadcasters and Observers (and Commands) 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 62 | 64 | 66 | 67 | 69 | 71 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 96 | 98 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 127 | 129 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 88 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 131 | 132 | 133 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /XULPeriodicTable/chrome/content/button.xul.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 18 | 19 | XUL Buttons 20 | 21 | 22 | 23 | 24 | 25 | 26 | 88 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 131 | 132 | 133 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /XULPeriodicTable/chrome/content/checkbox.xul: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 18 | 19 | XUL Checkboxes 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 31 | 33 | 35 | 37 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 51 | 53 | 55 | 57 | 59 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 72 | 74 | 76 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 91 | 93 | 95 | 97 | 99 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 113 | 116 | 119 | 122 | 125 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | -------------------------------------------------------------------------------- /XULPeriodicTable/chrome/content/checkbox.xul.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 18 | 19 | XUL Checkboxes 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 31 | 33 | 35 | 37 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 51 | 53 | 55 | 57 | 59 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 72 | 74 | 76 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 91 | 93 | 95 | 97 | 99 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 113 | 116 | 119 | 122 | 125 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | -------------------------------------------------------------------------------- /XULPeriodicTable/chrome/content/colorpicker.xul: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 19 | 20 | XUL Colorpickers 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /XULPeriodicTable/chrome/content/colorpicker.xul.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 19 | 20 | XUL Colorpickers 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /XULPeriodicTable/chrome/content/cropping.xul: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 37 | 38 | XUL Lists 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |