Exemple #1
0
        private void IncluirNovaAba(string nomeAba)
        {
            HPaned         spPanel;
            ScrolledWindow scrollArvore;
            TreeView       arvore;
            ScrolledWindow scrollTabela;
            NodeView       tabela;

            spPanel          = new HPaned();
            spPanel.CanFocus = true;
            spPanel.Name     = "spPanel" + nomeAba;
            spPanel.Position = 250;

            scrollArvore            = new ScrolledWindow();
            scrollArvore.Name       = "scrollArvore" + nomeAba;
            scrollArvore.ShadowType = ((ShadowType)(1));

            arvore                     = new TreeView();
            arvore.CanFocus            = true;
            arvore.Name                = "arvore" + nomeAba;
            arvore.Selection.Changed  += form.OnArvoreFixaSelectionChanged;
            arvore.RowExpanded        += new RowExpandedHandler(form.OnArvoreFixaRowExpanded);
            arvore.RowCollapsed       += new RowCollapsedHandler(form.OnArvoreFixaRowCollapsed);
            arvore.ButtonReleaseEvent += new ButtonReleaseEventHandler(form.OnArvoreFixaButtonReleaseEvent);
            Arvore.Instancia.Construir(arvore);

            scrollArvore.Add(arvore);
            spPanel.Add(scrollArvore);
            Paned.PanedChild w9 = ((Paned.PanedChild)(spPanel [scrollArvore]));
            w9.Resize = false;

            scrollTabela            = new ScrolledWindow();
            scrollTabela.Name       = "scrollTabela" + nomeAba;
            scrollTabela.ShadowType = ((ShadowType)(1));

            tabela                     = new NodeView();
            tabela.CanFocus            = true;
            tabela.Name                = "tabela" + nomeAba;
            tabela.ButtonReleaseEvent += new ButtonReleaseEventHandler(form.OnTabelaFixaButtonReleaseEvent);
            tabela.RowActivated       += new RowActivatedHandler(form.OnTabelaFixaRowActivated);
            Tabela.Instancia.Construir(true, tabela);

            scrollTabela.Add(tabela);
            spPanel.Add(scrollTabela);

            form.adicionaTabPage(form.tabControl1, spPanel, nomeAba);
        }
        public ResxEditorView()
        {
            Controller = new ResourceController();
            HPaned container = new HPaned();

            container.Add(Controller.ResourceEditorView);

            AttachListeners();

            Container = container;
            Container.ShowAll();
        }
Exemple #3
0
 protected virtual void Build()
 {
     // Widget BizeeBirdBoarding.Ui.MainWindow
     Name           = "BizeeBirdBoarding.Ui.MainWindow";
     Title          = "BiZee Bird Boarding";
     WindowPosition = WindowPosition.CenterOnParent;
     DefaultWidth   = 1115;
     DefaultHeight  = 480;
     // Container child BizeeBirdBoarding.Ui.MainWindow.Container+ContainerChild
     topLevelVbox         = new VBox();
     topLevelVbox.Name    = "topLevelVbox";
     topLevelVbox.Spacing = 6;
     // Container child topLevelVbox.Box+BoxChild
     toolbarButtonBox             = new HButtonBox();
     toolbarButtonBox.Name        = "toolbarButtonBox";
     toolbarButtonBox.LayoutStyle = ButtonBoxStyle.Start;
     // Container child toolbarButtonBox.ButtonBox+ButtonBoxChild
     button1              = new Button();
     button1.CanFocus     = true;
     button1.Name         = "button1";
     button1.UseUnderline = true;
     button1.Label        = "New Customer";
     toolbarButtonBox.Add(button1);
     ButtonBox.ButtonBoxChild w1 = (ButtonBox.ButtonBoxChild)toolbarButtonBox[button1];
     w1.Expand = false;
     w1.Fill   = false;
     // Container child toolbarButtonBox.ButtonBox+ButtonBoxChild
     button2              = new Button();
     button2.CanFocus     = true;
     button2.Name         = "button2";
     button2.UseUnderline = true;
     button2.Label        = "New Appointment";
     toolbarButtonBox.Add(button2);
     ButtonBox.ButtonBoxChild w2 = (ButtonBox.ButtonBoxChild)toolbarButtonBox[button2];
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     topLevelVbox.Add(toolbarButtonBox);
     Box.BoxChild w3 = ((Box.BoxChild)(topLevelVbox[toolbarButtonBox]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child topLevelVbox.Box+BoxChild
     notebook             = new Notebook();
     notebook.CanFocus    = true;
     notebook.Name        = "notebook";
     notebook.CurrentPage = 0;
     // Container child notebook.Notebook+NotebookChild
     appointmentsTabHPaned      = new HPaned();
     appointmentsTabHPaned.Name = "appointmentsTabHPaned";
     // Container child appointmentsTabHPaned.Paned+PanedChild
     upcomingDropOffsFrame = new Frame();
     upcomingDropOffsFrame.WidthRequest = 450;
     upcomingDropOffsFrame.Name         = "upcomingDropOffsFrame";
     upcomingDropOffsFrame.ShadowType   = ShadowType.In;
     // Container child upcomingDropOffsFrame.Container+ContainerChild
     upcomingDropOffsGtkAlignment             = new Alignment(0F, 0F, 1F, 1F);
     upcomingDropOffsGtkAlignment.Name        = "upcomingDropOffsGtkAlignment";
     upcomingDropOffsGtkAlignment.LeftPadding = 12;
     // Container child upcomingDropOffsGtkAlignment.Container+ContainerChild
     upcomingDropOffsGtkScrolledWindow            = new ScrolledWindow();
     upcomingDropOffsGtkScrolledWindow.Name       = "upcomingDropOffsGtkScrolledWindow";
     upcomingDropOffsGtkScrolledWindow.ShadowType = ShadowType.In;
     // Container child upcomingDropOffsGtkScrolledWindow.Container+ContainerChild
     upcomingDropOffsTreeView          = new TreeView();
     upcomingDropOffsTreeView.CanFocus = true;
     upcomingDropOffsTreeView.Name     = "upcomingDropOffsTreeView";
     upcomingDropOffsGtkScrolledWindow.Add(upcomingDropOffsTreeView);
     upcomingDropOffsGtkAlignment.Add(upcomingDropOffsGtkScrolledWindow);
     upcomingDropOffsFrame.Add(upcomingDropOffsGtkAlignment);
     upcomingDropOffsLabel             = new Label();
     upcomingDropOffsLabel.Name        = "upcomingDropOffsLabel";
     upcomingDropOffsLabel.LabelProp   = "<b>Upcoming Drop Offs</b>";
     upcomingDropOffsLabel.UseMarkup   = true;
     upcomingDropOffsFrame.LabelWidget = upcomingDropOffsLabel;
     appointmentsTabHPaned.Add(upcomingDropOffsFrame);
     Paned.PanedChild w7 = (Paned.PanedChild)appointmentsTabHPaned[upcomingDropOffsFrame];
     w7.Resize = false;
     // Container child appointmentsTabHPaned.Paned+PanedChild
     upcomingPickupsFrame            = new Frame();
     upcomingPickupsFrame.Name       = "upcomingPickupsFrame";
     upcomingPickupsFrame.ShadowType = ShadowType.In;
     // Container child upcomingPickupsFrame.Container+ContainerChild
     upcomingPickupsAlignment             = new Alignment(0F, 0F, 1F, 1F);
     upcomingPickupsAlignment.Name        = "upcomingPickupsAlignment";
     upcomingPickupsAlignment.LeftPadding = 12;
     // Container child upcomingPickupsAlignment.Container+ContainerChild
     upcomingPickupsScrolledWindow            = new ScrolledWindow();
     upcomingPickupsScrolledWindow.Name       = "upcomingPickupsScrolledWindow";
     upcomingPickupsScrolledWindow.ShadowType = ShadowType.In;
     // Container child upcomingPickupsScrolledWindow.Container+ContainerChild
     upcomingPickupsTreeview          = new TreeView();
     upcomingPickupsTreeview.CanFocus = true;
     upcomingPickupsTreeview.Name     = "upcomingPickupsTreeview";
     upcomingPickupsScrolledWindow.Add(upcomingPickupsTreeview);
     upcomingPickupsAlignment.Add(upcomingPickupsScrolledWindow);
     upcomingPickupsFrame.Add(upcomingPickupsAlignment);
     upcomingPickupsLabel             = new Label();
     upcomingPickupsLabel.Name        = "upcomingPickupsLabel";
     upcomingPickupsLabel.LabelProp   = "<b>Upcoming Pickups</b>";
     upcomingPickupsLabel.UseMarkup   = true;
     upcomingPickupsFrame.LabelWidget = upcomingPickupsLabel;
     appointmentsTabHPaned.Add(upcomingPickupsFrame);
     notebook.Add(appointmentsTabHPaned);
     // Notebook tab
     appointmentsTabLabel           = new Label();
     appointmentsTabLabel.Name      = "appointmentsTabLabel";
     appointmentsTabLabel.LabelProp = "Appointments";
     notebook.SetTabLabel(appointmentsTabHPaned, appointmentsTabLabel);
     appointmentsTabLabel.ShowAll();
     // Container child notebook.Notebook+NotebookChild
     customerTabVbox         = new VBox();
     customerTabVbox.Name    = "customerTabVbox";
     customerTabVbox.Spacing = 6;
     // Container child customerTabVbox.Box+BoxChild
     hbox1         = new HBox();
     hbox1.Name    = "hbox1";
     hbox1.Spacing = 6;
     // Container child hbox1.Box+BoxChild
     customerSearchLabel           = new Label();
     customerSearchLabel.Name      = "customerSearchLabel";
     customerSearchLabel.LabelProp = "Search";
     hbox1.Add(customerSearchLabel);
     Box.BoxChild w13 = (Box.BoxChild)hbox1[customerSearchLabel];
     w13.Position = 0;
     w13.Expand   = false;
     w13.Fill     = false;
     // Container child hbox1.Box+BoxChild
     customerSearchEntry            = new Entry();
     customerSearchEntry.CanFocus   = true;
     customerSearchEntry.Name       = "customerSearchEntry";
     customerSearchEntry.IsEditable = true;
     hbox1.Add(customerSearchEntry);
     Box.BoxChild w14 = (Box.BoxChild)hbox1[customerSearchEntry];
     w14.Position = 1;
     customerTabVbox.Add(hbox1);
     Box.BoxChild w15 = (Box.BoxChild)customerTabVbox[hbox1];
     w15.Position = 0;
     w15.Expand   = false;
     w15.Fill     = false;
     // Container child customerTabVbox.Box+BoxChild
     customersScrolledWindow            = new ScrolledWindow();
     customersScrolledWindow.Name       = "customersScrolledWindow";
     customersScrolledWindow.ShadowType = ShadowType.In;
     // Container child customersScrolledWindow.Container+ContainerChild
     customersTreeview          = new TreeView();
     customersTreeview.CanFocus = true;
     customersTreeview.Name     = "customersTreeview";
     customersScrolledWindow.Add(customersTreeview);
     customerTabVbox.Add(customersScrolledWindow);
     Box.BoxChild w17 = (Box.BoxChild)customerTabVbox[customersScrolledWindow];
     w17.Position = 1;
     notebook.Add(customerTabVbox);
     Notebook.NotebookChild w18 = (Notebook.NotebookChild)notebook[customerTabVbox];
     w18.Position = 1;
     // Notebook tab
     customerTabLabel           = new Label();
     customerTabLabel.Name      = "customerTabLabel";
     customerTabLabel.LabelProp = "Customers";
     notebook.SetTabLabel(customerTabVbox, customerTabLabel);
     customerTabLabel.ShowAll();
     // Container child notebook.Notebook+NotebookChild
     historyTablVbox         = new VBox();
     historyTablVbox.Name    = "historyTablVbox";
     historyTablVbox.Spacing = 6;
     // Container child historyTablVbox.Box+BoxChild
     historySearchHbox         = new HBox();
     historySearchHbox.Name    = "historySearchHbox";
     historySearchHbox.Spacing = 6;
     // Container child historySearchHbox.Box+BoxChild
     historySearchLabel           = new Label();
     historySearchLabel.Name      = "historySearchLabel";
     historySearchLabel.LabelProp = "Search";
     historySearchHbox.Add(historySearchLabel);
     Box.BoxChild w19 = (Box.BoxChild)historySearchHbox[historySearchLabel];
     w19.Position = 0;
     w19.Expand   = false;
     w19.Fill     = false;
     // Container child historySearchHbox.Box+BoxChild
     historySearchEntry            = new Entry();
     historySearchEntry.CanFocus   = true;
     historySearchEntry.Name       = "historySearchEntry";
     historySearchEntry.IsEditable = true;
     historySearchHbox.Add(historySearchEntry);
     Box.BoxChild w20 = (Box.BoxChild)historySearchHbox[historySearchEntry];
     w20.Position = 1;
     historyTablVbox.Add(historySearchHbox);
     Box.BoxChild w21 = (Box.BoxChild)historyTablVbox[historySearchHbox];
     w21.Position = 0;
     w21.Expand   = false;
     w21.Fill     = false;
     // Container child historyTablVbox.Box+BoxChild
     historyScrolledWindow            = new ScrolledWindow();
     historyScrolledWindow.Name       = "historyScrolledWindow";
     historyScrolledWindow.ShadowType = ShadowType.In;
     // Container child historyScrolledWindow.Container+ContainerChild
     historyTreeview          = new TreeView();
     historyTreeview.CanFocus = true;
     historyTreeview.Name     = "historyTreeview";
     historyScrolledWindow.Add(historyTreeview);
     historyTablVbox.Add(historyScrolledWindow);
     Box.BoxChild w23 = (Box.BoxChild)historyTablVbox[historyScrolledWindow];
     w23.Position = 1;
     notebook.Add(historyTablVbox);
     Notebook.NotebookChild w24 = (Notebook.NotebookChild)notebook[historyTablVbox];
     w24.Position = 2;
     // Notebook tab
     historyTabLabel           = new Label();
     historyTabLabel.Name      = "historyTabLabel";
     historyTabLabel.LabelProp = "History";
     notebook.SetTabLabel(historyTablVbox, historyTabLabel);
     historyTabLabel.ShowAll();
     topLevelVbox.Add(notebook);
     Box.BoxChild w25 = (Box.BoxChild)topLevelVbox[notebook];
     w25.Position = 1;
     Add(topLevelVbox);
     if ((Child != null))
     {
         Child.ShowAll();
     }
     Show();
     DeleteEvent     += new DeleteEventHandler(OnDeleteEvent);
     button1.Clicked += new System.EventHandler(onNewCustomerClicked);
     button2.Clicked += new System.EventHandler(onNewApointmentButtonClicked);
     upcomingDropOffsTreeView.RowActivated += new RowActivatedHandler(onUpcomingDropOffsRowActivated);
     upcomingPickupsTreeview.RowActivated  += new RowActivatedHandler(onUpcomingPickupsRowActivated);
     customerSearchEntry.Changed           += new System.EventHandler(onCustomerSearchEntryChanged);
     customersTreeview.RowActivated        += new RowActivatedHandler(onCustomersRowActivated);
     historySearchEntry.Changed            += new System.EventHandler(onHistorySearchEntryChanged);
     historyTreeview.RowActivated          += new RowActivatedHandler(onHistoryRowActivated);
 }
Exemple #4
0
    public StryroDesign(string[] args)
    {
        Application.Init();
        store = new ListStore(typeof(string));

        window = new Window("Styro Design");
        window.SetSizeRequest(800, 600);
        window.DeleteEvent += new DeleteEventHandler(Window_Delete);

        vbox1 = new VBox();
        window.Add(vbox1);
        handlebox1 = new HandleBox();
        //vbox1.Add(handlebox1);
        menubar = new MenuBar();
        handlebox1.Add(menubar);
        hpan = new HPaned();
        vbox1.Add(hpan);

        vbox2 = new VBox();
        hpan.Add(vbox2);
        swin1 = new ScrolledWindow();
        vbox2.Add(swin1);
        vport1 = new Viewport();
        swin1.Add(vport1);
        treeview1 = new TreeView();
        vport1.Add(treeview1);
        vbuttonbox1             = new VButtonBox();
        vbuttonbox1.BorderWidth = 5;
        vbuttonbox1.Spacing     = 5;
        vbox2.Add(vbuttonbox1);
        vbox2.SetChildPacking(vbuttonbox1, false, false, 5, Gtk.PackType.Start);

        entry1 = new Entry();
        vbuttonbox1.Add(entry1);

        buttonAdd       = new Button();
        buttonAdd.Label = "Hinzufgen";
        vbuttonbox1.Add(buttonAdd);
        vbuttonbox1.Layout = ButtonBoxStyle.Start;

        swin = new ScrolledWindow();
        hpan.Add(swin);
        vport2 = new Viewport();
        swin.Add(vport2);
        drawing = new Display(0.3f, 2000, 2000, store);
        vport2.Add(drawing);

        treeview1.HeadersVisible = true;
        buttonAdd.Clicked       += new EventHandler(OnAddClicked);
        TreeViewColumn col  = new TreeViewColumn();
        CellRenderer   cell = new CellRendererText();

        col.Title = "Befehl";
        col.PackStart(cell, true);
        col.AddAttribute(cell, "text", 0);
        treeview1.AppendColumn(col);

        treeview1.Model = store;

        window.ShowAll();
        Application.Run();
    }
Exemple #5
0
        private void BuildInterface()
        {
            Gui.Initialize(this);

            Name           = "ProjectWindow";
            Title          = "Projects";
            WindowPosition = WindowPosition.Center;
            Icon           = new Pixbuf(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, !ApplicationHelper.IsUnix ? @"Content\img\todo.png": @"Content/img/todo.png"));

            var uiManager = new UIManager();

            var actionGrp = new ActionGroup("Default");

            var mainMenu = new MenuBar
            {
                Name = "mainMenu"
            };

            var fileMenu = new Menu();

            var fileMenuItem = new MenuItem("_File")
            {
                Name    = "fileMenuItem",
                Submenu = fileMenu
            };

            #region Menubar items

            var fileNewMenuItem = new MenuItem("_New");
            fileNewMenuItem.Activated += FileNewMenuItem_OnActivated;
            fileMenu.Append(fileNewMenuItem);

            var fileOpenMenuItem = new MenuItem("_Open");
            fileOpenMenuItem.Activated += OpenActionOnActivated;
            fileMenu.Append(fileOpenMenuItem);

            var fileSaveMenuItem = new MenuItem("_Save");
            fileMenu.Append(fileSaveMenuItem);
            fileSaveMenuItem.Activated += SaveItem_OnActivated;

            var hsepfilemenu = new SeparatorMenuItem {
                Name = "FileMenuSeparator"
            };
            fileMenu.Append(hsepfilemenu);

            var fileExitMenuItem = new MenuItem("_Exit");
            fileExitMenuItem.Activated += fileExitMenuItem_Clicked;
            fileMenu.Append(fileExitMenuItem);

            var windowPane = new HPaned();

            mainMenu.Append(fileMenuItem);

            _addCategoryAction = new Action("addCategoryAction",
                                            "New _Category", "Add a new category", "CircledPlus");
            _addCategoryAction.Activated += AddCategory_Clicked;
            actionGrp.Add(_addCategoryAction, null);

            _removeCategoryAction = new Action("removeCategoryAction",
                                               "_Remove Category", "Remove the selected category", "CircledMinus");
            _removeCategoryAction.Activated += DeleteCategory_Clicked;
            actionGrp.Add(_removeCategoryAction, null);

            _addTaskItemAction = new Action("addTaskItemAction",
                                            "New _Task", "Add a new task", "CircledPlus");
            _addTaskItemAction.Activated += AddTaskItem_Clicked;
            actionGrp.Add(_addTaskItemAction, null);

            _modifyTaskItemAction = new Action("modifyTaskItemAction",
                                               "Modify_Task", "Modify task", "CircledPlus");
            _modifyTaskItemAction.Activated += ModifyTaskItemActionOnActivated;
            actionGrp.Add(_modifyTaskItemAction, null);

            _removeTaskItemAction = new Action("removeTaskItemAction",
                                               "Remove Task", "Removes the selected task", "CircledMinus");
            _removeTaskItemAction.Activated += DeleteTaskItem_Clicked;
            actionGrp.Add(_removeTaskItemAction, null);

            uiManager.InsertActionGroup(actionGrp, 0);

            AddAccelGroup(uiManager.AccelGroup);

            #endregion

            var windowContainer = new VBox
            {
                Name    = "mainWindowContainer",
                Spacing = 3
            };

            _categorySidebar = new VBox
            {
                Name         = "categorySidebar",
                Spacing      = 6,
                ResizeMode   = ResizeMode.Parent,
                WidthRequest = 210
            };

            uiManager.AddUiFromString(
                "<ui>" +
                "<toolbar name='categoryToolbar'>" +
                "<toolitem name='addCategoryAction' action='addCategoryAction'/>" +
                "<toolitem name='removeCategoryAction' action='removeCategoryAction'/>" +
                "</toolbar>" +
                "</ui>");

            _categoryToolbar           = (Toolbar)uiManager.GetWidget("/categoryToolbar");
            _categoryToolbar.Events    = (EventMask)8992;
            _categoryToolbar.Name      = "catToolbar";
            _categoryToolbar.ShowArrow = false;

            var calendarExpander = new Expander(null)
            {
                CanFocus = true,
                Name     = "CategoryExpander",
                Expanded = true
            };

            _calendar = new Calendar
            {
                CanFocus       = true,
                Name           = "calendar",
                DisplayOptions = (CalendarDisplayOptions)35
            };
            _calendar.MonthChanged += Calendar_MonthChanged;

            calendarExpander.Add(_calendar);

            var calendarExpanderLabel = new Label
            {
                Name         = "CalendarExpanderLabel",
                LabelProp    = "Calendar",
                UseUnderline = true
            };

            calendarExpander.LabelWidget = calendarExpanderLabel;

            var categoryExpander = new Expander(null)
            {
                CanFocus = true,
                Name     = "CategoryExpander",
                Expanded = true
            };

            var categoryExpanderContainer = new VBox
            {
                Name    = "categoryExpanderContainer",
                Spacing = 3
            };

            var categoryPane = new VPaned();

            var categoryContainer = new ScrolledWindow
            {
                Name             = "CategoryContainer",
                ShadowType       = ShadowType.None,
                HscrollbarPolicy = PolicyType.Automatic,
                VscrollbarPolicy = PolicyType.Automatic
            };

            categoryContainer.HScrollbar.Visible = true;
            categoryContainer.VScrollbar.Visible = true;

            var categoryContainerLabel = new Label
            {
                Name = "CategoryContainerLabel"
            };

            var categoryDescriptionScroll = new ScrolledWindow
            {
                Name             = "categoryDescriptionScroll",
                ShadowType       = (ShadowType)1,
                VscrollbarPolicy = PolicyType.Automatic,
                HscrollbarPolicy = PolicyType.Automatic
            };

            var descriptionHBox = new VBox
            {
                Name      = "descriptionHBox",
                HasWindow = false
            };

            var descriptionFixed = new Fixed
            {
                Name      = "descriptionFixed",
                HasWindow = false
            };

            _categoryDescriptionLabel = new Label
            {
                Name = "categoryDescriptionLabel",
                Text = "Description"
            };

            _categoryDescription = new TextView
            {
                Name          = "categoryDescription",
                BorderWidth   = 2,
                Editable      = false,
                WrapMode      = WrapMode.WordChar,
                HscrollPolicy = ScrollablePolicy.Natural,
                Buffer        = { Text = "No category selected\n\rDouble click a category to show its description." }
            };

            var noteBookContainer = new VBox
            {
                Name    = "NotebookContainer",
                Spacing = 3,
                Margin  = 5
            };

            _noteBook = new Notebook
            {
                Scrollable = true
            };

            noteBookContainer.Add(_noteBook);
            var noteBookContainerChild = (Box.BoxChild)noteBookContainer[_noteBook];
            noteBookContainerChild.Expand = true;
            noteBookContainerChild.Fill   = true;

            var taskViewContainer = new VBox
            {
                Name    = "TaskTableListContainer",
                Spacing = 3
            };

            uiManager.AddUiFromString(
                "<ui>" +
                "<toolbar name='taskToolbar'>" +
                "<toolitem name='addTaskItemAction' action='addTaskItemAction'/>" +
                "<toolitem name='modifyTaskItemAction' action='modifyTaskItemAction'/>" +
                "<toolitem name='removeTaskItemAction' action='removeTaskItemAction'/>" +
                "</toolbar>" +
                "</ui>");

            var taskToolbar = (Toolbar)uiManager.GetWidget("/taskToolbar");
            taskToolbar.Events    = (EventMask)8992;
            taskToolbar.Name      = "taskToolbar";
            taskToolbar.ShowArrow = false;

            var recordsWindow = new ScrolledWindow
            {
                Name             = "recordsWindow",
                ShadowType       = (ShadowType)1,
                VscrollbarPolicy = PolicyType.Automatic,
                HscrollbarPolicy = PolicyType.Automatic
            };

            #region Category table properties

            _categoryTreeView = new TreeView();

            _categoryItemId = new TreeViewColumn
            {
                Title     = "ID",
                Resizable = true,
                Visible   = false
            };

            var categoryIdCell = new CellRendererText();
            _categoryItemId.PackStart(categoryIdCell, false);
            _categoryItemId.SetCellDataFunc(categoryIdCell, RenderCategoryId);

            _categoryItemName = new TreeViewColumn {
                Title = "Category", Resizable = true
            };
            var categoryNameCell = new CellRendererText();
            _categoryItemName.PackStart(categoryNameCell, false);
            _categoryItemName.SetCellDataFunc(categoryNameCell, RenderCategoryName);
            categoryNameCell.Edited += CategoryItemNameCell_Edited;

            _categoryItemToggle = new TreeViewColumn {
                Title = "Show", Resizable = true
            };
            var categoryToggleCell = new CellRendererToggle();
            _categoryItemToggle.PackStart(categoryToggleCell, false);
            _categoryItemToggle.SetCellDataFunc(categoryToggleCell, RenderCategoryToggle);
            categoryToggleCell.Toggled += CategoryItem_Toggled;

            _categoryStore          = new ListStore(typeof(Category));
            _categoryTreeView.Model = _categoryStore;

            _categoryTreeView.AppendColumn(_categoryItemId);
            _categoryTreeView.AppendColumn(_categoryItemName);
            _categoryTreeView.AppendColumn(_categoryItemToggle);
            _categoryTreeView.RowActivated += CategoryTreeView_RowActivated;

            #endregion categoryTable_properties

            #region MainView properties

            _mainView = new TreeView();

            _taskId = new TreeViewColumn
            {
                Title     = "ID",
                Resizable = true,
#if !DEBUG
                Visible = false
#endif
#if DEBUG
                Visible = true
                #endif
            };

            var taslIdCell = new CellRendererText();
            _taskId.PackStart(taslIdCell, false);
            _taskId.SetCellDataFunc(taslIdCell, RenderTaskItemId);

            _taskName = new TreeViewColumn {
                Title = "Title", Resizable = true
            };
            var taskNameCell = new CellRendererText();
            _taskName.PackStart(taskNameCell, false);

            _taskName.SetCellDataFunc(taskNameCell, RenderTaskItemName);

            _taskCategory = new TreeViewColumn {
                Title = "Category", Resizable = true
            };
            var taskCategoryCell = new CellRendererText();
            _taskCategory.PackStart(taskCategoryCell, false);
            _taskCategory.SetCellDataFunc(taskCategoryCell, RenderTaskItemCategory);

            _taskPriority = new TreeViewColumn {
                Title = "Priority", Resizable = true
            };
            var taskPriorityCell = new CellRendererText();
            _taskPriority.PackStart(taskPriorityCell, false);
            _taskPriority.SetCellDataFunc(taskPriorityCell, RenderTaskItemPriority);

            _taskStartDate = new TreeViewColumn {
                Title = "Start Date", Resizable = true
            };
            var taskStartCell = new CellRendererText();
            _taskStartDate.PackStart(taskStartCell, false);
            _taskStartDate.SetCellDataFunc(taskStartCell, RenderTaskItemStart);

            _taskDueDate = new TreeViewColumn {
                Title = "Due Date", Resizable = true
            };
            var taskDueCell = new CellRendererText();
            _taskDueDate.PackStart(taskDueCell, true);
            _taskDueDate.SetCellDataFunc(taskDueCell, RenderTaskItemFinish);

            _taskStore = new ListStore(typeof(Activity));

            _mainView.Model = _taskStore;

            _mainView.AppendColumn(_taskId);
            _mainView.AppendColumn(_taskName);
            _mainView.AppendColumn(_taskCategory);
            _mainView.AppendColumn(_taskPriority);
            _mainView.AppendColumn(_taskStartDate);
            _mainView.AppendColumn(_taskDueDate);

            #endregion

            _fileActionProgBar = new ProgressBar
            {
                Name    = "fileActionProgBar",
                Visible = false
            };

            windowContainer.Add(mainMenu);

            var menuChild = (Box.BoxChild)windowContainer[mainMenu];
            menuChild.Fill   = false;
            menuChild.Expand = false;

            _categorySidebar.Add(calendarExpander);

            var sidebarChild = (Box.BoxChild)_categorySidebar[calendarExpander];
            sidebarChild.Position = 0;
            sidebarChild.Expand   = false;
            sidebarChild.Fill     = false;

            categoryExpanderContainer.Add(_categoryToolbar);
            categoryExpanderContainer.Add(_categoryTreeView);

            var toolbarChild = (Box.BoxChild)categoryExpanderContainer[_categoryToolbar];
            toolbarChild.Expand = false;
            toolbarChild.Fill   = false;


            categoryPane.Add(categoryContainer);
            categoryPane.Expand = true;

            var paneContainerChild = (Paned.PanedChild)categoryPane[categoryContainer];
            paneContainerChild.Resize = true;

            categoryContainer.AddWithViewport(categoryExpanderContainer);
            categoryContainerLabel.LabelProp    = "Categories";
            categoryContainerLabel.UseUnderline = true;
            categoryExpander.LabelWidget        = categoryContainerLabel;

            categoryPane.Add(descriptionHBox);

            var descriptionContainerChild = (Paned.PanedChild)categoryPane[descriptionHBox];
            descriptionContainerChild.Resize = true;
            categoryExpander.Add(categoryPane);


            descriptionHBox.Add(descriptionFixed);

            var descriptionFixedChild = (Box.BoxChild)descriptionHBox[descriptionFixed];
            descriptionFixedChild.Expand  = false;
            descriptionFixedChild.Padding = 5;

            descriptionFixed.Add(_categoryDescriptionLabel);

            var descriptionLabelChild = (Fixed.FixedChild)descriptionFixed[_categoryDescriptionLabel];
            descriptionLabelChild.X = 5;
            descriptionLabelChild.Y = 0;

            descriptionHBox.Add(categoryDescriptionScroll);

            var descriptionViewChild = (Box.BoxChild)descriptionHBox[categoryDescriptionScroll];
            descriptionViewChild.Expand = true;

            categoryDescriptionScroll.Add(_categoryDescription);

            categoryDescriptionScroll.AddWithViewport(_categoryDescription);

            _categorySidebar.Add(categoryExpander);

            var sidebarchild = (Box.BoxChild)_categorySidebar[categoryExpander];
            sidebarchild.Position = 1;

            windowPane.Add(_categorySidebar);

            taskViewContainer.Add(taskToolbar);

            var taskbarChild = (Box.BoxChild)taskViewContainer[taskToolbar];
            taskbarChild.Fill   = false;
            taskbarChild.Expand = false;

            recordsWindow.Add(_mainView);

            recordsWindow.AddWithViewport(_mainView);

            taskViewContainer.Add(recordsWindow);

            taskViewContainer.Add(_fileActionProgBar);

            var barChild = (Box.BoxChild)taskViewContainer[_fileActionProgBar];
            barChild.Expand = false;
            barChild.Fill   = false;

            _noteBook.AppendPage(taskViewContainer, new Label("Task List"));
            var taskContainerNoteBookContainer = (Notebook.NotebookChild)_noteBook[taskViewContainer];
            taskContainerNoteBookContainer.TabFill    = true;
            taskContainerNoteBookContainer.Detachable = false;

            windowPane.Add(noteBookContainer);

            windowContainer.Add(windowPane);

            Add(windowContainer);

            SetSizeRequest(800, 600);

            DestroyEvent += ProjectWindow_DestroyEvent;
            DeleteEvent  += OnDeleteEvent;
            ShowAll();

            _fileActionProgBar.Visible = false;
        }
    }
        protected virtual void Build()
        {
            MonoDevelop.Components.Gui.Initialize(this);
            // Widget MonoDevelop.VersionControl.Views.LogWidget
            var w1 = MonoDevelop.Components.BinContainer.Attach(this);

            this.UIManager = new global::Gtk.UIManager();
            global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup("Default");
            this.UIManager.InsertActionGroup(w2, 0);
            this.Name = "MonoDevelop.VersionControl.Views.LogWidget";
            // Container child MonoDevelop.VersionControl.Views.LogWidget.Gtk.Container+ContainerChild
            this.vbox1         = new global::Gtk.VBox();
            this.vbox1.Name    = "vbox1";
            this.vbox1.Spacing = 6;
            // Container child vbox1.Gtk.Box+BoxChild
            this.vpaned1          = new global::Gtk.VPaned();
            this.vpaned1.CanFocus = true;
            this.vpaned1.Name     = "vpaned1";
            this.vpaned1.Position = 204;
            // Container child vpaned1.Gtk.Paned+PanedChild
            this.hpaned1          = new global::Gtk.HPaned();
            this.hpaned1.CanFocus = true;
            this.hpaned1.Name     = "hpaned1";
            this.hpaned1.Position = 236;
            // Container child hpaned1.Gtk.Paned+PanedChild
            this.vbox4         = new global::Gtk.VBox();
            this.vbox4.Name    = "vbox4";
            this.vbox4.Spacing = 6;
            // Container child vbox4.Gtk.Box+BoxChild
            this.scrolledLoading          = new global::Gtk.ScrolledWindow();
            this.scrolledLoading.CanFocus = true;
            this.scrolledLoading.Name     = "scrolledLoading";
            // Container child scrolledLoading.Gtk.Container+ContainerChild
            global::Gtk.Viewport w3 = new global::Gtk.Viewport();
            w3.ShadowType = ((global::Gtk.ShadowType)(0));
            // Container child GtkViewport1.Gtk.Container+ContainerChild
            this.label3           = new global::Gtk.Label();
            this.label3.Name      = "label3";
            this.label3.LabelProp = global::Mono.Unix.Catalog.GetString("Loading...");
            w3.Add(this.label3);
            this.scrolledLoading.Add(w3);
            this.vbox4.Add(this.scrolledLoading);
            global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.scrolledLoading]));
            w6.Position = 0;
            // Container child vbox4.Gtk.Box+BoxChild
            this.scrolledLog      = new global::Gtk.ScrolledWindow();
            this.scrolledLog.Name = "scrolledLog";
            // Container child scrolledLog.Gtk.Container+ContainerChild
            this.treeviewLog          = new global::Gtk.TreeView();
            this.treeviewLog.CanFocus = true;
            this.treeviewLog.Name     = "treeviewLog";
            this.scrolledLog.Add(this.treeviewLog);
            this.vbox4.Add(this.scrolledLog);
            global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.scrolledLog]));
            w8.Position = 1;
            this.hpaned1.Add(this.vbox4);
            global::Gtk.Paned.PanedChild w9 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.vbox4]));
            w9.Resize = false;
            // Container child hpaned1.Gtk.Paned+PanedChild
            this.vbox2      = new global::Gtk.VBox();
            this.vbox2.Name = "vbox2";
            // Container child vbox2.Gtk.Box+BoxChild
            this.commitBox      = new global::Gtk.EventBox();
            this.commitBox.Name = "commitBox";
            // Container child commitBox.Gtk.Container+ContainerChild
            this.hbox1             = new global::Gtk.HBox();
            this.hbox1.Name        = "hbox1";
            this.hbox1.Spacing     = 6;
            this.hbox1.BorderWidth = ((uint)(8));
            // Container child hbox1.Gtk.Box+BoxChild
            this.imageUser = new global::Gtk.Image();
            this.imageUser.WidthRequest  = 32;
            this.imageUser.HeightRequest = 32;
            this.imageUser.Name          = "imageUser";
            this.hbox1.Add(this.imageUser);
            global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.imageUser]));
            w10.Position = 0;
            w10.Expand   = false;
            w10.Fill     = false;
            // Container child hbox1.Gtk.Box+BoxChild
            this.vbox5         = new global::Gtk.VBox();
            this.vbox5.Name    = "vbox5";
            this.vbox5.Spacing = 6;
            // Container child vbox5.Gtk.Box+BoxChild
            this.hbox2         = new global::Gtk.HBox();
            this.hbox2.Name    = "hbox2";
            this.hbox2.Spacing = 6;
            // Container child hbox2.Gtk.Box+BoxChild
            this.labelAuthor            = new global::Gtk.Label();
            this.labelAuthor.Name       = "labelAuthor";
            this.labelAuthor.Xalign     = 0F;
            this.labelAuthor.LabelProp  = global::Mono.Unix.Catalog.GetString("Author");
            this.labelAuthor.Selectable = true;
            this.hbox2.Add(this.labelAuthor);
            global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.labelAuthor]));
            w11.Position = 0;
            w11.Expand   = false;
            w11.Fill     = false;
            // Container child hbox2.Gtk.Box+BoxChild
            this.labelRevision            = new global::Gtk.Label();
            this.labelRevision.Name       = "labelRevision";
            this.labelRevision.Xalign     = 1F;
            this.labelRevision.LabelProp  = global::Mono.Unix.Catalog.GetString("Revision");
            this.labelRevision.Selectable = true;
            this.hbox2.Add(this.labelRevision);
            global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.labelRevision]));
            w12.Position = 1;
            this.vbox5.Add(this.hbox2);
            global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.hbox2]));
            w13.Position = 0;
            w13.Expand   = false;
            w13.Fill     = false;
            // Container child vbox5.Gtk.Box+BoxChild
            this.labelDate            = new global::Gtk.Label();
            this.labelDate.Name       = "labelDate";
            this.labelDate.Xalign     = 0F;
            this.labelDate.LabelProp  = global::Mono.Unix.Catalog.GetString("Date");
            this.labelDate.Selectable = true;
            this.vbox5.Add(this.labelDate);
            global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.labelDate]));
            w14.Position = 1;
            w14.Expand   = false;
            w14.Fill     = false;
            this.hbox1.Add(this.vbox5);
            global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox5]));
            w15.Position = 1;
            this.commitBox.Add(this.hbox1);
            this.vbox2.Add(this.commitBox);
            global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.commitBox]));
            w17.Position = 0;
            w17.Expand   = false;
            w17.Fill     = false;
            // Container child vbox2.Gtk.Box+BoxChild
            this.scrolledwindow1          = new global::Gtk.ScrolledWindow();
            this.scrolledwindow1.CanFocus = true;
            this.scrolledwindow1.Name     = "scrolledwindow1";
            // Container child scrolledwindow1.Gtk.Container+ContainerChild
            this.textviewDetails          = new global::Gtk.TextView();
            this.textviewDetails.CanFocus = true;
            this.textviewDetails.Name     = "textviewDetails";
            this.textviewDetails.Editable = false;
            this.scrolledwindow1.Add(this.textviewDetails);
            this.vbox2.Add(this.scrolledwindow1);
            global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.scrolledwindow1]));
            w19.Position = 1;
            this.hpaned1.Add(this.vbox2);
            this.vpaned1.Add(this.hpaned1);
            global::Gtk.Paned.PanedChild w21 = ((global::Gtk.Paned.PanedChild)(this.vpaned1 [this.hpaned1]));
            w21.Resize = false;
            // Container child vpaned1.Gtk.Paned+PanedChild
            this.scrolledwindowFiles          = new global::Gtk.ScrolledWindow();
            this.scrolledwindowFiles.CanFocus = true;
            this.scrolledwindowFiles.Name     = "scrolledwindowFiles";
            this.fileHPaned          = new HPaned();
            this.fileHPaned.Position = 333;

            fileHPaned.Add(this.scrolledwindowFiles);
            vboxFileContents         = new VBox();
            labelFilePathName.Xalign = 0f;
            vboxFileContents.PackStart(labelFilePathName, false, true, 6);
            vboxFileContents.PackStart(scrolledwindowFileContents, true, true, 0);
            fileHPaned.Add(vboxFileContents);

            this.vpaned1.Add(fileHPaned);
            this.vbox1.Add(this.vpaned1);
            global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.vpaned1]));
            w23.Position = 0;
            this.Add(this.vbox1);
            if ((this.Child != null))
            {
                this.Child.ShowAll();
            }
            w1.SetUiManager(UIManager);
            this.scrolledLoading.Hide();
            this.Show();
        }