public ExploreView(Driver driver, int stopAfter) : base("Explore") { int x, y, width, height, depth; RootWindow.GetGeometry(out x, out y, out width, out height, out depth); SetDefaultSize(width - 50, height - 40); VBox vBox = new VBox(false, 1); Add(vBox); HPaned hPaned = new HPaned(); vBox.Add(hPaned); ScrolledWindow scrolledWindow = new ScrolledWindow(); //scrolledWindow.SetDefaultSize (Convert.ToInt32((width - 50) * 0.4), height -40); hPaned.Add1(scrolledWindow); repositoryView = new RepositoryView(driver); scrolledWindow.Add(repositoryView); viewChildren = new Notebook(); changesetView = new ChangesetView(driver, stopAfter); viewChildren.AppendPage(changesetView, new Label("Changeset View")); directoryView = new DirectoryView(driver); viewChildren.AppendPage(directoryView, new Label("Directory View")); fileView = new FileView(driver); viewChildren.AppendPage(fileView, new Label("File View")); hPaned.Add2(viewChildren); hPaned.Position = (width - 50) / 3; // add status bar Statusbar sb = new Statusbar(); sb.HasResizeGrip = false; vBox.PackEnd(sb, false, false, 1); ShowAll(); repositoryView.Selection.Changed += OnPathSelectionChanged; viewChildren.SwitchPage += OnSwitchPage; }
public ExploreView(Driver driver, int stopAfter) : base("Explore") { int x, y, width, height, depth; RootWindow.GetGeometry (out x, out y, out width, out height, out depth); SetDefaultSize (width - 50, height - 40); VBox vBox = new VBox(false, 1); Add(vBox); HPaned hPaned = new HPaned(); vBox.Add(hPaned); ScrolledWindow scrolledWindow = new ScrolledWindow(); //scrolledWindow.SetDefaultSize (Convert.ToInt32((width - 50) * 0.4), height -40); hPaned.Add1(scrolledWindow); repositoryView = new RepositoryView(driver); scrolledWindow.Add(repositoryView); viewChildren = new Notebook (); changesetView = new ChangesetView(driver, stopAfter); viewChildren.AppendPage (changesetView, new Label ("Changeset View")); directoryView = new DirectoryView(driver); viewChildren.AppendPage (directoryView, new Label ("Directory View")); fileView = new FileView(driver); viewChildren.AppendPage (fileView, new Label ("File View")); hPaned.Add2(viewChildren); hPaned.Position = (width - 50) / 3; // add status bar Statusbar sb = new Statusbar (); sb.HasResizeGrip = false; vBox.PackEnd(sb, false, false, 1); ShowAll(); repositoryView.Selection.Changed += OnPathSelectionChanged; viewChildren.SwitchPage += OnSwitchPage; }