示例#1
0
        public ExploreView(ICredentialsProvider credentialsProvider,
                           int stopAfter) : base(false, 1)
        {
            this.credentialsProvider = credentialsProvider;

            HPaned hPaned = new HPaned();

            Add(hPaned);

            {
                ScrolledWindowBase scrolledWindow1 = new ScrolledWindowBase();
                hPaned.Add1(scrolledWindow1);

                repositoryView = new RepositoryView(this, credentialsProvider);
                scrolledWindow1.Add(repositoryView);
            }

            viewChildren = new VPaned();
            {
                ScrolledWindowBase scrolledWindow2 = new ScrolledWindowBase();
                viewChildren.Pack1(scrolledWindow2, true, true);

                directoryView = new DirectoryView(this);
                scrolledWindow2.Add(directoryView);

                ScrolledWindowBase scrolledWindow3 = new ScrolledWindowBase();
                viewChildren.Pack2(scrolledWindow3, true, true);

                changesetView = new ChangesetView(this, stopAfter);
                scrolledWindow3.Add(changesetView);

                int x, y, width, height, depth;
                RootWindow.GetGeometry(out x, out y, out width, out height, out depth);

                hPaned.Add2(viewChildren);
                hPaned.Position = (width - 50) / 3;
            }

            // add status bar
            statusbar = new Statusbar();
            statusbar.HasResizeGrip = false;
            PackEnd(statusbar, false, false, 1);

            Assembly entry = Assembly.GetEntryAssembly();

            StatusMessage(String.Format("{0} version {1}", entry.GetName().Name,
                                        entry.GetName().Version.ToString()));

            ShowAll();
            repositoryView.Selection.Changed += OnPathSelectionChanged;
        }
示例#2
0
        public ExploreView(ICredentialsProvider credentialsProvider,
											 int stopAfter)
            : base(false, 1)
        {
            this.credentialsProvider = credentialsProvider;

                HPaned hPaned = new HPaned();
                Add(hPaned);

                {
                    ScrolledWindowBase scrolledWindow1 = new ScrolledWindowBase();
                    hPaned.Add1(scrolledWindow1);

                    repositoryView = new RepositoryView(this, credentialsProvider);
                    scrolledWindow1.Add(repositoryView);
                }

                viewChildren = new VPaned();
                {
                    ScrolledWindowBase scrolledWindow2 = new ScrolledWindowBase();
                    viewChildren.Pack1(scrolledWindow2, true, true);

                    directoryView = new DirectoryView(this);
                    scrolledWindow2.Add(directoryView);

                    ScrolledWindowBase scrolledWindow3 = new ScrolledWindowBase();
                    viewChildren.Pack2(scrolledWindow3, true, true);

                    changesetView = new ChangesetView(this, stopAfter);
                    scrolledWindow3.Add(changesetView);

                    int x, y, width, height, depth;
                    RootWindow.GetGeometry (out x, out y, out width, out height, out depth);

                    hPaned.Add2(viewChildren);
                    hPaned.Position = (width - 50) / 3;
                }

                // add status bar
                statusbar = new Statusbar ();
                statusbar.HasResizeGrip = false;
                PackEnd(statusbar, false, false, 1);

                Assembly entry = Assembly.GetEntryAssembly();
                StatusMessage(String.Format("{0} version {1}", entry.GetName().Name,
                                                                        entry.GetName().Version.ToString()));

                ShowAll();
                repositoryView.Selection.Changed += OnPathSelectionChanged;
        }