thermometer.cpp

Go to the documentation of this file.
00001 #ifndef THERMOMETER_IMPLEMENTATION_FILE
00002 #define THERMOMETER_IMPLEMENTATION_FILE
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : thermometer                                                       *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 1991-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
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 

Generated on Fri Nov 28 04:29:04 2008 for HOOPLE Libraries by  doxygen 1.5.1