DataWin.cpp

Go to the documentation of this file.
00001 //DataWin.cpp
00002 
00003 /*************************************************************/
00004 //
00005 // DataWinDialog & LineWinDialog
00006 //
00007 // Windows for the colourscale and linescan data
00008 //
00009 //-------------------------------------------------------------
00010 //
00011 // v 1.2 - 2007/06/15 - Added label to linescan
00012 // v 1.1 - 2006/11/18 - Changed linescan FXImageView for ImageView
00013 // v 1.0 - 2006/04/19 - Initial release
00014 //
00015 // See LICENSE.txt for distribution and usage restrictions
00016 // Copyright (c) 2005-2007 Simon Chorley
00017 // www.mylaboratory.co.uk - greylab@mylaboratory.co.uk
00018 //
00019 /*************************************************************/
00020 
00021 
00022 ///Colourscale and linescan output windows (Implementation)
00023 /**
00024  * Provides implementation of DataWinDialog and LineWinDialog window classes to show the data.
00025  * @file DataWin.cpp
00026  * @version 1.2 - 2007/06/15
00027  */
00028 
00029 
00030 #include "DataWin.h"
00031 
00032 #include "icons.h"
00033 
00034 
00035 FXIMPLEMENT(DataWinDialog, FXDialogBox, NULL, 0)
00036 
00037 
00038 DataWinDialog::~DataWinDialog()
00039 {
00040 //      if (crosshair != NULL) delete crosshair;
00041 }
00042 
00043 
00044 ///Colourscale window class constructor
00045 /**
00046  * @param app Application object.
00047  * @param win Parent window object.
00048  */
00049 DataWinDialog::DataWinDialog(FXApp *app, FXWindow* win) : FXDialogBox(app, "Colourscale Image", DECOR_BORDER|DECOR_RESIZE|DECOR_TITLE|DECOR_MENU|DECOR_MINIMIZE|DECOR_MAXIMIZE, 0, 0, 500, 500)
00050 {
00051         setIcon((FXIcon*)(new FXGIFIcon(app, ic_gs32, 0, IMAGE_OPAQUE)));
00052         setMiniIcon((FXIcon*)(new FXGIFIcon(app, ic_gs16, 0, IMAGE_OPAQUE)));
00053 
00054 //      crosshair = NULL;
00055         FXVerticalFrame *frame = new FXVerticalFrame(this, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
00056         dataImageview = new ImageView(frame, NULL, win, ID_LS_SELREQ, LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0);
00057         positionLabel = new FXLabel(frame, "x = , y = , swp =", NULL, LAYOUT_FILL_X|LAYOUT_BOTTOM, 0, 0, 0, 0, 0, 0, 0, 0);
00058 
00059 
00060 //      crosshair = new FXCursor(app, CURSOR_CROSS);
00061 //      dataImageview->setDefaultCursor(crosshair);
00062 
00063 }
00064 
00065 
00066 
00067 FXIMPLEMENT(LineWinDialog, FXDialogBox, NULL, 0)
00068 
00069 
00070 LineWinDialog::~LineWinDialog()
00071 {
00072 }
00073 
00074 
00075 ///Linescan window class constructor
00076 /**
00077  * @param app Application object.
00078  * @param win Parent window object.
00079  */
00080 LineWinDialog::LineWinDialog(FXApp* app, FXWindow* win) : FXDialogBox(app, "Linescan Image", DECOR_BORDER|DECOR_RESIZE|DECOR_TITLE|DECOR_MENU|DECOR_MINIMIZE|DECOR_MAXIMIZE, 0, 500, 500, 200)
00081 {
00082         setIcon((FXIcon*)(new FXGIFIcon(app, ic_ls32, 0, IMAGE_OPAQUE)));
00083         setMiniIcon((FXIcon*)(new FXGIFIcon(app, ic_ls16, 0, IMAGE_OPAQUE)));
00084 
00085         FXVerticalFrame *frame = new FXVerticalFrame(this, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
00086         lineImageview = new ImageView(frame, NULL, win, ID_LS_ZOOM, LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0);
00087         positionLabel = new FXLabel(frame, "x/y = , z =", NULL, LAYOUT_FILL_X|LAYOUT_BOTTOM, 0, 0, 0, 0, 0, 0, 0, 0);
00088 
00089 }

Generated on Mon Mar 10 13:55:44 2008 for GreyLab by  doxygen 1.5.3