Ignore:
Timestamp:
May 30, 2007, 12:08:56 PM (17 years ago)
Author:
chou
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/include/window.h

    r30 r32  
    4040#include <qevent.h>
    4141#include <qfiledialog.h>
    42 
     42#include <qscrollarea.h>
     43#include <qcombobox.h>
     44#include <qspinbox.h>
    4345
    4446#include "Tools/Viewer/Parser/include/parser.h"
     
    7274  void _setParse(Parse *p);  //parse the base
    7375  void _init_file();    //search component and port before drawing
     76
    7477 private slots:
    7578   
    7679  void _open(); //open a file
    77  void _open_error();
     80  void _open_error();
    7881
    7982  void _save(); //save a file
     
    9093  void _defautZoom();
    9194
    92   void _level(); 
     95  void _level();
    9396  void _informations(); //show or hide informations window
    9497  void _parameters(); //show or hide parameters window
     
    98101
    99102  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);
    102107
    103108 protected :
    104   void mousePressEvent (QMouseEvent *); //mouse handler when mouse pressed
    105   void mouseMoveEvent (QMouseEvent *); //mouse handler in other case
     109   void mousePressEvent (QMouseEvent *); //mouse handler when mouse pressed
     110   void mouseMoveEvent (QMouseEvent *); //mouse handler in other case
    106111 private :
    107112  void wparameters(); // parameters window builder
     
    110115  void repaint(); //repaint the panel with current parameters
    111116  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 window
     117  void write_name(string type,string name); //write the name of the component clicked name in the informations window
    113118  void write_comment(string comment);
    114119  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
    115123
    116124  QList <Port> port_east; //ports lists
     
    118126  QList <Port> port_north;
    119127  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)
    123134  QWidget *winfo;
    124   QWidget *ws;
    125135  QWidget *wq;
    126136  QWidget *wa;
     
    130140  QBoxLayout *informations; //informations box
    131141  QBoxLayout *parameters; //parameters box
     142  QBoxLayout *pbox;
    132143
    133144  Parse *parse; //the parser
     
    139150  QPainter painter;
    140151
    141   QStatusBar *status;
     152  QStatusBar *status;//status bar
    142153
    143154  QLineEdit *file_name; //retrieve the name user wants to open from the open window
     
    157168  int window_height; //main window size
    158169  int window_width;
    159   int margeX;//size of the marge
    160   int margeY;
    161170  int portX;//port size, position and size of components, used when drawing the architecture
    162171  int portY;
    163   int posX;
     172  int posX;//used to retrieve the position and the size of a component
    164173  int posY;
    165174  int tailleX;
    166175  int tailleY;
    167176
    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
    170179
    171180  QString father;//father name
    172181  QString current;//name of the current architecture visible
    173182
     183  QScrollArea *sc;
     184
    174185  bool save_as;
    175   bool first_save;
    176186  bool info_open; //know if the informations window opened or not
    177187  bool param_open; //know if the parameters window opened or not
     
    187197  bool mess_open;//chargment message box opened or not
    188198  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;
    191202};
    192203      };
Note: See TracChangeset for help on using the changeset viewer.