Ejemplo n.º 1
0
 //			static int num = 0;
 //			int id;
 public OpacityTimer(SearchPopupWindow window)
 {
     //				id = num++;
     this.window = window;
     Opacity     = 0.0;
     window.declarationviewwindow.Opacity = Opacity;
 }
Ejemplo n.º 2
0
 void DestroyPopup()
 {
     if (popup != null)
     {
         popup.Destroy();
         popup = null;
     }
 }
Ejemplo n.º 3
0
        void HandleSearchEntryChanged(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(ToolbarView.SearchText))
            {
                lastSearchText = ToolbarView.SearchText;
            }

            if (string.IsNullOrEmpty(ToolbarView.SearchText))
            {
                DestroyPopup();
                return;
            }
            var pattern = SearchPopupSearchPattern.ParsePattern(ToolbarView.SearchText);

            if (pattern.Pattern == null && pattern.LineNumber > 0 || pattern == emptyColonPattern)
            {
                if (popup != null)
                {
                    popup.Hide();
                }
                return;
            }
            else
            {
                if (popup != null && !popup.Visible)
                {
                    popup.Show();
                }
            }

            if (popup == null)
            {
                popup = new SearchPopupWindow();
                popup.SearchForMembers = SearchForMembers;
                popup.Destroyed       += delegate {
                    popup = null;
                    ToolbarView.SearchText = "";
                };
                PositionPopup();
                popup.ShowAll();
            }

            popup.Update(pattern);
        }
Ejemplo n.º 4
0
        void HandleSearchEntryChanged(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty (ToolbarView.SearchText))
                lastSearchText = ToolbarView.SearchText;

            if (string.IsNullOrEmpty (ToolbarView.SearchText)){
                DestroyPopup ();
                return;
            }
            var pattern = SearchPopupSearchPattern.ParsePattern (ToolbarView.SearchText);
            if (pattern.Pattern == null && pattern.LineNumber > 0 || pattern == emptyColonPattern) {
                if (popup != null) {
                    popup.Hide ();
                }
                return;
            } else {
                if (popup != null && !popup.Visible)
                    popup.Show ();
            }

            if (popup == null) {
                popup = new SearchPopupWindow ();
                popup.SearchForMembers = SearchForMembers;
                popup.Disposed += delegate {
                    popup = null;
                    ToolbarView.SearchText = "";
                };
                popup.SelectedItemChanged += delegate {
                    var si = popup?.Content?.SelectedItem;
                    if (si == null || si.Item < 0 || si.Item >= si.DataSource.Count)
                        return;
                    var text = si.DataSource [si.Item].AccessibilityMessage;
                    if (string.IsNullOrEmpty (text))
                        return;

                    ToolbarView.ShowAccessibilityAnnouncement (text);
                };
                PositionPopup ();
                popup.Show ();
            }
            popup.Update (pattern);
        }
Ejemplo n.º 5
0
 void HandleSearchEntryChanged(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(matchEntry.Entry.Text))
     {
         if (popup != null)
         {
             popup.Destroy();
         }
         return;
     }
     if (popup == null)
     {
         popup = new SearchPopupWindow();
         popup.SearchForMembers = SearchForMembers;
         popup.Destroyed       += delegate {
             popup = null;
             matchEntry.Entry.Text = "";
         };
         PositionPopup();
         popup.ShowAll();
     }
     popup.Update(matchEntry.Entry.Text);
 }
Ejemplo n.º 6
0
		void HandleSearchEntryChanged (object sender, EventArgs e)
		{
			if (string.IsNullOrEmpty (matchEntry.Entry.Text)){
				if (popup != null)
					popup.Destroy ();
				return;
			}
			var pattern = SearchPopupSearchPattern.ParsePattern (matchEntry.Entry.Text);
			if (pattern.Pattern == null && pattern.LineNumber > 0 || pattern == emptyColonPattern) {
				if (popup != null) {
					popup.Hide ();
				}
				return;
			} else {
				if (popup != null && !popup.Visible)
					popup.Show ();
			}

			if (popup == null) {
				popup = new SearchPopupWindow ();
				popup.SearchForMembers = SearchForMembers;
				popup.Destroyed += delegate {
					popup = null;
					matchEntry.Entry.Text = "";
				};
				PositionPopup ();
				popup.ShowAll ();
			}

			popup.Update (pattern);

		}
Ejemplo n.º 7
0
			//			static int num = 0;
			//			int id;
			public OpacityTimer (SearchPopupWindow window)
			{
				//				id = num++;
				this.window = window;
				Opacity = 0.0;
				window.declarationviewwindow.Opacity = Opacity;
			}
 public ProjectSearchCategory(SearchPopupWindow widget) : base(GettextCatalog.GetString("Solution"))
 {
     this.widget     = widget;
     this.lastResult = new WorkerResult(widget);
 }
Ejemplo n.º 9
0
		void DestroyPopup ()
		{
			if (popup != null) {
				popup.Destroy ();
				popup = null;
			}
		}
Ejemplo n.º 10
0
		void HandleSearchEntryChanged (object sender, EventArgs e)
		{
			if (string.IsNullOrEmpty (matchEntry.Entry.Text)){
				if (popup != null)
					popup.Destroy ();
				return;
			}
			if (popup == null) {
				popup = new SearchPopupWindow ();
				popup.SearchForMembers = SearchForMembers;
				popup.Destroyed += delegate {
					popup = null;
					matchEntry.Entry.Text = "";
				};
				PositionPopup ();
				popup.ShowAll ();
			}
			popup.Update (matchEntry.Entry.Text);

		}
		public ProjectSearchCategory (SearchPopupWindow widget) : base (GettextCatalog.GetString("Solution"))
		{
			this.widget = widget;
			this.lastResult = new WorkerResult (widget);
		}
Ejemplo n.º 12
0
			public SearchResultCollector (SearchPopupWindow parent, SearchCategory cat)
			{
				this.parent = parent;
				this.Category = cat;
			}
Ejemplo n.º 13
0
 public SearchResultCollector(SearchPopupWindow parent, SearchCategory cat)
 {
     this.parent   = parent;
     this.Category = cat;
 }