source: trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_tools_actions.cpp @ 32

Last change on this file since 32 was 32, checked in by chou, 17 years ago

Morpheo Viewer Release 5.0
Réalisation des étapes 3 (fin) et 4.

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#include "window.h"
2
3using namespace std;
4using namespace morpheo::tools::viewer::parser;
5using namespace morpheo::tools::viewer::bdd;
6using namespace morpheo::tools::viewer::graphics;
7
8/*zoom functions*/
9void Window::_zoomIn(){
10  cout << "zoom in" << endl;
11}
12
13void Window::_zoomOut(){
14  cout << "zoom out" << endl;
15}
16
17void Window::_defautZoom(){
18  cout << "defaut zoom" << endl;
19}
20
21void Window::_level(){
22  cout << "level" <<endl;
23}
24
25/*open or close the informations window*/
26void 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*/
38void 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*/
54void 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*/
65void 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.