Ejemplo n.º 1
0
 protected override void OnActivate()
 {
     this.cursorMouseDown    = PdnResources.GetCursor("Cursors.PanToolCursorMouseDown.cur");
     this.cursorMouseUp      = PdnResources.GetCursor("Cursors.PanToolCursor.cur");
     this.cursorMouseInvalid = PdnResources.GetCursor("Cursors.PanToolCursorInvalid.cur");
     base.Cursor             = this.cursorMouseUp;
     base.OnActivate();
 }
Ejemplo n.º 2
0
 public PanControl()
 {
     if (!base.DesignMode)
     {
         this.handCursor          = PdnResources.GetCursor("Cursors.PanToolCursor.cur");
         this.handMouseDownCursor = PdnResources.GetCursor("Cursors.PanToolCursorMouseDown.cur");
         this.Cursor = this.handCursor;
     }
     this.InitializeComponent();
     this.RefreshDragAreaRect();
 }
Ejemplo n.º 3
0
 protected override void OnActivate()
 {
     this.colorPickerToolCursor = PdnResources.GetCursor("Cursors.ColorPickerToolCursor.cur");
     base.Cursor          = this.colorPickerToolCursor;
     this.previewRenderer = new PickerPreviewCanvasLayer();
     base.DocumentCanvas.CanvasLayers.Add(this.previewRenderer);
     this.allLayersDocumentRenderer = base.Document.CreateRenderer();
     this.currentSampleSize         = base.ToolSettings.PixelSampleMode.Value;
     this.CreateAllLayersRenderSurface(this.currentSampleSize);
     base.ToolSettings.PixelSampleMode.ValueChangedT += new ValueChangedEventHandler <PixelSampleMode>(this.OnPixelSampleModeValueChangedT);
     base.OnActivate();
 }
Ejemplo n.º 4
0
 protected override void OnActivate()
 {
     this.cursorZoom    = PdnResources.GetCursor("Cursors.ZoomToolCursor.cur");
     this.cursorZoomIn  = PdnResources.GetCursor("Cursors.ZoomInToolCursor.cur");
     this.cursorZoomOut = PdnResources.GetCursor("Cursors.ZoomOutToolCursor.cur");
     this.cursorZoomPan = PdnResources.GetCursor("Cursors.ZoomOutToolCursor.cur");
     base.Cursor        = this.cursorZoom;
     base.OnActivate();
     this.outline                   = new Selection();
     this.outlineRenderer           = new SelectionCanvasLayer();
     this.outlineRenderer.Selection = this.outline;
     base.DocumentCanvas.CanvasLayers.Add(this.outlineRenderer);
 }
Ejemplo n.º 5
0
 protected void SetCursors(string cursorMouseUpResName, string cursorMouseUpMinusResName, string cursorMouseUpPlusResName, string cursorMouseDownResName)
 {
     DisposableUtil.Free <Cursor>(ref this.cursorMouseUp);
     if (cursorMouseUpResName != null)
     {
         this.cursorMouseUp = PdnResources.GetCursor(cursorMouseUpResName);
     }
     DisposableUtil.Free <Cursor>(ref this.cursorMouseUpMinus);
     if (cursorMouseUpMinusResName != null)
     {
         this.cursorMouseUpMinus = PdnResources.GetCursor(cursorMouseUpMinusResName);
     }
     DisposableUtil.Free <Cursor>(ref this.cursorMouseUpPlus);
     if (cursorMouseUpPlusResName != null)
     {
         this.cursorMouseUpPlus = PdnResources.GetCursor(cursorMouseUpPlusResName);
     }
     DisposableUtil.Free <Cursor>(ref this.cursorMouseDown);
     if (cursorMouseDownResName != null)
     {
         this.cursorMouseDown = PdnResources.GetCursor(cursorMouseDownResName);
     }
 }