home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / soundCD_1.03.iso / players / WinAmp / winamp3_0-full.exe / Wacs / xml / library / queryedit.maki (.txt) < prev   
Winamp Compiled Maki Script  |  2002-07-22  |  3KB  |  111 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Group Group2;
  6. Global Edit Edit3;
  7. Global String String4;
  8. Global Button Button5;
  9. Global Boolean Boolean6;
  10. Global String String7;
  11. Global QueryList QueryList8;
  12.  
  13. Function func344();
  14. Function func665();
  15.  
  16. System.onScriptLoaded()
  17. {
  18. String String15;
  19. Group2 = System.getScriptGroup();
  20. if(( Group2 == Null)) {
  21. System.messageBox(( "queryedit\.maki\ can\ only\ run\ within\ a\ group"), ( "Error"), 0, ( ""));
  22. return Null;
  23. }
  24. QueryList8 = System.getScriptGroup().findObject(( "library\.query\.list"));
  25. String15 = System.getToken(System.getParam(), ( "\;"), 0);
  26. Edit3 = Group2.findObject(String15);
  27. if(( Edit3 == Null)) {
  28. System.messageBox(( ( ( "queryedit\.maki\ cannot\ find\ the\ edit\ field\ \(param\ 0\ \=\ ") + String15) + ( "\)")), ( "Error"), 0, ( ""));
  29. }
  30. Button5 = Group2.findObject(( "library\.togglesearch"));
  31. Boolean6 = System.getPrivateInt(( "library"), ( "mode"), 1);
  32. String7 = ( "");
  33. func665();
  34. return Null;
  35. }
  36.  
  37. Edit3.onEnter()
  38. {
  39. func344();
  40. return Null;
  41. }
  42.  
  43. Edit3.onIdleEditUpdate()
  44. {
  45. if(( String4 == Edit3.getText())) {
  46. return Null;
  47. }
  48. func344();
  49. return Null;
  50. }
  51.  
  52. func344()
  53. {
  54. GuiObject GuiObject23;
  55. String String22;
  56. String22 = System.getToken(System.getParam(), ( "\;"), 1);
  57. GuiObject23 = System.getScriptGroup().findObject(String22);
  58. String4 = Edit3.getText();
  59. if(( GuiObject23 != Null)) {
  60. GuiObject23.setXmlParam(( "auto"), System.integerToString(Boolean6));
  61. GuiObject23.setXmlParam(( "query"), String4);
  62. } else {
  63. System.messageBox(( ( ( "queryedit\.maki\ cannot\ find\ the\ queryline\ field\ \(param\ 1\ \=\ ") + String22) + ( "\)")), ( "Error"), 0, ( ""));
  64. }
  65. return Null;
  66. }
  67.  
  68. Button5.onLeftClick()
  69. {
  70. Edit Edit28;
  71. String String29;
  72. Edit28 = Group2.findObject(( "library\.query\.edit"));
  73. String29 = Edit28.getText();
  74. Edit28.setText(String7);
  75. String7 = String29;
  76. Boolean6 = ( ! Boolean6);
  77. System.setPrivateInt(( "library"), ( "mode"), Boolean6);
  78. func665();
  79. return Null;
  80. }
  81.  
  82. func665()
  83. {
  84. Text Text31;
  85. Text31 = Group2.findObject(( "Search\ for"));
  86. if(( Boolean6 == 0)) {
  87. Text31.setText(( "Query\:"));
  88. } else {
  89. if(( Boolean6 == 1)) {
  90. Text31.setText(( "Search\ For\:"));
  91. }
  92. }
  93. return Null;
  94. }
  95.  
  96. System.onAccelerator(String action, String section, String key)
  97. {
  98. if(( ( ( key == ( "tab")) && ( action == ( "jumper"))) && ( section == ( "pledit")))) {
  99. }
  100. return Null;
  101. }
  102.  
  103. QueryList8.onResetQuery()
  104. {
  105. Edit3.setText(( ""));
  106. func344();
  107. return Null;
  108. }
  109.  
  110.  
  111.