00001 #ifndef THERMOMETER_IMPLEMENTATION_FILE
00002 #define THERMOMETER_IMPLEMENTATION_FILE
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "thermometer.h"
00019
00020 #include <wp_passive/wp_implementation.h>
00021
00022 const c_point done_offset(20, 100);
00023 const c_point cancel_offset(100, 100);
00024
00025 const c_rectangle thermo_world(0, 0, 1, 1);
00026
00027 thermometer::thermometer(manager &parent, const c_rectangle &dimensions,
00028 const color &foreground, const color &background)
00029 : canvas(parent, dimensions, thermo_world, foreground, background),
00030 tube(*this, dimensions),
00031 mercury(*this, dimensions),
00032 doneWidget(parent, drawable::origin() + done_offset, "Done",
00033 foreground, background),
00034 cancelWidget(parent, drawable::origin() + cancel_offset, "Cancel",
00035 foreground, background)
00036 {}
00037
00038 thermometer::~thermometer() {}
00039
00040 void thermometer::movement_event()
00041 {
00042 }
00043
00044 void thermometer::distance_set_event()
00045 {
00046 }
00047
00048 void cancelSetDistance(window_handle, thermometer *, XmAnyCallbackStruct *)
00049 {
00050 }
00051
00052
00053 #endif //THERMOMETER_IMPLEMENTATION_FILE
00054