// ================================================================================= // Activation/Deactivation. // --------------------------------------------------------------------------------- void Init() { myMainView = null; myController = null; mySelectedAreaCache = new Rect(0, 0, 0, 0); myLastFocusId = -1; myUndoRedoId = -1; }
// --------------------------------------------------------------------------------- /// Determines if the environement is properly initialize before we can start to /// use the library editor. /// /// @return _true_ if library window is ready. _false_ otherwise. /// bool IsInitialized() { if (myController == null || myMainView == null) { myController = new LibraryDisplayController(); myMainView = new DSScrollView(new RectOffset(0, 0, 0, 0), false, true, true, myController.View); } return(true); }
bool IsInitialized() { if (IStorage == null) { Init(); return(false); } if (myController == null || myController.IStorage != IStorage) { myController = new iCS_TreeViewController(IStorage[0], IStorage); myMainView = new DSScrollView(new RectOffset(0, 0, 0, 0), false, true, true, myController.View); return(true); } if (myMainView == null) { myMainView = new DSScrollView(new RectOffset(0, 0, 0, 0), false, true, true, myController.View); } if (myUndoRedoId != IStorage.UndoRedoId) { myController.Init(IStorage[0], IStorage); } return(true); }