home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
01_03.iso
/
service
/
winamp3
/
files
/
winamp3_0-full.exe
/
Wacs
/
xml
/
library
/
queryedit.maki
(
.txt
)
< prev
Wrap
Winamp Compiled Maki Script
|
2002-07-22
|
3KB
|
111 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group2;
Global Edit Edit3;
Global String String4;
Global Button Button5;
Global Boolean Boolean6;
Global String String7;
Global QueryList QueryList8;
Function func344();
Function func665();
System.onScriptLoaded()
{
String String15;
Group2 = System.getScriptGroup();
if(( Group2 == Null)) {
System.messageBox(( "queryedit\.maki\ can\ only\ run\ within\ a\ group"), ( "Error"), 0, ( ""));
return Null;
}
QueryList8 = System.getScriptGroup().findObject(( "library\.query\.list"));
String15 = System.getToken(System.getParam(), ( "\;"), 0);
Edit3 = Group2.findObject(String15);
if(( Edit3 == Null)) {
System.messageBox(( ( ( "queryedit\.maki\ cannot\ find\ the\ edit\ field\ \(param\ 0\ \=\ ") + String15) + ( "\)")), ( "Error"), 0, ( ""));
}
Button5 = Group2.findObject(( "library\.togglesearch"));
Boolean6 = System.getPrivateInt(( "library"), ( "mode"), 1);
String7 = ( "");
func665();
return Null;
}
Edit3.onEnter()
{
func344();
return Null;
}
Edit3.onIdleEditUpdate()
{
if(( String4 == Edit3.getText())) {
return Null;
}
func344();
return Null;
}
func344()
{
GuiObject GuiObject23;
String String22;
String22 = System.getToken(System.getParam(), ( "\;"), 1);
GuiObject23 = System.getScriptGroup().findObject(String22);
String4 = Edit3.getText();
if(( GuiObject23 != Null)) {
GuiObject23.setXmlParam(( "auto"), System.integerToString(Boolean6));
GuiObject23.setXmlParam(( "query"), String4);
} else {
System.messageBox(( ( ( "queryedit\.maki\ cannot\ find\ the\ queryline\ field\ \(param\ 1\ \=\ ") + String22) + ( "\)")), ( "Error"), 0, ( ""));
}
return Null;
}
Button5.onLeftClick()
{
Edit Edit28;
String String29;
Edit28 = Group2.findObject(( "library\.query\.edit"));
String29 = Edit28.getText();
Edit28.setText(String7);
String7 = String29;
Boolean6 = ( ! Boolean6);
System.setPrivateInt(( "library"), ( "mode"), Boolean6);
func665();
return Null;
}
func665()
{
Text Text31;
Text31 = Group2.findObject(( "Search\ for"));
if(( Boolean6 == 0)) {
Text31.setText(( "Query\:"));
} else {
if(( Boolean6 == 1)) {
Text31.setText(( "Search\ For\:"));
}
}
return Null;
}
System.onAccelerator(String action, String section, String key)
{
if(( ( ( key == ( "tab")) && ( action == ( "jumper"))) && ( section == ( "pledit")))) {
}
return Null;
}
QueryList8.onResetQuery()
{
Edit3.setText(( ""));
func344();
return Null;
}