Ejemplo n.º 1
0
		public TabbedSkin(BasilProject project, ITaskBuilder taskBuilder)
		{
			_project = project;
			_tabsToTools = new System.Collections.Hashtable();

			window = new Gtk.Window ("WeSay");
			window.SetDefaultSize (600, 400);
			window.DeleteEvent += new DeleteEventHandler (WindowDelete);

			HBox hbox = new HBox (false, 0);
			window.Add (hbox);

			Notebook notebook = new Notebook ();
			notebook.SwitchPage += new SwitchPageHandler(OnNotebookSwitchPage);
			hbox.PackStart(notebook, true, true, 0);
			foreach (ITask t in taskBuilder.Tasks)
			{
				VBox container = new VBox();
				t.Container = container;
				int i = notebook.AppendPage(container, new Label(t.Label));
				_tabsToTools.Add(i, t);
			}

			window.ShowAll ();
		}
Ejemplo n.º 2
0
        public TabbedSkin(BasilProject project, ITaskBuilder taskBuilder)
        {
            _project     = project;
            _tabsToTools = new System.Collections.Hashtable();

            window = new Gtk.Window("WeSay");
            window.SetDefaultSize(600, 400);
            window.DeleteEvent += new DeleteEventHandler(WindowDelete);

            HBox hbox = new HBox(false, 0);

            window.Add(hbox);

            Notebook notebook = new Notebook();

            notebook.SwitchPage += new SwitchPageHandler(OnNotebookSwitchPage);
            hbox.PackStart(notebook, true, true, 0);
            foreach (ITask t in taskBuilder.Tasks)
            {
                VBox container = new VBox();
                t.Container = container;
                int i = notebook.AppendPage(container, new Label(t.Label));
                _tabsToTools.Add(i, t);
            }

            window.ShowAll();
        }