/* ************************************************************************ Copyright: Mai 2007 License: GPL v2.0 Authors: Varol Okan ************************************************************************ */ /** * Your application */ qx.Class.define("ao.Desktop", { extend : qx.application.Gui, members : { main : function(e) { this.base(arguments); this._rpc = new qx.io.remote.Rpc(); this._rpc.setTimeout ( 10000 ); this._rpc.setCrossDomain ( false ); this._rpc.setUrl( "/services.php" ); var thePanel = new ao.FishEyeBar ( 32, 96, 40, 0.2 ); getButtonCount ( ); $buttons = $desktop->getButtons ( ); while ( $button = mysql_fetch_array ( $buttons ) ) { $icon = $button ['icon']; $text = $button ['button_text']; $execute = $button ['execute']; echo " thePanel.addButton ( \"$icon\", \"$text\", \"$execute\" );"; } $icons = $desktop->getIcons ( ); while ( $icon = mysql_fetch_array ( $icons ) ) { $theIcon = $icon['icon']; $xPos = $icon['x_pos']; $yPos = $icon['y_pos']; $text = $icon['icon_text']; $color = $icon['icon_color']; $execute = $icon['execute']; $winX = $icon['win_x']; $winY = $icon['win_y']; $winW = $icon['win_width']; $winH = $icon['win_height']; $idx = $icon['idx']; echo " new ao.Icon ( this, \"$theIcon\", $xPos, $yPos, \"$text\", \"$color\", \"$execute\", $winX, $winY, $winW, $winH, $idx );"; } ?> } } });