Last change
on this file since 117 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | #include "window.h" |
---|
2 | |
---|
3 | using namespace std; |
---|
4 | using namespace morpheo::tools::viewer::parser; |
---|
5 | using namespace morpheo::tools::viewer::bdd; |
---|
6 | using namespace morpheo::tools::viewer::graphics; |
---|
7 | |
---|
8 | /*zoom functions*/ |
---|
9 | void Window::_zoomIn(){ |
---|
10 | cout << "zoom in" << endl; |
---|
11 | } |
---|
12 | |
---|
13 | void Window::_zoomOut(){ |
---|
14 | cout << "zoom out" << endl; |
---|
15 | } |
---|
16 | |
---|
17 | void Window::_defautZoom(){ |
---|
18 | cout << "defaut zoom" << endl; |
---|
19 | } |
---|
20 | |
---|
21 | void Window::_level(){ |
---|
22 | cout << "level" <<endl; |
---|
23 | } |
---|
24 | |
---|
25 | /*open or close the informations window*/ |
---|
26 | void Window::_informations(){ |
---|
27 | if(!info_open){//if the informations window is not open, open it,else close it |
---|
28 | this->winformations(); |
---|
29 | info_open = true; |
---|
30 | } |
---|
31 | else{ |
---|
32 | winfo->close(); |
---|
33 | info_open = false; |
---|
34 | } |
---|
35 | } |
---|
36 | |
---|
37 | /*open or close the parameters window*/ |
---|
38 | void Window::_parameters(){//if the parameteres window is not open, open it,else close it |
---|
39 | if(!param_open){ |
---|
40 | this->wparameters(); |
---|
41 | param_open = true; |
---|
42 | if(info_open){ |
---|
43 | apply_display = false; |
---|
44 | display_param(); |
---|
45 | } |
---|
46 | } |
---|
47 | else{ |
---|
48 | wparam->close(); |
---|
49 | param_open = false; |
---|
50 | } |
---|
51 | } |
---|
52 | |
---|
53 | /*display or hide the components name*/ |
---|
54 | void Window::_component_name(){ |
---|
55 | |
---|
56 | if(componentName) |
---|
57 | componentName = false; |
---|
58 | |
---|
59 | else componentName = true; |
---|
60 | |
---|
61 | repaint(); |
---|
62 | } |
---|
63 | |
---|
64 | /*display or hide the signals name*/ |
---|
65 | void Window::_signal_name(){ |
---|
66 | |
---|
67 | if(signalName) |
---|
68 | signalName = false; |
---|
69 | |
---|
70 | else |
---|
71 | signalName = true; |
---|
72 | |
---|
73 | repaint(); |
---|
74 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.