home *** CD-ROM | disk | FTP | other *** search
- package com.livebrush.ui
- {
- import com.livebrush.data.Settings;
- import com.livebrush.graphics.canvas.Layer;
- import com.livebrush.tools.Tool;
- import com.livebrush.tools.ToolManager;
- import com.livebrush.utils.View;
-
- public class UIView extends View
- {
- public var lastSettings:Settings;
-
- public var helpID:String = "";
-
- public function UIView(uiModel:UIModel)
- {
- super(uiModel);
- }
-
- public function minMax(value:Object, min:Number = 1, max:Number = NaN) : Number
- {
- return UIController.minMax(value,min,max);
- }
-
- public function get settings() : Settings
- {
- return new Settings();
- }
-
- public function toNumber(value:Object) : Number
- {
- return UIController.toNumber(value);
- }
-
- public function set settings(data:Settings) : void
- {
- }
-
- public function speed(value:Object) : Number
- {
- return UIController.speed(value);
- }
-
- public function toDataList(l:*) : Array
- {
- return UIController.toDataList(l);
- }
-
- public function get activeLayer() : Layer
- {
- return UIController(controller).activeLayer;
- }
-
- public function time(value:Object) : Number
- {
- return UIController.time(value);
- }
-
- public function typeInputIsAutomatic(s:String) : Boolean
- {
- return UIController.typeInputIsAutomatic(s);
- }
-
- public function get ui() : UI
- {
- return UI(model);
- }
-
- public function get toolManager() : ToolManager
- {
- return this.ui.toolManager;
- }
-
- public function toObjList(l:*) : Array
- {
- return UIController.toObjList(l);
- }
-
- public function toFraction(value:Object, div:Number = 100) : Number
- {
- return UIController.toFraction(value,div);
- }
-
- public function get activeTool() : Tool
- {
- return this.toolManager.activeTool;
- }
- }
- }
-
-