~cszikszoy/do/do-fix-keybindings

« back to all changes in this revision

Viewing changes to Do.Interface.Linux.Docky/src/Docky.Interface/Docky.Interface.Painters/SummonModeRenderer.cs

  • Committer: Chris S.
  • Date: 2009-06-18 06:18:12 UTC
  • mfrom: (1107.2.124 trunk)
  • Revision ID: chris@szikszoy.com-20090618061812-8ynmedlxpmvwkwe9
merge trunk & make properties public

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
                                return (int) (DockPreferences.IconSize * 3.5);
68
68
                        }
69
69
                }
 
70
                
 
71
                TimeSpan RenderBuffer {
 
72
                        get {
 
73
                                return DockArea.BaseAnimationTime.Add (new TimeSpan (0, 0, 0, 0, 50));
 
74
                        }
 
75
                }
70
76
 
71
77
                public bool DoubleBuffer {
72
78
                        get { return true; }
76
82
                        get { return false; }
77
83
                }
78
84
                
79
 
                public int MinimumWidth {
80
 
                        get { return 300; }
 
85
                public int Width {
 
86
                        get { return Math.Max (300, Math.Max (10 * DockServices.DrawingService.CurrentDockHeight, DockServices.DrawingService.CurrentDockWidth)); }
81
87
                }
82
88
                
83
89
                public SummonModeRenderer ()
109
115
                        if (PaintNeeded != null) {
110
116
                                paint = true;
111
117
                                PaintNeededArgs args;
112
 
                                if (DateTime.UtcNow - DockState.Instance.CurrentPaneTime < DockArea.BaseAnimationTime) 
113
 
                                        args = new PaintNeededArgs (DockArea.BaseAnimationTime);
 
118
                                if (DateTime.UtcNow - DockState.Instance.CurrentPaneTime < RenderBuffer) 
 
119
                                        args = new PaintNeededArgs (RenderBuffer);
114
120
                                else
115
121
                                        args = new PaintNeededArgs ();
116
122
                                PaintNeeded (this, args);
148
154
                                DockServices.DoInteropService.RequestClickOff ();
149
155
                        }
150
156
                }
151
 
 
 
157
                
 
158
                public void Scrolled (Gdk.ScrollDirection direction)
 
159
                {
 
160
                }
 
161
                
152
162
                public void Interrupt ()
153
163
                {
154
164
                        Log.Error ("Docky has been interupted innapropriately.  Please report this bug.");
161
171
                        
162
172
                public void Paint (Context cr, Gdk.Rectangle dockArea, Gdk.Point cursor)
163
173
                {
164
 
                        if (previous_area == dockArea && 
165
 
                            !paint && 
166
 
                            DateTime.UtcNow - DockState.Instance.CurrentPaneTime > DockArea.BaseAnimationTime) {
 
174
                        if (previous_area == dockArea && !paint && DateTime.UtcNow - DockState.Instance.CurrentPaneTime > RenderBuffer) {
167
175
                                previous_area = dockArea;
168
176
                                return;
169
177
                        }