+2003-02-27 Rob Lahaye <lahaye@snu.ac.kr>
+
+ * xformsImage.C: use lyx::float_equal() for comparing floats & doubles
+
2003-02-21 Angus Leeming <leeming@lyx.org>
* FormDialogView.[Ch]: new base class for the xforms dialogs,
* Dialogs_impl.h:
* Dialogs.C:
- * Dilaogs2.C: strip out those dialogs that now use the new
+ * Dialogs2.C: strip out those dialogs that now use the new
Dialog class as the platform for an MCV split.
* Dialogs3.C: new file. Lazy instantiation of those dialogs that
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
+SnapGrid: 5
=============== FORM ===============
Name: form_external
-Width: 560
-Height: 310
+Width: 320
+Height: 355
Number of Objects: 12
--------------------
class: FL_BOX
-type: UP_BOX
-box: 0 0 560 310
-boxtype: FL_UP_BOX
+type: FLAT_BOX
+box: 0 0 320 355
+boxtype: FL_FLAT_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
--------------------
class: FL_CHOICE
type: NORMAL_CHOICE
-box: 130 10 300 30
+box: 110 5 160 25
boxtype: FL_FRAME_BOX
colors: FL_COL1 FL_RIGHT_BCOL
alignment: FL_ALIGN_LEFT
--------------------
class: FL_BROWSER
type: NORMAL_BROWSER
-box: 130 50 300 130
+box: 5 35 310 125
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_TOP
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 130 190 190 30
+box: 5 220 310 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
-alignment: FL_ALIGN_LEFT
+alignment: FL_ALIGN_TOP_LEFT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 330 190 100 30
+box: 215 245 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 130 230 300 30
+box: 5 290 310 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
-alignment: FL_ALIGN_LEFT
+alignment: FL_ALIGN_TOP_LEFT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 435 50 110 30
+box: 5 165 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: Edit file|#E
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NorthEast FL_NorthEast
+resize: FL_RESIZE_NONE
+gravity: FL_SouthEast FL_SouthEast
name: button_edit
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 435 90 110 30
+box: 110 165 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: View result|#V
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NorthEast FL_NorthEast
+resize: FL_RESIZE_NONE
+gravity: FL_SouthEast FL_SouthEast
name: button_view
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 435 130 110 30
+box: 215 165 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: Update result|#U
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NorthEast FL_NorthEast
+resize: FL_RESIZE_NONE
+gravity: FL_SouthEast FL_SouthEast
name: button_update
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: RETURN_BUTTON
-box: 255 270 90 30
+box: 35 325 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 355 270 90 30
+box: 130 325 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 455 270 90 30
+box: 225 325 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
+SnapGrid: 5
=============== FORM ===============
Name: form_forks
-Width: 650
-Height: 390
+Width: 535
+Height: 200
Number of Objects: 9
--------------------
class: FL_BOX
-type: UP_BOX
-box: 0 0 650 390
-boxtype: FL_UP_BOX
+type: FLAT_BOX
+box: 0 0 535 200
+boxtype: FL_FLAT_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label:
shortcut:
--------------------
class: FL_BROWSER
type: HOLD_BROWSER
-box: 20 30 400 290
+box: 5 20 330 140
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_TOP
label: Forked child processes:|#F
shortcut:
resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+gravity: FL_NorthWest FL_South
name: browser_children
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BROWSER
type: HOLD_BROWSER
-box: 510 30 125 290
+box: 410 20 120 140
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_TOP
label: Kill processes:|#K
shortcut:
resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+gravity: FL_North FL_SouthEast
name: browser_kill
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 432 30 65 30
+box: 340 25 65 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: All ->
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_NONE
+gravity: FL_North FL_North
name: button_all
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 450 70 30 30
+box: 360 55 25 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: @->
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_NONE
+gravity: FL_North FL_North
name: button_add
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 450 110 30 30
+box: 360 85 25 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: @4->
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_NONE
+gravity: FL_North FL_North
name: button_remove
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: RETURN_BUTTON
-box: 355 350 90 30
+box: 250 170 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: OK
shortcut: ^M
-resize: FL_RESIZE_ALL
+resize: FL_RESIZE_NONE
gravity: FL_SouthEast FL_SouthEast
name: button_ok
callback: C_FormBaseOKCB
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 450 350 90 30
+box: 345 170 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: Apply|#A
shortcut:
-resize: FL_RESIZE_ALL
+resize: FL_RESIZE_NONE
gravity: FL_SouthEast FL_SouthEast
name: button_apply
callback: C_FormBaseApplyCB
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 545 350 90 30
+box: 440 170 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: Close|^[
shortcut:
-resize: FL_RESIZE_ALL
+resize: FL_RESIZE_NONE
gravity: FL_SouthEast FL_SouthEast
name: button_close
callback: C_FormBaseCancelCB
if (!image_)
return ;
- if (!params.angle)
+ if (lyx::float_equal(params.angle, 0.0, 0.1))
// No rotation is necessary.
return;
// Work around xforms bug when params.angle == 270
// the 'InternalError: bad special angle' error.
// This bug fix is not needed in xforms 1.0 and greater.
- if (params.angle == 270) {
+ if (lyx::float_equal(params.angle, 270.0, 0.1)) {
flimage_rotate(image_, 900, FLIMAGE_SUBPIXEL);
flimage_rotate(image_, 1800, FLIMAGE_SUBPIXEL);
} else {