Пример #1
0
		public QuickTaskMiniMapMode (QuickTaskStrip parent)
		{
			var minimap = new Minimpap (parent);
			PackStart (minimap, true, true, 0);
			
			rightMap = new QuickTaskOverviewMode (parent);
			PackStart (rightMap, true, true, 0);
		}
Пример #2
0
        public QuickTaskMiniMapMode(QuickTaskStrip parent)
        {
            minimap = new Minimpap(parent);
            PackStart(minimap, true, true, 0);

            rightMap = new QuickTaskOverviewMode(parent);
            PackStart(rightMap, true, true, 0);
        }
        public QuickTaskMiniMapMode(QuickTaskStrip parent)
        {
            minimap = new Minimpap(parent);
            PackStart(minimap, true, true, 0);

            rightMap = new QuickTaskOverviewMode(parent);
            PackStart(rightMap, true, true, 0);
            vadjustment = parent.VAdjustment;

            vadjustment.ValueChanged += RedrawOnVAdjustmentChange;
        }
		public QuickTaskMiniMapMode (QuickTaskStrip parent)
		{
			minimap = new Minimpap (parent);
			PackStart (minimap, true, true, 0);
			
			rightMap = new QuickTaskOverviewMode (parent);
			PackStart (rightMap, true, true, 0);
			vadjustment = parent.VAdjustment;

			vadjustment.ValueChanged += RedrawOnVAdjustmentChange;

		}
                public BgBufferUpdate(Minimpap mode)
                {
                    this.mode = mode;

                    cr = Gdk.CairoHelper.Create(mode.backgroundBuffer);

                    cr.LineWidth = 1;
                    int w = mode.backgroundBuffer.ClipRegion.Clipbox.Width;
                    int h = mode.backgroundBuffer.ClipRegion.Clipbox.Height;

                    cr.Rectangle(0, 0, w, h);
                    if (mode.TextEditor.ColorStyle != null)
                    {
                        cr.SetSourceColor(mode.TextEditor.ColorStyle.PlainText.Background);
                    }
                    cr.Fill();

                    maxLine = mode.TextEditor.GetTextEditorData().VisibleLineCount;
                    sx      = w / (double)mode.TextEditor.Allocation.Width;
                    sy      = Math.Min(1, lineHeight * maxLine / (double)mode.TextEditor.GetTextEditorData().TotalHeight);
                    cr.Scale(sx, sy);

                    handler = GLib.Idle.Add(BgBufferUpdater);
                }
Пример #6
0
				public BgBufferUpdate (Minimpap mode)
				{
					this.mode = mode;
					
					cr = Gdk.CairoHelper.Create (mode.backgroundBuffer);
					
					cr.LineWidth = 1;
					int w = mode.backgroundBuffer.ClipRegion.Clipbox.Width;
					int h = mode.backgroundBuffer.ClipRegion.Clipbox.Height;
					cr.Rectangle (0, 0, w, h);
					if (mode.TextEditor.ColorStyle != null)
						cr.Color = mode.TextEditor.ColorStyle.Default.CairoBackgroundColor;
					cr.Fill ();
					
					maxLine = mode.TextEditor.GetTextEditorData ().VisibleLineCount;
					sx = w / (double)mode.TextEditor.Allocation.Width;
					sy = Math.Min (1, lineHeight * maxLine / (double)mode.TextEditor.GetTextEditorData ().TotalHeight );
					cr.Scale (sx, sy);
					
					handler = GLib.Idle.Add (BgBufferUpdater);
				}