home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 June
/
PCWorld_2002-06_cd.bin
/
Software
/
Topware
/
winamp
/
wa3install_beta3.exe
/
Lib
/
std.mi
< prev
Wrap
Text File
|
2002-02-14
|
18KB
|
486 lines
//----------------------------------------------------------------------------------------------------------------
// std.mi
//
// standard definitions for internal objects
//----------------------------------------------------------------------------------------------------------------
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
// GUIDS
extern class @{51654971-0D87-4a51-91E3-A6B53235F3E7}@ @{00000000-0000-0000-0000-000000000000}@ Object;
extern class @{D6F50F64-93FA-49b7-93F1-BA66EFAE3E98}@ Object _predecl System;
extern class @{E90DC47B-840D-4ae7-B02C-040BD275F7FC}@ Object Container;
extern class @{00C074A0-FEA2-49a0-BE8D-FABBDB161640}@ Object Wac;
extern class @{B2023AB5-434D-4ba1-BEAE-59637503F3C6}@ Object &List;
extern class @{38603665-461B-42a7-AA75-D83F6667BF73}@ Object ⤅
extern class @{F4787AF4-B2BB-4ef7-9CFB-E74BA9BEA88D}@ Object &PopupMenu;
extern class @{3A370C02-3CBF-439f-84F1-86885BCF1E36}@ Object &Region;
extern class @{5D0C5BB6-7DE1-4b1f-A70F-8D1659941941}@ Object &Timer;
extern class @{4EE3E199-C636-4bec-97CD-78BC9C8628B0}@ Object &GuiObject;
extern class @{45BE95E5-2072-4191-935C-BB5FF9F117FD}@ GuiObject &Group;
extern class @{60906D4E-537E-482e-B004-CC9461885672}@ Group &Layout;
extern class @{403ABCC0-6F22-4bd6-8BA4-10C829932547}@ GuiObject &Component;
extern class @{97AA3E4D-F4D0-4fa8-817B-0AF22A454983}@ GuiObject &ComponentBucket;
extern class @{64E4BBFA-81F4-49d9-B0C0-A85B2EC3BCFD}@ GuiObject &Edit;
extern class @{62B65E3F-375E-408d-8DEA-76814AB91B77}@ GuiObject &Slider;
extern class @{CE4F97BE-77B0-4e19-9956-D49833C96C27}@ GuiObject &Vis;
extern class @{A8C2200D-51EB-4b2a-BA7F-5D4BC65D4C71}@ GuiObject &Browser;
extern class @{8D1EBA38-489E-483e-B960-8D1F43C5C405}@ GuiObject &EqVis;
extern class @{0F08C940-AF39-4b23-80F3-B8C48F7EBB59}@ GuiObject &Status;
extern class @{EFAA8672-310E-41fa-B7DC-85A9525BCB4B}@ GuiObject &Text;
extern class @{7DFD3244-3751-4e7c-BF40-82AE5F3ADC33}@ GuiObject &Title;
extern class @{5AB9FA15-9A7D-4557-ABC8-6557A6C67CA9}@ GuiObject &Layer;
extern class @{698EDDCD-8F1E-4fec-9B12-F944F909FF45}@ GuiObject &Button;
extern class @{6B64CD27-5A26-4c4b-8C59-E6A70CF6493A}@ Layer &AnimatedLayer;
extern class @{B4DCCFFF-81FE-4bcc-961B-720FD5BE0FFF}@ Button &ToggleButton;
extern class @{01E28CE1-B059-11d5-979F-E4DE6F51760A}@ GuiObject &GroupList;
extern class @{80F0F8BD-1BA5-42a6-A093-3236A00C8D4A}@ Group &CfgGroup;
extern class @{CDCB785D-81F2-4253-8F05-61B872283CFA}@ GuiObject &QueryList;
extern class @{9B2E341B-6C98-40fa-8B85-0C1B6EE89405}@ GuiObject &MouseRedir;
// class tree member functions & events
// Object
extern String Object.getClassName();
extern String Object.getId();
extern Int Object.onNotify(String command, String param, int a, int b);
// System
extern System.onScriptLoaded();
extern System.onScriptUnloading();
extern System.onQuit();
extern System.onKeyDown(String key);
extern System.onCreateLayout(Layout _layout);
extern System.onShowLayout(Layout _layout);
extern System.onHideLayout(Layout _layout);
extern System.onStop();
extern System.onPlay();
extern System.onPause();
extern System.onResume();
extern System.onTitleChange(String newtitle);
extern System.onEqBandChanged(int band, int newvalue);
extern System.onEqPreampChanged(int newvalue);
extern System.onEqChanged(int newstatus);
extern System.onVolumeChanged(int newvol);
extern System.onSeek(int newpos);
extern Container System.getContainer(String container_id);
extern Container System.newDynamicContainer(String container_id);
extern Group System.newGroup(String group_id);
extern Int System.getNumContainers();
extern Container System.enumContainer(Int num);
extern Wac System.getWac(String wac_guid);
extern Int System.messageBox(String message, String msgtitle, Int flag, String notanymore_id);
extern String System.getPlayItemString();
extern Int System.getPlayItemLength();
extern String System.getPlayItemMetaDataString(String metadataname);
extern System.playFile(String playitem);
extern Int System.getLeftVuMeter();
extern Int System.getRightVuMeter();
extern Int System.getVolume();
extern System.setVolume(Int vol);
extern System.play();
extern System.stop();
extern System.pause();
extern System.next();
extern System.previous();
extern System.eject();
extern System.seekTo(Int pos);
extern Int System.getPosition();
extern System.setEqBand(int band, Int value);
extern System.setEqPreamp(Int value);
extern System.setEq(Int onoff);
extern Int System.getEqBand(int band);
extern int System.getEqPreamp();
extern int System.getEq();
extern int System.getMousePosX();
extern int System.getMousePosY();
extern String System.integerToString(Int value);
extern Int System.StringToInteger(String str);
extern String System.floatToString(float value, int ndigits);
extern Float System.stringToFloat(String str);
extern String System.integerToLongTime(Int value);
extern String System.integerToTime(Int value);
extern String System.strmid(String str, Int start, Int len);
extern String System.Strleft(string str, int nchars);
extern string System.strright(string str, int nchars);
extern int System.strsearch(string str, string substr);
extern int System.strlen(string str);
extern string System.strupper(string str);
extern string System.strlower(string str);
extern string System.urlEncode(string url);
extern string System.removePath(string str);
extern string System.getToken(string str, string separator, int tokennum);
extern double System.sin(double value);
extern double System.cos(double value);
extern double System.tan(double value);
extern double System.asin(double value);
extern double System.acos(double value);
extern double System.atan(double value);
extern double System.pow(double value, double pvalue);
extern double System.sqr(double value);
extern double System.sqrt(double value);
extern int System.random(int max);
extern System.setPrivateString(string section, string item, string value);
extern System.setPrivateInt(string section, string item, int value);
extern String System.getPrivateString(String section, String item, String defvalue);
extern Int System.getPrivateInt(String section, String item, Int defvalue);
extern System.setPublicString(String item, String value);
extern System.setPublicInt(String item, Int value);
extern String System.getPublicString(String item, String defvalue);
extern Int System.getPublicInt(String item, Int defvalue);
extern String System.getParam();
extern Group System.getScriptGroup();
extern Int System.getViewportWidth();
extern Int System.getViewportHeight();
extern System.debugString(String str, Int severity);
extern System.ddeSend(String application, String command, Int mininterval);
extern Component System.onLookForComponent(String guid);
extern Int System.getCurAppLeft();
extern Int System.getCurAppTop();
extern Int System.getCurAppWidth();
extern Int System.getCurAppHeight();
extern Boolean System.isAppActive();
extern String System.getSKinName();
extern Browser System.getMainBrowser();
extern Boolean System.isObjectValid(Object o);
extern Int System.integer(Double d);
extern Int System.getTimeOfDay();
extern System.setMenuTransparency(int alphavalue);
// Container
extern Container.onSwitchToLayout(Layout newlayout);
extern Container.onHideLayout(Layout _layout);
extern Container.onShowLayout(Layout _layout);
extern Layout Container.getLayout(String layout_id);
extern Int Container.getNumLayouts();
extern Layout Container.enumLayout(Int num);
extern Container.switchToLayout(Layout layout_id);
extern Container.show();
extern Container.hide();
extern Container.toggle();
extern Int Container.isDynamic();
// Wac
extern String Wac.getGuid();
extern String Wac.getName();
extern Int Wac.sendCommand(String cmd, Int param1, Int param2, String param3);
extern Wac.show();
extern Wac.hide();
extern Boolean Wac.isVisible();
extern Wac.onNotify(String notifstr, Int a, Int b);
extern Wac.onShow();
extern Wac.onHide();
extern Wac.setStatusBar(Boolean onoff);
extern Boolean Wac.getStatusBar();
// GuiObject
extern GuiObject.show();
extern GuiObject.hide();
extern int GuiObject.isVisible();
extern GuiObject.onSetVisible(Boolean onoff);
extern GuiObject.setAlpha(int alpha);
extern int GuiObject.getAlpha();
extern GuiObject.onLeftButtonUp(int x, int y);
extern GuiObject.onLeftButtonDown(int x, int y);
extern GuiObject.onRightButtonUp(int x, int y);
extern GuiObject.onRightButtonDown(int x, int y);
extern GuiObject.onRightButtonDblClk(int x, int y);
extern GuiObject.onLeftButtonDblClk(int x, int y);
extern GuiObject.onMouseMove(int x, int y);
extern GuiObject.onEnterArea();
extern GuiObject.onLeaveArea();
extern GuiObject.setEnabled(boolean onoff);
extern boolean GuiObject.getEnabled();
extern GuiObject.onEnable(boolean onoff);
extern GuiObject.resize(int x, int y, int w, int h);
extern GuiObject.onResize(int x, int y, int w, int h);
extern boolean GuiObject.isMouseOver(int x, int y);
extern int GuiObject.getLeft();
extern int GuiObject.getTop();
extern int GuiObject.getWidth();
extern int GuiObject.getHeight();
extern GuiObject.setTargetX(int x);
extern GuiObject.setTargetY(int y);
extern GuiObject.setTargetW(int w);
extern GuiObject.setTargetH(int r);
extern GuiObject.setTargetA(int alpha);
extern GuiObject.setTargetSpeed(float insecond);
extern GuiObject.gotoTarget();
extern GuiObject.onTargetReached();
extern boolean GuiObject.isGoingToTarget();
extern GuiObject.setXmlParam(String param, String value);
extern GuiObject.init(Group parent);
extern GuiObject.bringToFront();
extern GuiObject.bringToBack();
extern GuiObject.bringAbove(GuiObject guiobj);
extern GuiObject.bringBelow(GuiObject guiobj);
extern Int GuiObject.getGuiX();
extern Int GuiObject.getGuiY();
extern Int GuiObject.getGuiW();
extern Int GuiObject.getGuiH();
extern Int GuiObject.getGuiRelatX();
extern Int GuiObject.getGuiRelatY();
extern Int GuiObject.getGuiRelatW();
extern Int GuiObject.getGuiRelatH();
extern Boolean GuiObject.isActive();
extern Group GuiObject.getParent();
// Group
extern GuiObject Group.getObject(String object_id);
extern Int Group.getNumObjects();
extern GuiObject Group.enumObject(Int num);
extern Group.onCreateObject(GuiObject newobj);
extern Int Group.getMousePosX();
extern Int Group.getMousePosY();
extern Boolean Group.isLayout();
// Layout
extern Layout.onDock();
extern Layout.onUndock();
extern Layout.onScale(Double newscalevalue);
extern Double Layout.getScale();
extern Layout.setScale(Double scalevalue);
extern Layout.setDesktopAlpha(Boolean onoff);
extern Container Layout.getContainer();
// List
extern List.addItem(Any _object);
extern List.removeItem(int pos);
extern Any List.enumItem(int pos);
extern Int List.findItem(Any _object);
extern int List.getNumItems();
extern List.removeAll();
// Map
extern Int Map.getValue(int x, int y);
extern Boolean Map.inRegion(int x, int y);
extern Map.loadMap(String bitmapid);
extern Int Map.getWidth();
extern Int Map.getHeight();
extern Region Map.getRegion();
// PopupMenu
extern PopupMenu.addSubMenu(PopupMenu submenu, String submenutext);
extern PopupMenu.addCommand(String cmdtxt, Int cmd_id, Boolean checked, Boolean disabled);
extern PopupMenu.addSeparator();
extern Int PopupMenu.popAtXY(int x, int y);
extern Int PopupMenu.popAtMouse();
extern Int PopupMenu.getNumCommands();
extern PopupMenu.checkCommand(int cmd_id, boolean check);
extern PopupMenu.disableCommand(int cmd_id, boolean disable);
// Region
extern Region.add(Region reg);
extern Region.sub(Region reg);
extern Region.offset(int x, int y);
extern Region.stretch(double r);
extern Region.copy(Region reg);
extern Region.loadFromMap(Map regionmap, Int threshold, Boolean reversed);
extern Region.loadFromBitmap(String bitmapid);
extern Int Region.getBoundingBoxX();
extern Int Region.getBoundingBoxY();
extern Int Region.getBoundingBoxW();
extern Int Region.getBoundingBoxH();
// Timer
extern Timer.onTimer();
extern Timer.setDelay(int millisec);
extern Int Timer.getDelay();
extern Timer.start();
extern Timer.stop();
extern Timer.isRunning();
// Component
extern Component.onGetWac(Wac wacobj);
extern Component.onGiveUpWac(Wac wacobj);
extern String Component.getGuid();
extern Wac Component.getWac();
extern Component.setRegionFromMap(Map regionmap, Int threshold, Boolean reverse);
extern Component.setRegion(Region reg);
extern Component.setAcceptWac(Boolean onoff);
// Edit
extern Edit.onEnter();
extern Edit.onAbort();
extern Edit.onIdleEditUpdate();
extern Edit.onEditUpdate();
extern Edit.setText(String txt);
extern Edit.setAutoEnter(boolean onoff);
extern String Edit.getText();
// Slider
extern Slider.onSetPosition(int newpos);
extern Slider.onPostedPosition(int newpos);
extern Slider.onSetFinalPosition(int pos);
extern Slider.setPosition(int pos);
extern Int Slider.getPosition();
// Vis
extern Vis.onFrame();
extern Vis.setRealtime(Boolean onoff);
extern Boolean Vis.getRealtime();
extern Int Vis.getMode();
extern Vis.setMode(Int mode);
extern Vis.nextMode();
// Browser
extern Browser.gotoUrl(String url);
extern Browser.back();
extern Browser.forward();
extern Browser.stop();
extern Browser.refresh();
extern Browser.home();
extern Browser.setTargetName(String targetname);
// Text
extern Text.setText(String txt);
extern String Text.getText();
extern int Text.getTextwidth();
// Layer
extern Layer.onBeginResize(int x, int y, int w, int h);
extern Layer.onEndResize(int x, int y, int w, int h);
extern Layer.fx_onInit();
extern Layer.fx_onFrame();
extern Double Layer.fx_onGetPixelR(double r, double d, double x, double y);
extern Double Layer.fx_onGetPixelD(double r, double d, double x, double y);
extern Double Layer.fx_onGetPixelX(double r, double d, double x, double y);
extern Double Layer.fx_onGetPixelY(double r, double d, double x, double y);
extern Double Layer.fx_onGetPixelA(double r, double d, double x, double y);
extern Layer.setRegionFromMap(Map regionmap, int threshold, boolean reverse);
extern Layer.setRegion(Region reg);
extern Layer.fx_setEnabled(boolean onoff);
extern Boolean Layer.fx_getEnabled();
extern Layer.fx_setWrap(Boolean onoff);
extern Boolean Layer.fx_getWrap();
extern Layer.fx_setRect(Boolean onoff);
extern Boolean Layer.fx_getRect();
extern Layer.fx_setBgFx(Boolean onoff);
extern Boolean Layer.fx_getBgFx();
extern Layer.fx_setClear(Boolean onoff);
extern Boolean Layer.fx_getClear();
extern Layer.fx_setSpeed(Int msperframe);
extern Int Layer.fx_getSpeed();
extern Layer.fx_setRealtime(Boolean onoff);
extern Boolean Layer.fx_getRealtime();
extern Layer.fx_setLocalized(Boolean onoff);
extern Boolean Layer.fx_getLocalized();
extern Layer.fx_setBilinear(Boolean onoff);
extern Boolean Layer.fx_getBilinear();
extern Layer.fx_setAlphaMode(Boolean onoff);
extern Boolean Layer.fx_getAlphaMode();
extern Layer.fx_setGridSize(Int x, Int y);
extern Layer.fx_update();
extern Layer.fx_restart();
// Button
extern Button.onActivate();
extern Button.onLeftClick();
extern Button.onRightClick();
extern Button.setActivated(Boolean onoff);
extern Boolean Button.getActivated();
extern Button.leftClick();
extern Button.rightClick();
// AnimatedLayer
extern AnimatedLayer.onPlay();
extern AnimatedLayer.onPause();
extern AnimatedLayer.onResume();
extern AnimatedLayer.onStop();
extern AnimatedLayer.onFrame(Int framenum);
extern AnimatedLayer.setSpeed(Int msperframe);
extern AnimatedLayer.gotoFrame(int framenum);
extern AnimatedLayer.setStartFrame(Int framenum);
extern AnimatedLayer.setEndFrame(int framenum);
extern AnimatedLayer.setAutoReplay(Boolean onoff);
extern AnimatedLayer.play();
extern AnimatedLayer.stop();
extern AnimatedLayer.pause();
extern Boolean AnimatedLayer.isPlaying();
extern Boolean AnimatedLayer.isPaused();
extern Boolean AnimatedLayer.isStopped();
extern Int AnimatedLayer.getStartFrame();
extern Int AnimatedLayer.getEndFrame();
extern Int AnimatedLayer.getLength();
extern Int AnimatedLayer.getDirection();
extern Boolean AnimatedLayer.getAutoReplay();
extern Int AnimatedLayer.getCurFrame();
extern AnimatedLayer.setRealtime(Boolean onoff);
// ToggleButton
extern ToggleButton.onToggle(Boolean);
// GroupList
extern Group GroupList.instantiate(String group_id, int num_groups);
extern Int GroupList.getNumItems();
extern Group GroupList.enumItem(int num);
extern GroupList.removeAll();
extern GroupList.scrollToPercent(Int percent);
// CfgGroup
extern Int CfgGroup.cfgGetInt();
extern CfgGroup.cfgSetInt(Int intvalue);
extern String CfgGroup.cfgGetString();
extern CfgGroup.cfgSetString(String strvalue);
extern String CfgGroup.cfgGetName();
extern CfgGroup.onCfgChanged();
// QueryList
extern Int QueryList.openTable(String table_guid);
extern Int QueryList.openSubtable(String column);
extern Int QueryList.runQuery(String query);
extern QueryList.hideAllColumns();
extern QueryList.setColumnVisible(String collumn, Boolean onoff);
extern QueryList.playSelection();
extern String QueryList.getPlayItem(int pos);
extern String QueryList.getItemText(int pos, int subpos);
extern QueryList.onItemSelect(int pos, Int onoff);
extern QueryList.setTopItem(String topitemtext);
extern QueryList.selectItem(Int pos, Int onoff);
extern Boolean QueryList.isItemSelected(Int pos);
extern Int QueryList.getNumItems();
extern QueryList.deselectAll();
// MouseRedir
extern MouseRedir.setRedirection(GuiObject o);
extern GuiObject MouseRedir.getRedirection();
extern MouseRedir.setRegionFromMap(Map regionmap, Int threshold, Boolean reverse);
extern MouseRedir.setRegion(Region reg);
.CODE