comparison dwtx/novocode/SizeGrip.d @ 190:df4e66472aff

novocode line endings, indention
author Frank Benoit <benoit@tionex.de>
date Sun, 26 Oct 2008 15:04:41 +0100
parents e3780acbbf80
children
comparison
equal deleted inserted replaced
189:71ca5bcf2307 190:df4e66472aff
9 * Stefan Zeiger (szeiger@novocode.com) - initial API and implementation 9 * Stefan Zeiger (szeiger@novocode.com) - initial API and implementation
10 * Port to the D programming language: 10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 /++ 13 /++
14 + This code was take from http://www.novocode.com/swt/ 14 + This code was take from http://www.novocode.com/swt/
15 +/ 15 +/
16 module dwtx.novocode.SizeGrip; 16 module dwtx.novocode.SizeGrip;
17 17
18 import dwt.dwthelper.utils; 18 import dwt.dwthelper.utils;
19 import dwt.dwthelper.Runnable; 19 import dwt.dwthelper.Runnable;
20 import dwtx.dwtxhelper.Timer; 20 import dwtx.dwtxhelper.Timer;
193 { 193 {
194 public void run() 194 public void run()
195 { 195 {
196 TimerTask executingTask = this; 196 TimerTask executingTask = this;
197 event.display.asyncExec( dgRunnable( (Event event_, TimerTask executingTask_ ) 197 event.display.asyncExec( dgRunnable( (Event event_, TimerTask executingTask_ )
198 { 198 {
199 if(executingTask_ !is timerTask) return; 199 if(executingTask_ !is timerTask) return;
200 performResize(event_); 200 performResize(event_);
201 }, event, executingTask )); 201 }, event, executingTask ));
202 } 202 }
203 }; 203 };
204 timer.schedule(timerTask, UPDATE_DELAY); 204 timer.schedule(timerTask, UPDATE_DELAY);
205 } 205 }
206 } 206 }
214 if(!cancelled && (event.stateMask & DWT.BUTTON1) !is 0) 214 if(!cancelled && (event.stateMask & DWT.BUTTON1) !is 0)
215 { 215 {
216 performResize(event); 216 performResize(event);
217 } 217 }
218 } 218 }
219 219
220 public this(Composite parent, Composite resizableParent_, int style) 220 public this(Composite parent, Composite resizableParent_, int style)
221 { 221 {
222 super(parent, style = checkStyle (style)); 222 super(parent, style = checkStyle (style));
223 this.timer = new Timer(true); 223 this.timer = new Timer(true);
224 this.resizableParent = resizableParent_; 224 this.resizableParent = resizableParent_;