Ejemplo n.º 1
0
 protected override bool OnFocusOutEvent(Gdk.EventFocus evnt)
 {
     hover = false;
     LoadImage();
     QueueDraw();
     return(base.OnFocusOutEvent(evnt));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles focus in event
 /// </summary>
 /// <param name="evnt">
 /// Arguments <see cref="Gdk.EventFocus"/>
 /// </param>
 /// <returns>
 /// true if handled, false if not <see cref="System.Boolean"/>
 /// </returns>
 protected override bool OnFocusInEvent(Gdk.EventFocus evnt)
 {
     if (Editable == false)
     {
         return(true);
     }
     Selected = DataPart.Hour;
     return(base.OnFocusInEvent(evnt));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Handles focus in event
 /// </summary>
 /// <param name="evnt">
 /// Arguments <see cref="Gdk.EventFocus"/>
 /// </param>
 /// <returns>
 /// true if handled, false if not <see cref="System.Boolean"/>
 /// </returns>
 protected override bool OnFocusInEvent(Gdk.EventFocus evnt)
 {
     if (Editable == false)
     {
         return(true);
     }
     Selected = labels[0].Part;
     return(base.OnFocusInEvent(evnt));
 }
Ejemplo n.º 4
0
        //TODO figure out why this event does not get raised
        protected override bool OnFocusOutEvent(Gdk.EventFocus evnt)
        {
            if (hide_when_focus_lost)
            {
                HidePopup();
                return(true);
            }

            return(base.OnFocusOutEvent(evnt));
        }
Ejemplo n.º 5
0
        protected override bool OnFocusOutEvent(Gdk.EventFocus evnt)
        {
            if (InternalMouseTracking == false)
            {
                return(base.OnFocusOutEvent(evnt));
            }
            bool val = base.OnFocusOutEvent(evnt);

            SetImage();
            return(val);
        }
Ejemplo n.º 6
0
 protected override bool OnFocusInEvent(EventFocus evnt)
 {
     ((DefaultWorkbench)IdeApp.Workbench.RootWindow).SetActiveWidget (Focus);
     return base.OnFocusInEvent (evnt);
 }
 protected override bool OnFocusOutEvent(EventFocus evnt)
 {
     Unfocus();
     return false;
 }
Ejemplo n.º 8
0
 protected override bool OnFocusOutEvent(Gdk.EventFocus e)
 {
     DoChanged();
     return(base.OnFocusOutEvent(e));
 }
Ejemplo n.º 9
0
        // END HERZUM SPRINT 4.3: TLAB-238 TLAB-243

        protected override bool OnFocusInEvent (EventFocus evnt)
        {
            // Buffer.Text;
            bool res = base.OnFocusOutEvent (evnt);

            if (cell != null && cell.Value != null && Buffer != null)  {
                if ((cell.Value as TraceLabSDK.Component.Config.DirectoryPath)!=null)
                    Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute;
                else if ((cell.Value as TraceLabSDK.Component.Config.FilePath) != null)
                    Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute;
            }
            return res;
        }
		protected override bool OnFocusInEvent (EventFocus evt)
		{
			if (timeout != 0) {
				GLib.Source.Remove (timeout);
				timeout = 0;
			}

			return base.OnFocusInEvent (evt);
		}
Ejemplo n.º 11
0
 //LOST FOCUS
 protected override bool OnFocusOutEvent(EventFocus evnt)
 {
     if( LostFocus != null )  LostFocus( this, new EventArgs() );
     return base.OnFocusOutEvent (evnt);
 }
		protected override bool OnFocusInEvent (EventFocus evnt)
		{
			RequestResetCaretBlink ();
			return base.OnFocusInEvent (evnt);
		}
Ejemplo n.º 13
0
 protected override bool OnFocusOutEvent(EventFocus evnt)
 {
     Hide();
     return _trackListView.ProcessEvent(evnt);
 }
		protected override bool OnFocusOutEvent (EventFocus evnt)
		{
			StopCaretThread ();
			return base.OnFocusOutEvent (evnt);
		}
		protected override bool OnFocusOutEvent (EventFocus e)
		{
			NotifyCompletionContextChanged ();
			return base.OnFocusOutEvent (e);
		}
Ejemplo n.º 16
0
 protected override bool OnFocusOutEvent(Gdk.EventFocus evnt)
 {
     QueueDraw();
     return(base.OnFocusOutEvent(evnt));
 }
Ejemplo n.º 17
0
 protected override bool OnFocusOutEvent(EventFocus evnt)
 {
     UpdateComboEntries(comboFind.ActiveText);
      return base.OnFocusOutEvent(evnt);
 }
 protected override bool OnFocusOutEvent(EventFocus e)
 {
     CompletionListWindow.HideWindow ();
     return base.OnFocusOutEvent (e);
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Handles focus out event
 /// </summary>
 /// <param name="evnt">
 /// Arguments <see cref="Gdk.EventFocus"/>
 /// </param>
 /// <returns>
 /// true if handled, false if not <see cref="System.Boolean"/>
 /// </returns>
 protected override bool OnFocusOutEvent(Gdk.EventFocus evnt)
 {
     Selected = DataPart.None;
     return(base.OnFocusOutEvent(evnt));
 }
Ejemplo n.º 20
0
 protected override bool OnFocusInEvent(Gdk.EventFocus evnt)
 {
     return(true);
 }
Ejemplo n.º 21
0
		protected override bool OnFocusOutEvent (EventFocus evnt)
		{
			DestroyWindow ();
			return base.OnFocusOutEvent (evnt);
		}
Ejemplo n.º 22
0
        // HERZUM SPRINT 4.2: TLAB-202
        /*
        protected override bool OnFocusOutEvent (EventFocus evnt)
        {
            bool res = base.OnFocusOutEvent (evnt);

            if (cell != null && cell.Value != null && Buffer != null)
                if ((cell.Value as TraceLabSDK.Component.Config.DirectoryPath)!=null){
                    if (Buffer.Text != null && !Buffer.Text.Trim().Equals("") && !System.IO.Directory.Exists(Buffer.Text))
                        Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute;
                    (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute = Buffer.Text;
                    cell.SetDirectory (Buffer.Text);
                    
                }  else if ((cell.Value as TraceLabSDK.Component.Config.FilePath) != null){
                    if (Buffer.Text != null && !Buffer.Text.Trim().Equals("") && !System.IO.File.Exists(Buffer.Text))
                        Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute;
                    (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute = Buffer.Text;
                    cell.SetFilePath (Buffer.Text);
                }

            return res;
        }
        */
        // HERZUM SPRINT 4.3: TLAB-238 TLAB-243
        protected override bool OnFocusOutEvent (EventFocus evnt)
        {
            bool res = base.OnFocusOutEvent (evnt);

            if (cell == null || Buffer == null)
                return res;

            if ((cell as TraceLab.UI.GTK.PropertyGridEditors.DirectoryPathEditor)!=null){

                try {
                    if (cell.Value != null) {
                        if (Buffer.Text != null && !Buffer.Text.Trim().Equals(""))
                            if (!System.IO.Directory.Exists(Buffer.Text))
                                Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute;
                        (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute = Buffer.Text;
                    }
                    cell.SetDirectory (Buffer.Text);
                }
                catch {}
            }  else if ((cell as TraceLab.UI.GTK.PropertyGridEditors.FilePathEditor) != null){

                try {
                    if (cell.Value != null) {
                        if (Buffer.Text != null && !Buffer.Text.Trim().Equals(""))
                            if (!System.IO.File.Exists(Buffer.Text))
                                Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute;
                        (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute = Buffer.Text;
                    }
                    cell.SetFilePath (Buffer.Text);
                }
                catch {}
            }

            return res;
        }
		protected override bool OnFocusOutEvent (EventFocus evt)
		{
			timeout = GLib.Timeout.Add (100, () => {
				titleWindow.Close ();
				return false;
			});

			return base.OnFocusOutEvent (evt);
		}
Ejemplo n.º 24
0
 protected override bool OnFocusOutEvent(EventFocus evnt)
 {
     Hide();
     return base.OnFocusOutEvent(evnt);
 }