Inheritance: Gtk.Bin
Exemple #1
0
		void CreateControlFromInfo ()
		{
			this.vc = info.Item.Repository;
			this.filepath = info.Item.Path;
			var lw = new LogWidget (info);
			
			revertButton = new Gtk.ToolButton (new Gtk.Image ("vc-revert-command", Gtk.IconSize.Menu), GettextCatalog.GetString ("Revert changes from this revision"));
			revertButton.IsImportant = true;
//			revertButton.Sensitive = false;
			revertButton.Clicked += new EventHandler (RevertRevisionClicked);
			lw.CommandBar.Insert (revertButton, -1);
			
			revertToButton = new Gtk.ToolButton (new Gtk.Image ("vc-revert-command", Gtk.IconSize.Menu), GettextCatalog.GetString ("Revert to this revision"));
			revertToButton.IsImportant = true;
//			revertToButton.Sensitive = false;
			revertToButton.Clicked += new EventHandler (RevertToRevisionClicked);
			lw.CommandBar.Insert (revertToButton, -1);
			lw.CommandBar.ShowAll ();
			
			widget = lw;
			info.Updated += delegate {
				lw.History = this.info.History;
				vinfo   = this.info.VersionInfo;
			};
			lw.History = this.info.History;
			vinfo   = this.info.VersionInfo;
		
		}
Exemple #2
0
        public LogView(string filepath, bool isDirectory, Revision [] history, Repository vc)
            : base(Path.GetFileName(filepath) + " Log")
        {
            this.vc       = vc;
            this.filepath = filepath;

            try
            {
                this.vinfo = vc.GetVersionInfo(filepath, false);
            }
            catch (Exception ex)
            {
                MessageService.ShowException(ex, GettextCatalog.GetString("Version control command failed."));
            }

            // Widget setup
            VersionControlDocumentInfo info = new VersionControlDocumentInfo(null, null, vc);

            info.History     = history;
            info.VersionInfo = vinfo;
            var lw = new LogWidget(info);

            widget     = lw;
            lw.History = history;
        }
Exemple #3
0
        void CreateControlFromInfo()
        {
            var lw = new LogWidget(info);

            widget        = lw;
            info.Updated += OnInfoUpdated;
            lw.History    = this.info.History;
            vinfo         = this.info.Item.VersionInfo;
            Init();
        }
		void CreateControlFromInfo ()
		{
			var lw = new LogWidget (info);
			
			widget = lw;
			info.Updated += OnInfoUpdated;
			lw.History = this.info.History;
			vinfo   = this.info.Item.VersionInfo;
		
			if (WorkbenchWindow != null)
				widget.SetToolbar (WorkbenchWindow.GetToolbar (this));
		}
Exemple #5
0
 public override void Dispose()
 {
     if (widget != null)
     {
         widget.Destroy();
         widget = null;
     }
     if (changedpathstore != null)
     {
         changedpathstore.Dispose();
         changedpathstore = null;
     }
     base.Dispose();
 }
        void CreateControlFromInfo()
        {
            var lw = new LogWidget(info);

            widget        = lw;
            info.Updated += OnInfoUpdated;
            lw.History    = this.info.History;
            vinfo         = this.info.Item.VersionInfo;

            if (WorkbenchWindow != null)
            {
                widget.SetToolbar(WorkbenchWindow.GetToolbar(this));
            }
        }
Exemple #7
0
 public override void Dispose()
 {
     if (widget != null)
     {
         widget.Destroy();
         widget = null;
     }
     if (info != null)
     {
         info.Updated -= OnInfoUpdated;
         info          = null;
     }
     base.Dispose();
 }
Exemple #8
0
        void CreateControlFromInfo()
        {
            this.vc       = info.Item.Repository;
            this.filepath = info.Item.Path;
            var lw = new LogWidget(info);

            widget        = lw;
            info.Updated += delegate {
                lw.History = this.info.History;
                vinfo      = this.info.VersionInfo;
            };
            lw.History = this.info.History;
            vinfo      = this.info.VersionInfo;
        }
Exemple #9
0
 protected override void OnDispose()
 {
     if (widget != null)
     {
         widget.Destroy();
         widget = null;
     }
     if (info != null)
     {
         info.Updated -= OnInfoUpdated;
         info          = null;
     }
     base.OnDispose();
 }
Exemple #10
0
		void CreateControlFromInfo ()
		{
			this.vc = info.Item.Repository;
			this.filepath = info.Item.Path;
			var lw = new LogWidget (info);
			
			widget = lw;
			info.Updated += delegate {
				lw.History = this.info.History;
				vinfo   = this.info.VersionInfo;
			};
			lw.History = this.info.History;
			vinfo   = this.info.VersionInfo;
		
		}
Exemple #11
0
        async void CreateControlFromInfo()
        {
            var lw = new LogWidget(info);

            try {
                widget        = lw;
                info.Updated += OnInfoUpdated;
                lw.History    = this.info.History;
                vinfo         = await this.info.Item.GetVersionInfoAsync();

                Init();
            } catch (Exception e) {
                LoggingService.LogInternalError(e);
            }
        }
		public LogView (string filepath, bool isDirectory, Revision [] history, Repository vc) 
			: base (Path.GetFileName (filepath) + " Log")
		{
			try {
				this.vinfo = vc.GetVersionInfo (filepath, VersionInfoQueryFlags.IgnoreCache);
			}
			catch (Exception ex) {
				MessageService.ShowError (GettextCatalog.GetString ("Version control command failed."), ex);
			}
			
			// Widget setup
			VersionControlDocumentInfo info  =new VersionControlDocumentInfo (null, null, vc);
			info.History = history;
			info.Item.VersionInfo = vinfo;
			var lw = new LogWidget (info);
			
			widget = lw;
			lw.History = history;
		}
		public override void Dispose ()
		{
			if (widget != null) {
				widget.Destroy ();
				widget = null;
			}
			if (changedpathstore != null) {
				changedpathstore.Dispose ();
				changedpathstore = null;
			}
			if (info != null) {
				info.Updated -= OnInfoUpdated;
				info = null;
			}
			base.Dispose ();
		}
Exemple #14
0
		public override void Dispose ()
		{
			if (widget != null) {
				widget.Destroy ();
				widget = null;
			}
			if (changedpathstore != null) {
				changedpathstore.Dispose ();
				changedpathstore = null;
			}
			base.Dispose ();
		}
Exemple #15
0
		public LogView (string filepath, bool isDirectory, Revision [] history, Repository vc) 
			: base (Path.GetFileName (filepath) + " Log")
		{
			this.vc = vc;
			this.filepath = filepath;
			
			try {
				this.vinfo = vc.GetVersionInfo (filepath, false);
			}
			catch (Exception ex) {
				MessageService.ShowException (ex, GettextCatalog.GetString ("Version control command failed."));
			}
			
			// Widget setup
			VersionControlDocumentInfo info  =new VersionControlDocumentInfo (null, null, vc);
			info.History = history;
			info.VersionInfo = vinfo;
			var lw = new LogWidget (info);
			
			revertButton = new Gtk.ToolButton (new Gtk.Image ("vc-revert-command", Gtk.IconSize.Menu), GettextCatalog.GetString ("Revert changes from this revision"));
			revertButton.IsImportant = true;
//			revertButton.Sensitive = false;
			revertButton.Clicked += new EventHandler (RevertRevisionClicked);
			lw.CommandBar.Insert (revertButton, -1);
			
			revertToButton = new Gtk.ToolButton (new Gtk.Image ("vc-revert-command", Gtk.IconSize.Menu), GettextCatalog.GetString ("Revert to this revision"));
			revertToButton.IsImportant = true;
//			revertToButton.Sensitive = false;
			revertToButton.Clicked += new EventHandler (RevertToRevisionClicked);
			lw.CommandBar.Insert (revertToButton, -1);
			lw.CommandBar.ShowAll ();
			widget = lw;
			lw.History = history;
		}