1
0

maki.acp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  1. #TITLE=MAKI
  2. ; MAKI files auto-completion. Currently supports the auto-completion of about 100 hookable events
  3. ; Completed and adopted to the Skin Consortium Coding Convention (Aug 2006) by Martin Poehlmann
  4. #CASE=n
  5. #T=if
  6. if (^!)
  7. {
  8. }
  9. #T=else
  10. else
  11. {
  12. ^!
  13. }
  14. #T=while
  15. while (^!)
  16. {
  17. }
  18. #T=for
  19. for ( int i = 0; i <= ^!; i++ )
  20. {
  21. }
  22. #T=onScriptLoaded
  23. onScriptLoaded ()
  24. {
  25. ^!
  26. }
  27. #T=onScriptUnloading
  28. onScriptUnloading ()
  29. {
  30. ^!
  31. }
  32. #T=onQuit
  33. onQuit ()
  34. {
  35. ^!
  36. }
  37. #T=onSetXuiParam
  38. onSetXuiParam (String param, String value)
  39. {
  40. if ( strlower(stringParam) == "^!" )
  41. }
  42. #T=onKeyDown
  43. onKeyDown (String key)
  44. {
  45. ^!
  46. }
  47. #T=onKeyUp
  48. onKeyUp(String key)
  49. {
  50. ^!
  51. }
  52. #T=onAccelerator
  53. onAccelerator (String action, String section, String key)
  54. {
  55. /* NOTE:
  56. if you have called System.onAccelerator () take System.onAccelerator (String action, String section, String key)
  57. else if you called GuiObject.onAccelerator () take onAccelerator (String accel) */
  58. ^!
  59. }
  60. #T=onChar
  61. onChar (String c)
  62. {
  63. ^!
  64. }
  65. #T=onCreateLayout
  66. onCreateLayout (Layout _layout)
  67. {
  68. ^!
  69. }
  70. #T=onShowLayout
  71. onShowLayout (Layout _layout)
  72. {
  73. ^!
  74. }
  75. #T=onBeforeSwitchToLayout
  76. onBeforeSwitchToLayout (Layout _layout)
  77. {
  78. ^!
  79. }
  80. #T=onSwitchToLayout
  81. onSwitchToLayout (Layout _layout)
  82. {
  83. ^!
  84. }
  85. #T=onHideLayout
  86. onHideLayout (Layout _layout)
  87. {
  88. ^!
  89. }
  90. #T=onStop
  91. onStop ()
  92. {
  93. ^!
  94. }
  95. #T=onPlay
  96. onPlay ()
  97. {
  98. ^!
  99. }
  100. #T=onPause
  101. onPause ()
  102. {
  103. ^!
  104. }
  105. #T=onResume
  106. onResume ()
  107. {
  108. ^!
  109. }
  110. #T=onTitleChange
  111. onTitleChange (String newtitle)
  112. {
  113. ^!
  114. }
  115. #T=onTitle2Change
  116. onTitle2Change (String newtitle2)
  117. {
  118. ^!
  119. }
  120. #T=onInfoChange
  121. onInfoChange (String info)
  122. {
  123. ^!
  124. }
  125. #T=onStatusMsg
  126. onStatusMsg (String msg)
  127. {
  128. ^!
  129. }
  130. #T=onEqBandChanged
  131. onEqBandChanged (int band, int newvalue)
  132. {
  133. ^!
  134. }
  135. #T=onEqPreampChanged
  136. onEqPreampChanged (int newvalue)
  137. {
  138. ^!
  139. }
  140. #T=onEqChanged
  141. onEqChanged (int newstatus)
  142. {
  143. ^!
  144. }
  145. #T=onVolumeChanged
  146. onVolumeChanged (int newvol)
  147. {
  148. ^!
  149. }
  150. #T=onSeek
  151. onSeek (int newpos)
  152. {
  153. ^!
  154. }
  155. #T=onFrame
  156. onFrame (Int framenum)
  157. {
  158. /*NOTE:
  159. Use the framenum argument only if you use the method with a animated layer!
  160. for vis use it without argument */
  161. ^!
  162. }
  163. #T=onActivate
  164. onActivate (int activated)
  165. {
  166. ^!
  167. }
  168. #T=onLeftClick
  169. onActivate ()
  170. {
  171. ^!
  172. }
  173. #T=onRightClick
  174. onActivate ()
  175. {
  176. ^!
  177. }
  178. #T=onResize
  179. onResize (int x, int y, int w, int h)
  180. {
  181. ^!
  182. }
  183. #T=onBeginResize
  184. onBeginResize (int x, int y, int w, int h)
  185. {
  186. ^!
  187. }
  188. #T=onEndResize
  189. onEndResize (int x, int y, int w, int h)
  190. {
  191. ^!
  192. }
  193. #T=onDock
  194. onDock ()
  195. {
  196. ^!
  197. }
  198. #T=onUndock
  199. onUndock ()
  200. {
  201. ^!
  202. }
  203. #T=onScale
  204. onScale (Double newscalevalue)
  205. {
  206. ^!
  207. }
  208. #T=onShow
  209. onShow ()
  210. {
  211. ^!
  212. }
  213. #T=onHide
  214. onHide ()
  215. {
  216. ^!
  217. }
  218. #T=onToggle
  219. onToggle (Boolean onoff)
  220. {
  221. ^!
  222. }
  223. #T=onTimer
  224. onTimer ()
  225. {
  226. ^!
  227. }
  228. #T=onSetPosition
  229. onSetPosition (int newpos)
  230. {
  231. ^!
  232. }
  233. #T=onPostedPosition
  234. onPostedPosition (int newpos)
  235. {
  236. ^!
  237. }
  238. #T=onSetFinalPosition
  239. onSetFinalPosition (int pos)
  240. {
  241. ^!
  242. }
  243. #T=onMouseMove
  244. onMouseMove (int x, int y)
  245. {
  246. ^!
  247. }
  248. #T=onLeftClick
  249. onLeftClick ()
  250. {
  251. ^!
  252. }
  253. #T=onRightClick
  254. onRightClick ()
  255. {
  256. ^!
  257. }
  258. #T=onLeftButtonDown
  259. onLeftButtonDown (int x, int y)
  260. {
  261. ^!
  262. }
  263. #T=onLeftButtonUp
  264. onLeftButtonUp (int x, int y)
  265. {
  266. ^!
  267. }
  268. #T=onRightButtonDown
  269. onRightButtonDown (int x, int y)
  270. {
  271. ^!
  272. }
  273. #T=onRightButtonUp
  274. onRightButtonUp (int x, int y)
  275. {
  276. ^!
  277. }
  278. #T=onEnterArea
  279. onEnterArea ()
  280. {
  281. ^!
  282. }
  283. #T=onLeaveArea
  284. onLeaveArea ()
  285. {
  286. ^!
  287. }
  288. #T=onBeforeNavigate
  289. onBeforeNavigate ()
  290. {
  291. ^!
  292. }
  293. #T=onNotify
  294. onNotify (String command, String param, int a, int b)
  295. {
  296. }
  297. #T=onLookForComponent
  298. onLookForComponent (String guid)
  299. {
  300. ^!
  301. return __component__
  302. }
  303. #T=onGetCancelComponent
  304. onGetCancelComponent (String guid, boolean goingvisible)
  305. {
  306. if ( guid == ^! )
  307. {
  308. return FALSE
  309. }
  310. return FALSE;
  311. }
  312. #T=onShowNotification
  313. onShowNotification ()
  314. {
  315. ^!
  316. return TRUE
  317. }
  318. #T=onSetVisible
  319. onSetVisible (Boolean onoff)
  320. {
  321. if (onoff)
  322. {
  323. ^!
  324. }
  325. }
  326. #T=onEnable
  327. onEnable (Boolean onoff)
  328. {
  329. if (onoff)
  330. {
  331. ^!
  332. }
  333. }
  334. #T=onRightButtonDblClk
  335. onRightButtonDblClk (int x, int y)
  336. {
  337. ^!
  338. }
  339. #T=onLeftButtonDblClk
  340. onLeftButtonDblClk (int x, int y)
  341. {
  342. ^!
  343. }
  344. #T=onRightButtonUp
  345. onRightButtonUp (int x, int y)
  346. {
  347. ^!
  348. }
  349. #T=onTargetReached
  350. onTargetReached ()
  351. {
  352. ^!
  353. }
  354. #T=onStartup
  355. onStartup ()
  356. {
  357. ^!
  358. }
  359. #T=onGetFocus
  360. onGetFocus ()
  361. {
  362. ^!
  363. }
  364. #T=onKillFocus
  365. onKillFocus ()
  366. {
  367. ^!
  368. }
  369. #T=onMove
  370. onMove ()
  371. {
  372. ^!
  373. }
  374. #T=onEndMove
  375. onEndMove ()
  376. {
  377. ^!
  378. }
  379. #T=onAction
  380. onAction (String action, String param, Int x, int y, int p1, int p2, GuiObject source)
  381. {
  382. ^!
  383. }
  384. #T=onUserResize
  385. onUserResize (int x, int y, int w, int h)
  386. {
  387. ^!
  388. }
  389. #T=onMouseEnterLayout
  390. onMouseEnterLayout ()
  391. {
  392. ^!
  393. }
  394. #T=onMouseLeaveLayout
  395. onMouseLeaveLayout ()
  396. {
  397. ^!
  398. }
  399. #T=onSnapAdjustChanged
  400. onSnapAdjustChanged ()
  401. {
  402. ^!
  403. }
  404. #T=onFeedChange
  405. onFeedChange (String new_feeddata)
  406. {
  407. ^!
  408. }
  409. #T=onGetWac
  410. onGetWac (Wac wacobj)
  411. {
  412. ^!
  413. }
  414. #T=onGiveUpWac
  415. onGiveUpWac (Wac wacobj)
  416. {
  417. ^!
  418. }
  419. #T=onEnter
  420. onEnter ()
  421. {
  422. ^!
  423. }
  424. #T=onAbort
  425. onAbort ()
  426. {
  427. ^!
  428. }
  429. #T=onIdleEditUpdate
  430. onIdleEditUpdate ()
  431. {
  432. ^!
  433. }
  434. #T=onEditUpdate
  435. onEditUpdate ()
  436. {
  437. ^!
  438. }
  439. #T=onDocumentComplete
  440. onDocumentComplete (String url)
  441. {
  442. ^!
  443. }
  444. #T=onTextChanged
  445. onTextChanged (String newtxt)
  446. {
  447. ^!
  448. }
  449. #T=fx_onInit
  450. fx_onInit ()
  451. {
  452. ^!
  453. }
  454. #T=fx_onFrame
  455. fx_onFrame ()
  456. {
  457. ^!
  458. }
  459. #T=onResetQuery
  460. onResetQuery ()
  461. {
  462. ^!
  463. }
  464. #T=onSelect
  465. onSelect (Int id, Int hover)
  466. {
  467. ^!
  468. }
  469. #T=onSelectAll
  470. onSelectAll ()
  471. {
  472. ^!
  473. }
  474. #T=onDelete
  475. onDelete ()
  476. {
  477. ^!
  478. }
  479. #T=onDoubleClick
  480. onDoubleClick (Int itemnum)
  481. {
  482. ^!
  483. }
  484. #T=onLeftClick
  485. onLeftClick (Int itemnum)
  486. {
  487. ^!
  488. }
  489. #T=onSecondLeftClick
  490. onSecondLeftClick (Int itemnum)
  491. {
  492. ^!
  493. }
  494. #T=onRightClick
  495. onRightClick (Int itemnum)
  496. {
  497. ^!
  498. }
  499. #T=onColumnDblClick
  500. onColumnDblClick (Int col, Int x, Int y)
  501. {
  502. ^!
  503. }
  504. #T=onColumnLabelClick
  505. onColumnLabelClick (Int col, Int x, Int y)
  506. {
  507. ^!
  508. }
  509. #T=onItemSelection
  510. onItemSelection (Int itemnum, Int selected)
  511. {
  512. ^!
  513. }
  514. #T=onWantAutoContextMenu
  515. onWantAutoContextMenu ()
  516. {
  517. ^!
  518. }
  519. #T=onMouseWheelUp
  520. onMouseWheelUp (Int clicked, Int lines)
  521. {
  522. ^!
  523. }
  524. #T=onMouseWheelDown
  525. onMouseWheelDown (Int clicked, Int lines)
  526. {
  527. ^!
  528. }
  529. #T=onContextMenu
  530. onContextMenu (Int x, Int y)
  531. {
  532. ^!
  533. }
  534. #T=onItemRecvDrop
  535. onItemRecvDrop (TreeItem item)
  536. {
  537. ^!
  538. }
  539. #T=onLabelChange
  540. onLabelChange (TreeItem item)
  541. {
  542. ^!
  543. }
  544. #T=onItemSelected
  545. onItemSelected (TreeItem item)
  546. {
  547. ^!
  548. }
  549. #T=onItemDeselected
  550. onItemDeselected (TreeItem item)
  551. {
  552. ^!
  553. }
  554. #T=onTreeAdd
  555. onTreeAdd ()
  556. {
  557. ^!
  558. }
  559. #T=onTreeRemove
  560. onTreeRemove ()
  561. {
  562. ^!
  563. }
  564. #T=onSelect
  565. onSelect ()
  566. {
  567. ^!
  568. }
  569. #T=onDeselect
  570. onDeselect ()
  571. {
  572. ^!
  573. }
  574. #T=onLeftDoubleClick
  575. onLeftDoubleClick ()
  576. {
  577. ^!
  578. }
  579. #T=onRightDoubleClick
  580. onRightDoubleClick ()
  581. {
  582. ^!
  583. }
  584. #T=onChar
  585. onChar (Int key)
  586. {
  587. ^!
  588. }
  589. #T=onExpand
  590. onExpand ()
  591. {
  592. ^!
  593. }
  594. #T=onCollapse
  595. onCollapse ()
  596. {
  597. ^!
  598. }
  599. #T=onBeginLabelEdit
  600. onBeginLabelEdit ()
  601. {
  602. ^!
  603. }
  604. #T=onEndLabelEdit
  605. onEndLabelEdit (String newlabel)
  606. {
  607. ^!
  608. }
  609. #T=onContextMenu
  610. onContextMenu (Int x, Int y)
  611. {
  612. ^!
  613. }
  614. #T=onOpenMenu
  615. onOpenMenu ()
  616. {
  617. ^!
  618. }
  619. #T=onCloseMenu
  620. onCloseMenu ()
  621. {
  622. ^!
  623. }
  624. #T=onSelectItem
  625. onSelectItem (String item)
  626. {
  627. ^!
  628. }
  629. #T=onDataChanged
  630. onDataChanged ()
  631. {
  632. ^!
  633. }
  634. ;-------------------
  635. #T=messageBox
  636. messageBox ("^!", "Title" , Flag, "");