Exemplo n.º 1
0
 public HistoryView(GuiProvider gui)
     : base(Guids.HistoryViewGuid, gui)
 {
     RevisionListBox.PreviewKeyDown += OnKeyDown;
     Text = Resources.StrHistory;
     AddTopToolStrip(_toolbar = new HistoryToolbar(this));
 }
Exemplo n.º 2
0
        public BlameView(GuiProvider gui)
            : base(Guids.BlameViewGuid, gui)
        {
            InitializeComponent();

            Text = Resources.StrlBlame;
        }
Exemplo n.º 3
0
        public MaintenanceView(GuiProvider gui)
            : base(Guids.MaintenanceViewGuid, gui)
        {
            InitializeComponent();

            Text = Resources.StrMaintenance;
        }
Exemplo n.º 4
0
 public PathHistoryView(GuiProvider gui)
     : base(Guids.PathHistoryViewGuid, gui)
 {
     RemoveGraphColumn();
     RevisionListBox.PreviewKeyDown += OnKeyDown;
     AddTopToolStrip(_toolBar = new PathHistoryToolbar(this));
 }
Exemplo n.º 5
0
        public GitView(GuiProvider gui)
            : base(Guids.GitViewGuid, gui)
        {
            InitializeComponent();

            Text = Resources.StrGit;
        }
Exemplo n.º 6
0
        public CommitViewFactory(GuiProvider guiProvider)
            : base(Guids.CommitViewGuid, Resources.StrCommit, CachedResources.Bitmaps["ImgCommit"])
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
        }
Exemplo n.º 7
0
        public BlameViewFactory(GuiProvider guiProvider)
            : base(Guids.BlameViewGuid, Resources.StrBlame, CachedResources.Bitmaps["ImgBlame"], false)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
        }
Exemplo n.º 8
0
        public GitViewBase(Guid guid, GuiProvider guiProvider)
            : base(guid, guiProvider.Environment)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _gui = guiProvider;
            _repository = guiProvider.Repository;
        }
Exemplo n.º 9
0
        //private ReferencesSearchToolBar _searchToolbar;
        public ReferencesView(GuiProvider gui)
            : base(Guids.ReferencesViewGuid, gui)
        {
            InitializeComponent();
            _lstReferences.Columns.ShowAll((c) => c.Id != (int)ColumnId.TreeHash);
            _lstReferences.PreviewKeyDown += OnKeyDown;

            Text = Resources.StrReferences;

            AddTopToolStrip(_toolbar = new ReferencesToolbar(this));
        }
Exemplo n.º 10
0
        public SubmodulesView(GuiProvider gui)
            : base(Guids.SubmodulesViewGuid, gui)
        {
            InitializeComponent();

            Text = Resources.StrSubmodules;
            _lstSubmodules.Text = Resources.StrsNoSubmodules;
            _lstSubmodules.PreviewKeyDown += OnKeyDown;

            AddTopToolStrip(_toolBar = new SubmodulesToolbar(this));
        }
Exemplo n.º 11
0
        public DiffView(Guid guid, GuiProvider gui)
            : base(guid, gui)
        {
            InitializeComponent();

            _diffViewer.PreviewKeyDown += OnKeyDown;
            _diffViewer.DiffFileContextMenuRequested += OnDiffFileContextMenuRequested;
            _diffViewer.UntrackedFileContextMenuRequested += OnUntrackedFileContextMenuRequested;

            AddTopToolStrip(new DiffToolbar(this));
        }
Exemplo n.º 12
0
        public ConfigView(GuiProvider gui)
            : base(Guids.ConfigViewGuid, gui)
        {
            InitializeComponent();

            _lstConfig.PreviewKeyDown += OnKeyDown;

            Text = Resources.StrConfig;

            AddTopToolStrip(_toolBar = new ConfigToolBar(this));
        }
Exemplo n.º 13
0
        public RemotesView(GuiProvider gui)
            : base(Guids.RemotesViewGuid, gui)
        {
            InitializeComponent();

            Text = Resources.StrRemotes;

            _lstRemotes.Text = Resources.StrsNoRemotes;

            _lstRemotes.ItemActivated += OnItemActivated;
            _lstRemotes.PreviewKeyDown += OnKeyDown;

            AddTopToolStrip(_toolbar = new RemotesToolbar(this));
        }
Exemplo n.º 14
0
        public CommitView(GuiProvider gui)
            : base(Guids.CommitViewGuid, gui)
        {
            InitializeComponent();

            Text = Resources.StrCommit;

            _treeMode = true;

            _splitContainer.BackColor = GitterApplication.Style.Colors.WorkArea;
            _splitContainer.Panel1.BackColor = GitterApplication.Style.Colors.Window;
            _splitContainer.Panel2.BackColor = GitterApplication.Style.Colors.Window;

            _lblStaged.Text = Resources.StrsStagedChanges.AddColon();
            _lstStaged.Text = Resources.StrsNoStagedChanges;
            _lblUnstaged.Text = Resources.StrsUnstagedChanges.AddColon();
            _lstUnstaged.Text = Resources.StrsNoUnstagedChanges;
            _lblMessage.Text = Resources.StrMessage.AddColon();
            _chkAmend.Text = Resources.StrAmend;
            _btnCommit.Text = Resources.StrCommit;

            _lstStaged.PreviewKeyDown += OnKeyDown;
            _lstUnstaged.PreviewKeyDown += OnKeyDown;
            _txtMessage.PreviewKeyDown += OnKeyDown;
            _chkAmend.Control.PreviewKeyDown += OnKeyDown;
            _btnCommit.Control.PreviewKeyDown += OnKeyDown;

            if(GitterApplication.Style.Type == GitterStyleType.DarkBackground)
            {
                _txtMessage.BorderStyle = BorderStyle.FixedSingle;
            }

            GitterApplication.FontManager.InputFont.Apply(_txtMessage);

            _lstStaged.Columns[0].SizeMode = ColumnSizeMode.Auto;
            _lstUnstaged.Columns[0].SizeMode = ColumnSizeMode.Auto;

            _lstStaged.ItemActivated += OnStagedItemActivated;
            _lstUnstaged.ItemActivated += OnUnstagedItemActivated;

            _lstStaged.GotFocus += OnStagedGotFocus;
            _lstUnstaged.GotFocus += OnUnstagedGotFocus;

            for(int i = 0; i < _lstUnstaged.Columns.Count; ++i)
            {
                var column = _lstUnstaged.Columns[i];
                column.IsVisible = column.Id == (int)ColumnId.Name;
            }

            for(int i = 0; i < _lstStaged.Columns.Count; ++i)
            {
                var column = _lstStaged.Columns[i];
                column.IsVisible = column.Id == (int)ColumnId.Name;
            }

            _txtMessage.BackColor = GitterApplication.Style.Colors.Window;
            _txtMessage.ForeColor = GitterApplication.Style.Colors.WindowText;

            AddTopToolStrip(_toolbar = new CommitToolbar(this));
            _speller = new TextBoxSpellChecker(_txtMessage, true);
        }
Exemplo n.º 15
0
        public ContextualDiffViewFactory(GuiProvider guiProvider)
            : base(Guids.ContextualDiffViewGuid, Resources.StrContextualDiff, CachedResources.Bitmaps["ImgDiff"], true)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
            DefaultViewPosition = ViewPosition.SecondaryDocumentHost;
        }
Exemplo n.º 16
0
        public ContributorsViewFactory(GuiProvider guiProvider)
            : base(Guids.ContributorsViewGuid, Resources.StrContributors, CachedResources.Bitmaps["ImgUsers"], true)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
        }
Exemplo n.º 17
0
        public DiffViewFactory(GuiProvider guiProvider)
            : base(Guids.DiffViewGuid, Resources.StrDiff, CachedResources.Bitmaps["ImgDiff"], false)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
        }
Exemplo n.º 18
0
        public MaintenanceToolFactory(GuiProvider guiProvider)
            : base(Guids.MaintenanceViewGuid, Resources.StrMaintenance, CachedResources.Bitmaps["ImgMaintenance"])
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
        }
Exemplo n.º 19
0
        public TreeViewFactory(GuiProvider guiProvider)
            : base(Guids.TreeViewGuid, Resources.StrWorkingTree, CachedResources.Bitmaps["ImgFolder"], false)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
        }
Exemplo n.º 20
0
        public SubmodulesViewFactory(GuiProvider guiProvider)
            : base(Guids.SubmodulesViewGuid, Resources.StrSubmodules, CachedResources.Bitmaps["ImgSubmodule"], true)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
            DefaultViewPosition = ViewPosition.BottomAutoHide;
        }
Exemplo n.º 21
0
        public RemoteViewFactory(GuiProvider guiProvider)
            : base(Guids.RemoteViewGuid, Resources.StrRemote, CachedResources.Bitmaps["ImgRemote"], false)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
            DefaultViewPosition = ViewPosition.RootDocumentHost;
        }
Exemplo n.º 22
0
        public ReflogViewFactory(GuiProvider guiProvider)
            : base(Guids.ReflogViewGuid, Resources.StrReflog, CachedResources.Bitmaps["ImgViewReflog"], false)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
        }
Exemplo n.º 23
0
        public ReferencesViewFactory(GuiProvider guiProvider)
            : base(Guids.ReferencesViewGuid, Resources.StrReferences, CachedResources.Bitmaps["ImgBranch"], true)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
            DefaultViewPosition = ViewPosition.RootDocumentHost;
        }
Exemplo n.º 24
0
        public PathHistoryViewFactory(GuiProvider guiProvider)
            : base(Guids.PathHistoryViewGuid, Resources.StrHistory, CachedResources.Bitmaps["ImgFileHistory"], false)
        {
            Verify.Argument.IsNotNull(guiProvider, "guiProvider");

            _guiProvider = guiProvider;
        }