blingbling.system.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>Reference</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <br/>
  20. <h1>ldoc</h1>
  21. <ul>
  22. <li><a href="../index.html">Index</a></li>
  23. </ul>
  24. <h2>Contents</h2>
  25. <ul>
  26. <li><a href="#Functions">Functions</a></li>
  27. </ul>
  28. <h2>Modules</h2>
  29. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  30. <li><a href="../modules/blingbling.calendar.html">blingbling.calendar</a></li>
  31. <li><a href="../modules/blingbling.clock.html">blingbling.clock</a></li>
  32. <li><a href="../modules/blingbling.helpers.html">blingbling.helpers</a></li>
  33. <li><a href="../modules/blingbling.linegraph.html">blingbling.linegraph</a></li>
  34. <li><a href="../modules/blingbling.widget.html">blingbling.widget</a></li>
  35. <li><a href="../modules/blingbling.popups.html">blingbling.popups</a></li>
  36. <li><a href="../modules/blingbling.progress_graph.html">blingbling.progress_graph</a></li>
  37. <li><strong>blingbling.system</strong></li>
  38. <li><a href="../modules/blingbling.tagslist.html">blingbling.tagslist</a></li>
  39. <li><a href="../modules/blingbling.task_warrior.html">blingbling.task_warrior</a></li>
  40. <li><a href="../modules/blingbling.text_box.html">blingbling.text_box</a></li>
  41. <li><a href="../modules/blingbling.transient.html">blingbling.transient</a></li>
  42. <li><a href="../modules/blingbling.triangular_progress_graph.html">blingbling.triangular_progress_graph</a></li>
  43. <li><a href="../modules/blingbling.udisks_glue.html">blingbling.udisks_glue</a></li>
  44. <li><a href="../modules/blingbling.value_text_box.html">blingbling.value_text_box</a></li>
  45. <li><a href="../modules/blingbling.volume.html">blingbling.volume</a></li>
  46. <li><a href="../modules/blingbling.wlourf_circle_graph.html">blingbling.wlourf_circle_graph</a></li>
  47. </ul>
  48. </div>
  49. <div id="content">
  50. <h1>Module <code>blingbling.system</code></h1>
  51. <p>launchers for reboot, shutdown, shutdown, logout or lock menus for your system.</p>
  52. <p></p>
  53. <h2><a href="#Functions">Functions</a></h2>
  54. <table class="function_list">
  55. <tr>
  56. <td class="name" nowrap><a href="#mainmenu">mainmenu (main_image, shutdown_image, reboot_image, logout_image, lock_image)</a></td>
  57. <td class="summary">Main menu launcher.</td>
  58. </tr>
  59. <tr>
  60. <td class="name" nowrap><a href="#shutdownmenu">shutdownmenu (button_image, accept_image, cancel_image)</a></td>
  61. <td class="summary">Shutdown menu launcher.</td>
  62. </tr>
  63. <tr>
  64. <td class="name" nowrap><a href="#lockmenu">lockmenu (button_image, accept_image, cancel_image)</a></td>
  65. <td class="summary">Lock menu launcher.</td>
  66. </tr>
  67. <tr>
  68. <td class="name" nowrap><a href="#rebootmenu">rebootmenu (button_image, accept_image, cancel_image)</a></td>
  69. <td class="summary">Reboot menu launcher.</td>
  70. </tr>
  71. <tr>
  72. <td class="name" nowrap><a href="#logoutmenu">logoutmenu (button_image, accept_image, cancel_image)</a></td>
  73. <td class="summary">Logout menu launcher.</td>
  74. </tr>
  75. </table>
  76. <br/>
  77. <br/>
  78. <h2><a name="Functions"></a>Functions</h2>
  79. <dl class="function">
  80. <dt>
  81. <a name = "mainmenu"></a>
  82. <strong>mainmenu (main_image, shutdown_image, reboot_image, logout_image, lock_image)</strong>
  83. </dt>
  84. <dd>
  85. Main menu launcher.
  86. Create a button which will spawn a menu allowing the user to shutdown, reboot, logout and lock screen
  87. Only the first parameter is mandatory. The other values can be nil and specified in the theme.lua via the theme.blingbling table. See the superproperties module documentation.
  88. <h3>Parameters:</h3>
  89. <ul>
  90. <li><span class="parameter">main_image</span>
  91. the image that will be displayed with the shutdown option
  92. </li>
  93. <li><span class="parameter">shutdown_image</span>
  94. the image that will be displayed with the shutdown option
  95. </li>
  96. <li><span class="parameter">reboot_image</span>
  97. the image that will be displayed with the reboot option
  98. </li>
  99. <li><span class="parameter">logout_image</span>
  100. the image that will be displayed with the logout option
  101. </li>
  102. <li><span class="parameter">lock_image</span>
  103. the image that will be displayed with the lock option
  104. </li>
  105. </ul>
  106. <h3>Usage:</h3>
  107. <ul>
  108. <pre class="example">mymainmenu = system.mainmenu(main_image, shutdown_image, reboot_image, logout_image, lock_image)</pre>
  109. </ul>
  110. </dd>
  111. <dt>
  112. <a name = "shutdownmenu"></a>
  113. <strong>shutdownmenu (button_image, accept_image, cancel_image)</strong>
  114. </dt>
  115. <dd>
  116. Shutdown menu launcher.
  117. Create a button with an accept/cancel menu for shutdown the system
  118. No mandatory parameter. All values can be nil and specified in the theme.lua via the theme.blingbling table. See the superproperties module documentation.
  119. <h3>Parameters:</h3>
  120. <ul>
  121. <li><span class="parameter">button_image</span>
  122. an image file that will be displayed in the wibox
  123. </li>
  124. <li><span class="parameter">accept_image</span>
  125. an image file for the accept menu entry
  126. </li>
  127. <li><span class="parameter">cancel_image</span>
  128. an image file for the cancel menu entry
  129. </li>
  130. </ul>
  131. <h3>Usage:</h3>
  132. <ul>
  133. <pre class="example">shutdown=blingbling.system.shutdownmenu(launcher_image, menu_dialog_image_ok, menu_.dialog_image_cancel)</pre>
  134. </ul>
  135. </dd>
  136. <dt>
  137. <a name = "lockmenu"></a>
  138. <strong>lockmenu (button_image, accept_image, cancel_image)</strong>
  139. </dt>
  140. <dd>
  141. Lock menu launcher.
  142. Create a button with an accept/cancel menu for locking the system:
  143. No mandatory parameter. All values can be nil and specified in the theme.lua via the theme.blingbling table. See the superproperties module documentation.
  144. <h3>Parameters:</h3>
  145. <ul>
  146. <li><span class="parameter">button_image</span>
  147. an image file that will be displayed in the wibox
  148. </li>
  149. <li><span class="parameter">accept_image</span>
  150. an image file for the accept menu entry
  151. </li>
  152. <li><span class="parameter">cancel_image</span>
  153. an image file for the cancel menu entry
  154. </li>
  155. </ul>
  156. <h3>Usage:</h3>
  157. <ul>
  158. <pre class="example">shutdown=blingbling.system.lockmenu(launcher_image, menu_dialog_image_ok, menu_.dialog_image_cancel)</pre>
  159. </ul>
  160. </dd>
  161. <dt>
  162. <a name = "rebootmenu"></a>
  163. <strong>rebootmenu (button_image, accept_image, cancel_image)</strong>
  164. </dt>
  165. <dd>
  166. Reboot menu launcher.
  167. Create a button with an accept/cancel menu for reboot the system:
  168. No mandatory parameter. All values can be nil and specified in the theme.lua via the theme.blingbling table. See the superproperties module documentation.
  169. <h3>Parameters:</h3>
  170. <ul>
  171. <li><span class="parameter">button_image</span>
  172. an image file that will be displayed in the wibox
  173. </li>
  174. <li><span class="parameter">accept_image</span>
  175. an image file for the accept menu entry
  176. </li>
  177. <li><span class="parameter">cancel_image</span>
  178. an image file for the cancel menu entry
  179. </li>
  180. </ul>
  181. <h3>Usage:</h3>
  182. <ul>
  183. <pre class="example">reboot=blingbling.system.rebootmenu(launcher_image, menu_dialog_image_ok, menu_.dialog_image_cancel)</pre>
  184. </ul>
  185. </dd>
  186. <dt>
  187. <a name = "logoutmenu"></a>
  188. <strong>logoutmenu (button_image, accept_image, cancel_image)</strong>
  189. </dt>
  190. <dd>
  191. Logout menu launcher.
  192. Create a button with an accept/cancel menu for reboot the system:
  193. No mandatory parameter. All values can be nil and specified in the theme.lua via the theme.blingbling table. See the superproperties module documentation.
  194. <h3>Parameters:</h3>
  195. <ul>
  196. <li><span class="parameter">button_image</span>
  197. an image file that will be displayed in the wibox
  198. </li>
  199. <li><span class="parameter">accept_image</span>
  200. an image file for the accept menu entry
  201. </li>
  202. <li><span class="parameter">cancel_image</span>
  203. an image file for the cancel menu entry
  204. </li>
  205. </ul>
  206. <h3>Usage:</h3>
  207. <ul>
  208. <pre class="example">logout=blingbling.system.logouttmenu(launcher_image, menu_dialog_image_ok, menu_.dialog_image_cancel)</pre>
  209. </ul>
  210. </dd>
  211. </dl>
  212. </div> <!-- id="content" -->
  213. </div> <!-- id="main" -->
  214. <div id="about">
  215. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
  216. <i style="float:right;">Last updated 2015-08-04 10:16:50 </i>
  217. </div> <!-- id="about" -->
  218. </div> <!-- id="container" -->
  219. </body>
  220. </html>