]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/MaximumsDialog.h
0e170c5cec7f7ee9bf4c211ae9de160ac2d2e2cc
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / MaximumsDialog.h
1
2 /*=========================================================================
3
4   Program:   wido
5   Module:    $RCSfile: MaximumsDialog.h,v $
6   Language:  C++
7   Date:      $Date: 2008/10/31 16:32:47 $
8   Version:   $Revision: 1.1 $
9   Author: Monica Lozano
10
11   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
12   l'Image). All rights reserved. See Doc/License.txt or
13   http://www.creatis.insa-lyon.fr/Public/wido/License.html for details.
14
15      This software is distributed WITHOUT ANY WARRANTY; without even
16      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
17      PURPOSE.  See the above copyright notices for more information.
18
19 Description:
20 Is a Dialog that sets two numbers: 
21 1)a x-value: maximum number that can take the x-axis
22 2)a y-value: maximum number that can take the y-axis
23 =========================================================================*/
24
25
26 #ifndef __MAXIMUMSDIALOG__
27 #define __MAXIMUMSDIALOG__
28
29
30 // ----------------------------------------------------------------------------
31 // wx headers inclusion.
32 // For compilers that support precompilation, includes <wx/wx.h>.
33 // ----------------------------------------------------------------------------
34 #include <wx/wxprec.h>
35 #ifdef __BORLANDC__
36 #pragma hdrstop
37 #endif
38 #ifndef WX_PRECOMP
39 #include <wx/wx.h>
40 #endif
41
42 class MaximumsDialog:public wxDialog
43 {
44 public:
45         /*
46          Constructor
47         */
48         MaximumsDialog(wxWindow *parent,wxString title);
49         /*
50          Destructor
51         */
52         //~MaximumsDialog();
53         /*
54          Returns the X value wrote by the user
55         */
56         float getXValue();
57         /*
58          Returns the X value wrote by the user
59         */
60         float getYValue();
61
62 private:
63         /*
64                 TextControl for the x-maxvalue
65         */
66         wxTextCtrl      *m_maxX;
67         /*
68                 TextControl for the y-maxvalue
69         */
70         wxTextCtrl      *m_maxY;
71         /*
72          used to show the names of the text controls
73         */
74         wxStaticText    *maxX;
75         wxStaticText    *maxY;
76
77         /*
78          ok Button
79         */
80         wxButton                *okBtn;
81         /*
82          cancel Button
83         */
84         wxButton                *cancelBtn;
85
86
87         DECLARE_CLASS(MaximumsDialog);
88         // any class wishing to process wxWindows events must use this macro
89         //DECLARE_EVENT_TABLE()
90 };
91
92 #endif
93
94