Example #1
0
        /// <summary>
        /// Default constructor for iFolderConflictResolver
        /// </summary>
        public iFolderConflictDialog(Gtk.Window parent,
                                     iFolderWeb ifolder,
                                     iFolderWebService iFolderWS,
                                     SimiasWebService SimiasWS)
            : base()
        {
            this.Title = Util.GS("Resolve Conflicts");
            if (iFolderWS == null)
            {
                throw new ApplicationException("iFolderWebServices was null");
            }
            this.ifws         = iFolderWS;
            this.simws        = SimiasWS;
            this.ifolder      = ifolder;
            this.HasSeparator = false;
            this.Resizable    = true;
            this.Modal        = true;
            if (parent != null)
            {
                this.TransientFor = parent;
            }
            conflictTable = new Hashtable();

            InitializeWidgets();
            EnableConflictControls(false);
            this.Realized += new EventHandler(OnRealizeWidget);

            // Bind ESC and C-w to close the window
            ControlKeyPressed = false;
            KeyPressEvent    += new KeyPressEventHandler(KeyPressHandler);
            KeyReleaseEvent  += new KeyReleaseEventHandler(KeyReleaseHandler);
            oldFileName       = null;
        }
Example #2
0
        /// <summary>
        /// Default constructor for iFolderPropertiesDialog
        /// </summary>
        public iFolderUserSelector(Gtk.Window parent,
                                   SimiasWebService SimiasWS,
                                   string domainID)
            : base()
        {
            this.Title = Util.GS("Add Users");
            if (SimiasWS == null)
            {
                throw new ApplicationException("SimiasWebService was null");
            }
            this.simws        = SimiasWS;
            this.domainID     = domainID;
            this.HasSeparator = false;
//			this.BorderWidth = 10;
            this.Resizable = true;
            this.Modal     = true;
            if (parent != null)
            {
                this.TransientFor = parent;
            }

            InitializeWidgets();

            this.Realized += new EventHandler(OnRealizeWidget);

            searchTimeoutID  = 0;
            selectedUsers    = new Hashtable();
            KeyPressEvent   += new KeyPressEventHandler(KeyPressHandler);
            KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
            AddEvents((int)Gdk.EventMask.KeyPressMask | (int)Gdk.EventMask.KeyReleaseMask);
        }
        /// <summary>
        /// Default constructor for iFolderPropertiesDialog
        /// </summary>
        public iFolderPropertiesDialog(Gtk.Window parent,
                                       iFolderWeb ifolder,
                                       iFolderWebService iFolderWS,
                                       SimiasWebService SimiasWS,
                                       Manager simiasManager)
            : base()
        {
            if (iFolderWS == null)
            {
                throw new ApplicationException("iFolderWebService was null");
            }
            this.ifws = iFolderWS;
            if (SimiasWS == null)
            {
                throw new ApplicationException("SimiasWebService was null");
            }
            this.simws         = SimiasWS;
            this.simiasManager = simiasManager;

            // Make sure that we have the latest information by forcing this
            // a reread from the server.
            try
            {
                this.ifolder = this.ifws.GetiFolder(ifolder.ID);
            }
            catch (Exception)
            {
                throw new ApplicationException(
                          "Unable to read the iFolder");
            }

            this.Modal    = false;
            this.TypeHint = Gdk.WindowTypeHint.Normal;

            this.HasSeparator = false;
            this.Title        =
                string.Format("{0} {1}",
                              ifolder.Name,
                              Util.GS("Properties"));

//			ifHash = new Hashtable();

            InitializeWidgets();

/*			iFolderWindow ifwin = (iFolderWindow)parent;
 *                      if( ifwin != null)
 *                      {
 *                              if( ifwin.isConnected == false)
 *                              {
 *                                      this.SettingsPage.EnableSync = false;
 *                              }
 *                      }
 */
            SetValues();

            // Bind ESC and C-w to close the window
            ControlKeyPressed = false;
            KeyPressEvent    += new KeyPressEventHandler(KeyPressHandler);
            KeyReleaseEvent  += new KeyReleaseEventHandler(KeyReleaseHandler);
        }
        /// <summary>
        /// Set up Dialog - Customize
        /// </summary>
        private void SetupDialog()
        {
            this.Title           = string.Format("{0} {1}", domain.Name, Util.GS("Properties"));
            this.Icon            = new Gdk.Pixbuf(Util.ImagesPath("ifolder16.png"));
            this.HasSeparator    = false;
            this.Resizable       = false;
            this.Modal           = false;
            this.TypeHint        = Gdk.WindowTypeHint.Normal;
            this.DefaultResponse = ResponseType.Ok;

            VBox vbox = new VBox(false, 12);

            this.VBox.PackStart(vbox, true, true, 0);
            vbox.BorderWidth = Util.DefaultBorderWidth;
            vbox.PackStart(CreateNotebook(), true, true, 0);
            vbox.PackStart(CreateGlobalCheckButtons(), false, false, 0);

            this.AddButton(Gtk.Stock.Close, ResponseType.Ok);

            this.DefaultResponse = ResponseType.Ok;

            this.Response += new ResponseHandler(OnAccountDialogResponse);

            // Bind ESC and C-w to close the window
            ControlKeyPressed = false;
            KeyPressEvent    += new KeyPressEventHandler(KeyPressHandler);
            KeyReleaseEvent  += new KeyReleaseEventHandler(KeyReleaseHandler);

            this.Realized += new EventHandler(OnRealizeWidget);
        }
        /// <summary>
        /// Default constructor for iFolderPropertiesDialog
        /// </summary>
        public iFolderPropertiesDialog(string ifolderID, Manager manager)
            : base()
        {
            if (manager == null)
            {
                return;
            }
            this.simiasManager = manager;

            String localServiceUrl = simiasManager.WebServiceUri.ToString();

            if (localServiceUrl == null)
            {
                return;
            }

            this.ifws = new iFolderWebService();
            if (this.ifws == null)
            {
                throw new ApplicationException(
                          "Unable to obtain iFolderWebService");
            }
            this.ifws.Url = localServiceUrl + "/iFolder.asmx";
            LocalService.Start(this.ifws, simiasManager.WebServiceUri, simiasManager.DataPath);

            this.simws = new SimiasWebService();
            if (this.simws == null)
            {
                throw new ApplicationException(
                          "Unable to obtain SimiasWebService");
            }
            this.simws.Url = localServiceUrl + "/Simias.asmx";
            LocalService.Start(this.simws, simiasManager.WebServiceUri, simiasManager.DataPath);

            try
            {
                this.ifolder = this.ifws.GetiFolder(ifolderID);
            }
            catch (Exception)
            {
                throw new ApplicationException(
                          "Unable to read the iFolder");
            }

            this.HasSeparator = false;
            this.Modal        = true;
            this.Title        = Util.GS("iFolder Properties");

//			ifHash = new Hashtable();

            InitializeWidgets();
            SetValues();

            // Bind ESC and C-w to close the window
            ControlKeyPressed = false;
            KeyPressEvent    += new KeyPressEventHandler(KeyPressHandler);
            KeyReleaseEvent  += new KeyReleaseEventHandler(KeyReleaseHandler);
        }
Example #6
0
 public LogWindow(Manager simiasManager)
     : base(Util.GS("iFolder Synchronization Log"))
 {
     this.simiasManager = simiasManager;
        CreateWidgets();
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
 }
 public PreferencesWindow(iFolderWebService webService, Manager simiasManager)
     : base(Util.GS("iFolder Preferences"))
 {
     if(webService == null)
     throw new ApplicationException("iFolderWebServices was null");
        ifws = webService;
        InitializeWidgets(simiasManager);
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
 }
Example #8
0
 public LogWindow(Manager simiasManager)
     : base(Util.GS("iFolder Synchronization Log"))
 {
     CreateWidgets();
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
        simiasEventBroker = SimiasEventBroker.GetSimiasEventBroker();
        if (simiasEventBroker != null)
        {
     simiasEventBroker.CollectionSyncEventFired +=
      new CollectionSyncEventHandler(OniFolderSyncEvent);
     simiasEventBroker.FileSyncEventFired +=
      new FileSyncEventHandler(OniFolderFileSyncEvent);
        }
 }
Example #9
0
        /// <summary>
        /// Default constructor for iFolderWindow
        /// </summary>
        public PreferencesWindow(iFolderWebService webService, Manager simiasManager)
            : base(Util.GS("iFolder Preferences"))
        {
            if (webService == null)
            {
                throw new ApplicationException("iFolderWebServices was null");
            }

            ifws = webService;

            InitializeWidgets(simiasManager);

            // Bind ESC and C-w to close the window
            ControlKeyPressed = false;
            KeyPressEvent    += new KeyPressEventHandler(KeyPressHandler);
            KeyReleaseEvent  += new KeyReleaseEventHandler(KeyReleaseHandler);
        }
Example #10
0
 public AddAccountWizard(SimiasWebService simws)
     : base(WindowType.Toplevel)
 {
     this.Title = Util.GS("iFolder Account Assistant");
        this.Resizable = false;
        this.Modal = true;
        this.WindowPosition = Gtk.WindowPosition.Center;
        this.Icon = new Gdk.Pixbuf(Util.ImagesPath("ifolder24.png"));
        this.simws = simws;
        domainController = DomainController.GetDomainController();
        ConnectedDomain = null;
        WaitDialog = null;
        this.Add(CreateWidgets());
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
        SetUpButtons();
 }
Example #11
0
    public IconList() : base()
    {
        status   = new Gtk.Window("status");
        status_l = new Gtk.Label("Status");
        status.Add(status_l);
        //status.ShowAll ();

        SetSizeRequest(670, 370);
        CanFocus = true;

        Realized          += new EventHandler(RealizeHanlder);
        Unrealized        += new EventHandler(UnrealizeHandler);
        SizeAllocated     += new SizeAllocatedHandler(SizeAllocatedHandler);
        MotionNotifyEvent += new MotionNotifyEventHandler(MotionHandler);
        ButtonPressEvent  += new ButtonPressEventHandler(ButtonHandler);
        KeyPressEvent     += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent   += new KeyReleaseEventHandler(KeyReleaseHandler);
        ScrollEvent       += new ScrollEventHandler(ScrollHandler);

        AddEvents((int)(EventMask.ExposureMask |
                        EventMask.LeaveNotifyMask |
                        EventMask.ButtonPressMask |
                        EventMask.PointerMotionMask |
                        EventMask.KeyPressMask |
                        EventMask.ScrollMask |
                        EventMask.KeyReleaseMask));

        zoom = 1.0f;

        SetPreviewSize(160, 120);

        adjustment = new Adjustment(0, 0, 0, 0, 0, 0);
        adjustment.ValueChanged += new EventHandler(ValueChangedHandler);

        image_count = 0;

        Gtk.Settings s = Gtk.Settings.Default;
        double_click_time = (uint)s.DoubleClickTime;

        last_click_time = 0;
    }
Example #12
0
        /// <summary>
        /// Default constructor for LogWindow
        /// </summary>
        public LogWindow(Manager simiasManager)
            : base(Util.GS("iFolder Synchronization Log"))
        {
            this.simiasManager = simiasManager;

            CreateWidgets();

            // Bind ESC and C-w to close the window
            ControlKeyPressed = false;
            KeyPressEvent    += new KeyPressEventHandler(KeyPressHandler);
            KeyReleaseEvent  += new KeyReleaseEventHandler(KeyReleaseHandler);

            simiasEventBroker = SimiasEventBroker.GetSimiasEventBroker();
            if (simiasEventBroker != null)
            {
                simiasEventBroker.CollectionSyncEventFired +=
                    new CollectionSyncEventHandler(OniFolderSyncEvent);
                simiasEventBroker.FileSyncEventFired +=
                    new FileSyncEventHandler(OniFolderFileSyncEvent);
            }
        }
 public iFolderUserSelector( Gtk.Window parent,
  SimiasWebService SimiasWS,
  string domainID)
     : base()
 {
     this.Title = Util.GS("Add Users");
        if (SimiasWS == null)
     throw new ApplicationException("SimiasWebService was null");
        this.simws = SimiasWS;
        this.domainID = domainID;
        this.HasSeparator = false;
        this.Resizable = true;
        this.Modal = true;
        if(parent != null)
     this.TransientFor = parent;
        InitializeWidgets();
        this.Realized += new EventHandler(OnRealizeWidget);
        searchTimeoutID = 0;
        selectedUsers = new Hashtable();
        KeyPressEvent += new KeyPressEventHandler (KeyPressHandler);
          KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
        AddEvents( (int) Gdk.EventMask.KeyPressMask | (int) Gdk.EventMask.KeyReleaseMask );
 }
 public iFolderPropertiesDialog( Gtk.Window parent,
   iFolderWeb ifolder,
   iFolderWebService iFolderWS,
   SimiasWebService SimiasWS,
   Manager simiasManager)
     : base()
 {
     if(iFolderWS == null)
     throw new ApplicationException("iFolderWebService was null");
        this.ifws = iFolderWS;
        if(SimiasWS == null)
     throw new ApplicationException("SimiasWebService was null");
        this.simws = SimiasWS;
        this.simiasManager = simiasManager;
        try
        {
     this.ifolder = this.ifws.GetiFolder(ifolder.ID);
        }
        catch(Exception e)
        {
     throw new ApplicationException(
       "Unable to read the iFolder");
        }
        this.Modal = false;
        this.TypeHint = Gdk.WindowTypeHint.Normal;
        this.HasSeparator = false;
        this.Title =
     string.Format("{0} {1}",
      ifolder.Name,
      Util.GS("Properties"));
        InitializeWidgets();
        SetValues();
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
 }
 private void SetupDialog()
 {
     this.Title = string.Format("{0} {1}", domain.Name, Util.GS("Properties"));
        this.Icon = new Gdk.Pixbuf(Util.ImagesPath("ifolder16.png"));
        this.HasSeparator = false;
        this.Resizable = false;
        this.Modal = false;
        this.TypeHint = Gdk.WindowTypeHint.Normal;
        this.DefaultResponse = ResponseType.Ok;
        VBox vbox = new VBox(false, 12);
        this.VBox.PackStart(vbox, true, true, 0);
        vbox.BorderWidth = Util.DefaultBorderWidth;
        vbox.PackStart(CreateNotebook(), true, true, 0);
        vbox.PackStart(CreateGlobalCheckButtons(), false, false, 0);
        this.AddButton(Gtk.Stock.Close, ResponseType.Ok);
        this.DefaultResponse = ResponseType.Ok;
        this.Response += new ResponseHandler(OnAccountDialogResponse);
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
        this.Realized += new EventHandler(OnRealizeWidget);
 }
Example #16
0
	public IconList () : base ()
	{
		status = new Gtk.Window ("status");
		status_l = new Gtk.Label ("Status");
		status.Add (status_l);
		//status.ShowAll ();
		
		SetSizeRequest (670, 370);
		CanFocus = true;
		
		Realized += new EventHandler (RealizeHanlder);
		Unrealized += new EventHandler (UnrealizeHandler);
		SizeAllocated += new SizeAllocatedHandler (SizeAllocatedHandler);
		MotionNotifyEvent += new MotionNotifyEventHandler (MotionHandler);
		ButtonPressEvent += new ButtonPressEventHandler (ButtonHandler);
		KeyPressEvent += new KeyPressEventHandler (KeyPressHandler);
		KeyReleaseEvent += new KeyReleaseEventHandler (KeyReleaseHandler);
		ScrollEvent += new ScrollEventHandler (ScrollHandler);
		
		AddEvents ((int) (EventMask.ExposureMask |
				  EventMask.LeaveNotifyMask |
				  EventMask.ButtonPressMask |
				  EventMask.PointerMotionMask |
				  EventMask.KeyPressMask |
				  EventMask.ScrollMask |
				  EventMask.KeyReleaseMask));

                zoom = 1.0f;

		SetPreviewSize (160, 120);
		
		adjustment = new Adjustment (0, 0, 0, 0, 0, 0);
		adjustment.ValueChanged += new EventHandler (ValueChangedHandler);

                image_count = 0;

		Gtk.Settings s = Gtk.Settings.Default;
		double_click_time = (uint) s.DoubleClickTime;

		last_click_time = 0;
	}
Example #17
0
        public PintaCanvas()
        {
            cr = new CanvasRenderer ();

            // Keep the widget the same size as the canvas
            PintaCore.Workspace.CanvasSizeChanged += delegate (object sender, EventArgs e) {
                SetRequisition (PintaCore.Workspace.CanvasSize);
            };

            // Update the canvas when the image changes
            PintaCore.Workspace.CanvasInvalidated += delegate (object sender, CanvasInvalidatedEventArgs e) {
                if (e.EntireSurface)
                    GdkWindow.Invalidate ();
                else
                    GdkWindow.InvalidateRect (e.Rectangle, false);
            };

            // Give mouse press events to the current tool
            ButtonPressEvent += delegate (object sender, ButtonPressEventArgs e) {
                if (PintaCore.Workspace.HasOpenDocuments)
                    PintaCore.Tools.CurrentTool.DoMouseDown (this, e, PintaCore.Workspace.WindowPointToCanvas (e.Event.X, e.Event.Y));
            };

            // Give mouse release events to the current tool
            ButtonReleaseEvent += delegate (object sender, ButtonReleaseEventArgs e) {
                if (PintaCore.Workspace.HasOpenDocuments)
                    PintaCore.Tools.CurrentTool.DoMouseUp (this, e, PintaCore.Workspace.WindowPointToCanvas (e.Event.X, e.Event.Y));
            };

            // Give mouse move events to the current tool
            MotionNotifyEvent += delegate (object sender, MotionNotifyEventArgs e) {
                if (!PintaCore.Workspace.HasOpenDocuments)
                    return;

                Cairo.PointD point = PintaCore.Workspace.ActiveWorkspace.WindowPointToCanvas (e.Event.X, e.Event.Y);

                if (PintaCore.Workspace.ActiveWorkspace.PointInCanvas (point))
                    PintaCore.Chrome.LastCanvasCursorPoint = point.ToGdkPoint ();

                if (PintaCore.Tools.CurrentTool != null)
                    PintaCore.Tools.CurrentTool.DoMouseMove (sender, e, point);
            };

            // Handle key press/release events
            KeyPressEvent += new KeyPressEventHandler (PintaCanvas_KeyPressEvent);
            KeyReleaseEvent += new KeyReleaseEventHandler (PintaCanvas_KeyReleaseEvent);
        }
 public iFolderConflictDialog( Gtk.Window parent,
   iFolderWeb ifolder,
   iFolderWebService iFolderWS,
   SimiasWebService SimiasWS)
     : base()
 {
     this.Title = Util.GS("Resolve Conflicts");
        if(iFolderWS == null)
     throw new ApplicationException("iFolderWebServices was null");
        this.ifws = iFolderWS;
        this.simws = SimiasWS;
        this.ifolder = ifolder;
        this.HasSeparator = false;
        this.Resizable = true;
        this.Modal = true;
        if(parent != null)
     this.TransientFor = parent;
        conflictTable = new Hashtable();
        InitializeWidgets();
        EnableConflictControls(false);
        this.Realized += new EventHandler(OnRealizeWidget);
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
        oldFileName = null;
 }
 public iFolderPropertiesDialog( string ifolderID, Manager manager )
     : base()
 {
     if (manager == null) return;
        this.simiasManager = manager;
        String localServiceUrl = simiasManager.WebServiceUri.ToString();
        if (localServiceUrl == null) return;
        this.ifws = new iFolderWebService();
        if(this.ifws == null)
     throw new ApplicationException(
        "Unable to obtain iFolderWebService");
        this.ifws.Url = localServiceUrl + "/iFolder.asmx";
        LocalService.Start(this.ifws, simiasManager.WebServiceUri, simiasManager.DataPath);
        this.simws = new SimiasWebService();
        if (this.simws == null)
     throw new ApplicationException(
        "Unable to obtain SimiasWebService");
        this.simws.Url = localServiceUrl + "/Simias.asmx";
        LocalService.Start(this.simws, simiasManager.WebServiceUri, simiasManager.DataPath);
        try
        {
     this.ifolder = this.ifws.GetiFolder(ifolderID);
        }
        catch(Exception e)
        {
     throw new ApplicationException(
       "Unable to read the iFolder");
        }
        this.HasSeparator = false;
        this.Modal = true;
        this.Title = Util.GS("iFolder Properties");
        InitializeWidgets();
        SetValues();
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
 }
Example #20
0
 public MigrationWizard(string User, string path, iFolderWebService ifws, SimiasWebService simws, MigrationWindow page, bool encrypted)
     : base(WindowType.Toplevel)
 {
     this.Title = Util.GS("iFolder Migration Assistant");
        this.Resizable = false;
        this.WindowPosition = Gtk.WindowPosition.Center;
        this.location = path;
        prevLocation = "";
        this.ifdata = iFolderData.GetData();
        this.ifws = ifws;
        this.simws = simws;
        this.Uname = User;
        this.page = page;
        this.Icon = new Gdk.Pixbuf(Util.ImagesPath("ifolder16.png"));
        this.alreadyEncrypted = encrypted;
        domainController = DomainController.GetDomainController();
        WaitDialog = null;
        this.Add(CreateWidgets());
        ControlKeyPressed = false;
        KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
        KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
        SetUpButtons();
 }
Example #21
0
        public PintaCanvas()
        {
            cr = new CanvasRenderer();
            gr = new GridRenderer(cr);

            // Keep the widget the same size as the canvas
            PintaCore.Workspace.CanvasSizeChanged += delegate(object sender, EventArgs e) {
                SetRequisition(PintaCore.Workspace.CanvasSize);
            };

            // Update the canvas when the image changes
            PintaCore.Workspace.CanvasInvalidated += delegate(object sender, CanvasInvalidatedEventArgs e) {
                if (e.EntireSurface)
                {
                    GdkWindow.Invalidate();
                }
                else
                {
                    GdkWindow.InvalidateRect(e.Rectangle, false);
                }
            };

            // Give mouse press events to the current tool
            ButtonPressEvent += delegate(object sender, ButtonPressEventArgs e) {
                if (PintaCore.Workspace.HasOpenDocuments)
                {
                    PintaCore.Tools.CurrentTool.DoMouseDown(this, e, PintaCore.Workspace.WindowPointToCanvas(e.Event.X, e.Event.Y));
                }
            };

            // Give mouse release events to the current tool
            ButtonReleaseEvent += delegate(object sender, ButtonReleaseEventArgs e) {
                if (PintaCore.Workspace.HasOpenDocuments)
                {
                    PintaCore.Tools.CurrentTool.DoMouseUp(this, e, PintaCore.Workspace.WindowPointToCanvas(e.Event.X, e.Event.Y));
                }
            };

            // Give mouse move events to the current tool
            MotionNotifyEvent += delegate(object sender, MotionNotifyEventArgs e) {
                if (!PintaCore.Workspace.HasOpenDocuments)
                {
                    return;
                }

                Cairo.PointD point = PintaCore.Workspace.ActiveWorkspace.WindowPointToCanvas(e.Event.X, e.Event.Y);

                if (PintaCore.Workspace.ActiveWorkspace.PointInCanvas(point))
                {
                    PintaCore.Chrome.LastCanvasCursorPoint = point.ToGdkPoint();
                }

                if (PintaCore.Tools.CurrentTool != null)
                {
                    PintaCore.Tools.CurrentTool.DoMouseMove(sender, e, point);
                }
            };

            // Handle key press/release events
            KeyPressEvent   += new KeyPressEventHandler(PintaCanvas_KeyPressEvent);
            KeyReleaseEvent += new KeyReleaseEventHandler(PintaCanvas_KeyReleaseEvent);
        }
 public KeyRecoveryWizard(SimiasWebService simws,iFolderWebService ifws)
     : base(WindowType.Toplevel)
 {
     this.Title = Util.GS("Passphrase Recovery Wizard");
          this.Resizable = false;
             this.Modal = true;
             this.WindowPosition = Gtk.WindowPosition.Center;
      this.simws=simws;
      this.ifws=ifws;
      this.Icon = new Gdk.Pixbuf(Util.ImagesPath("ifolder16.png"));
             this.Add(CreateWidgets());
             ControlKeyPressed = false;
             KeyPressEvent += new KeyPressEventHandler(KeyPressHandler);
             KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler);
             SetUpButtons();
 }