- Timestamp:
- May 30, 2007, 12:08:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/include/window.h
r30 r32 40 40 #include <qevent.h> 41 41 #include <qfiledialog.h> 42 42 #include <qscrollarea.h> 43 #include <qcombobox.h> 44 #include <qspinbox.h> 43 45 44 46 #include "Tools/Viewer/Parser/include/parser.h" … … 72 74 void _setParse(Parse *p); //parse the base 73 75 void _init_file(); //search component and port before drawing 76 74 77 private slots: 75 78 76 79 void _open(); //open a file 77 void _open_error();80 void _open_error(); 78 81 79 82 void _save(); //save a file … … 90 93 void _defautZoom(); 91 94 92 void _level(); 95 void _level(); 93 96 void _informations(); //show or hide informations window 94 97 void _parameters(); //show or hide parameters window … … 98 101 99 102 void _back();//return to the previous view 100 void _cancel_selection(); 101 void _apply(); 103 void _cancel_selection();//cancel the selection of a component 104 void _apply();//apply the parameters changes 105 void currentIndexChanged(QString s); 106 void valueChanged(int i); 102 107 103 108 protected : 104 void mousePressEvent (QMouseEvent *); //mouse handler when mouse pressed105 void mouseMoveEvent (QMouseEvent *); //mouse handler in other case109 void mousePressEvent (QMouseEvent *); //mouse handler when mouse pressed 110 void mouseMoveEvent (QMouseEvent *); //mouse handler in other case 106 111 private : 107 112 void wparameters(); // parameters window builder … … 110 115 void repaint(); //repaint the panel with current parameters 111 116 void drawPort(int x,int y,int pos,string dir); //draw the components ports 112 void write_name(string name); //write the name of the component clicked name in the informations window117 void write_name(string type,string name); //write the name of the component clicked name in the informations window 113 118 void write_comment(string comment); 114 119 void write_type(string t); 120 void erase_line(QLabel *l1, QLabel *l2);//erase a line in the informations window 121 void erase_comment();//erase and hide the comment line in the informations window 122 void display_param();//display the parameters 115 123 116 124 QList <Port> port_east; //ports lists … … 118 126 QList <Port> port_north; 119 127 QList <Port> port_south; 120 QList <Component> *compo; 121 122 QWidget *wparam;//windows widget (informations, parameters, open, save ...) 128 QList <Component> *compo;//component list 129 QList <Param> param;//parameters list 130 QList <Group> *group;//groups list 131 132 QWidget *wscroll; 133 QMainWindow *wparam;//windows widget (informations, parameters, quit, open) 123 134 QWidget *winfo; 124 QWidget *ws;125 135 QWidget *wq; 126 136 QWidget *wa; … … 130 140 QBoxLayout *informations; //informations box 131 141 QBoxLayout *parameters; //parameters box 142 QBoxLayout *pbox; 132 143 133 144 Parse *parse; //the parser … … 139 150 QPainter painter; 140 151 141 QStatusBar *status; 152 QStatusBar *status;//status bar 142 153 143 154 QLineEdit *file_name; //retrieve the name user wants to open from the open window … … 157 168 int window_height; //main window size 158 169 int window_width; 159 int margeX;//size of the marge160 int margeY;161 170 int portX;//port size, position and size of components, used when drawing the architecture 162 171 int portY; 163 int posX; 172 int posX;//used to retrieve the position and the size of a component 164 173 int posY; 165 174 int tailleX; 166 175 int tailleY; 167 176 168 int cpt_level; 169 QString tab[ 50];177 int cpt_level;//level in the architecture 178 QString tab[20];//save the father when user change the level 170 179 171 180 QString father;//father name 172 181 QString current;//name of the current architecture visible 173 182 183 QScrollArea *sc; 184 174 185 bool save_as; 175 bool first_save;176 186 bool info_open; //know if the informations window opened or not 177 187 bool param_open; //know if the parameters window opened or not … … 187 197 bool mess_open;//chargment message box opened or not 188 198 bool component_clicked;//if user clicked on a component to modify its parameters 189 190 199 bool apply_display;//if the apply button is displayed 200 bool scroll_hide; 201 bool parameter_modify; 191 202 }; 192 203 };
Note: See TracChangeset
for help on using the changeset viewer.