Exemplo n.º 1
0
        public AwesomeBar()
        {
            RunButton = new RunButton();
            AddSubview(RunButton);

            SelectorView              = new SelectorView();
            SelectorView.SizeChanged += (object sender, EventArgs e) => UpdateLayout();
            AddSubview(SelectorView);

            ButtonBarContainer              = new ButtonBarContainer();
            ButtonBarContainer.SizeChanged += (object sender, EventArgs e) => UpdateLayout();
            AddSubview(ButtonBarContainer);

            StatusBar = new StatusBar();
            AddSubview(StatusBar);

            SearchBar = new SearchBar();
            AddSubview(SearchBar);

            StatusBar.SearchBar = SearchBar;

            RunButton.NextKeyView          = SelectorView;
            SelectorView.NextKeyView       = ButtonBarContainer;
            ButtonBarContainer.NextKeyView = StatusBar;
            StatusBar.NextKeyView          = SearchBar;

            Ide.Gui.Styles.Changed += (o, e) => UpdateLayout();
        }
Exemplo n.º 2
0
		NSToolbarItem CreateRunToolbarItem ()
		{
			var button = new RunButton ();
			viewCache.Add (button);
			button.Activated += (o, e) => {
				if (RunButtonClicked != null)
					RunButtonClicked (o, e);
			};

			var item = new NSToolbarItem (RunButtonId) {
				View = button,
				MinSize = new CGSize (button.FittingSize.Width + 12, button.FittingSize.Height),
				MaxSize = new CGSize (button.FittingSize.Width + 12, button.FittingSize.Height),
			};
			return item;
		}
Exemplo n.º 3
0
        public AwesomeBar()
        {
            RunButton = new RunButton();
            AddSubview(RunButton);

            SelectorView              = new SelectorView();
            SelectorView.SizeChanged += (object sender, EventArgs e) => UpdateLayout();
            AddSubview(SelectorView);

            ButtonBarContainer              = new ButtonBarContainer();
            ButtonBarContainer.SizeChanged += (object sender, EventArgs e) => UpdateLayout();
            AddSubview(ButtonBarContainer);

            StatusBar = new StatusBar();
            AddSubview(StatusBar);

            SearchBar = new SearchBar();
            AddSubview(SearchBar);
        }
Exemplo n.º 4
0
		public AwesomeBar ()
		{
			RunButton = new RunButton ();
			AddSubview (RunButton);

			SelectorView = new SelectorView ();
			SelectorView.SizeChanged += (object sender, EventArgs e) => UpdateLayout ();
			AddSubview (SelectorView);

			ButtonBarContainer = new ButtonBarContainer ();
			ButtonBarContainer.SizeChanged += (object sender, EventArgs e) => UpdateLayout ();
			AddSubview (ButtonBarContainer);

			StatusBar = new StatusBar ();
			AddSubview (StatusBar);

			SearchBar = new SearchBar ();
			AddSubview (SearchBar);
		}
Exemplo n.º 5
0
        NSToolbarItem CreateRunToolbarItem()
        {
            var button = new RunButton();

            button.Activated += (o, e) => {
                if (RunButtonClicked != null)
                {
                    RunButtonClicked(o, e);
                }
            };

            var item = new NSToolbarItem(RunButtonId)
            {
                View    = button,
                MinSize = new CGSize(button.FittingSize.Width + 12, button.FittingSize.Height),
                MaxSize = new CGSize(button.FittingSize.Width + 12, button.FittingSize.Height),
            };

            return(item);
        }