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/src/Graphics_informations_window.cpp

    r30 r32  
    77using namespace morpheo::tools::viewer::graphics;
    88
     9/*informations window constructor*/
    910void Window::winformations()
    1011{
     
    1213  informations = new QBoxLayout(QBoxLayout::TopToBottom,0);
    1314  winfo->setWindowTitle("informations");
    14   winfo->setFixedSize(350,292);
     15  winfo->setFixedSize(370,180);
    1516  winfo->move(628,50);
     17 
    1618
     19  /*name line*/
    1720  QBoxLayout *bname = new QBoxLayout(QBoxLayout::LeftToRight,0);
    1821  ln = new QLabel();
     
    2326  bname->addWidget(lname);
    2427
     28  /*type line*/
    2529  QBoxLayout *btype = new QBoxLayout(QBoxLayout::LeftToRight,0);
    2630  lt = new QLabel();
     
    3034  btype->addWidget(lt);
    3135  btype->addWidget(ltype);
    32 
     36 
     37  /*comment line*/
    3338  comment = new QLineEdit();
    3439  comment->setText("");
    3540  comment->setReadOnly(true);
    3641
     42  /*buttons*/
    3743  QPushButton *noselect = new QPushButton("cancel selection",wparam);
    3844  QPushButton *back = new QPushButton("back",wparam);
     
    5056}
    5157
     58/*write the comment of the componenet selected*/
    5259void Window::write_comment(string cm){
    5360  QString c = QString::fromStdString(cm);
    5461  comment->setText(c);
     62  comment->setCursorPosition(1);
    5563  comment->show();
    5664}
    5765
    58 void Window::write_name(string name){
    59   QString n = QString::fromStdString(name);
    60   lname->setText(n);
     66void Window::erase_comment(){
     67  comment->setText("");
     68  comment->hide();
     69}
     70/*write the name of the component selected*/
     71void Window::write_name(string type,string name){
     72  QString n = QString::fromStdString(type);
     73  ln->setText(n);
     74  QString n2 = QString::fromStdString(name);
     75  lname->setText(n2);
    6176}
    6277
     78void Window::erase_line(QLabel *l1, QLabel *l2){
     79  l1->setText("");
     80  l2->setText("");
     81}
     82
     83/*write the type of the component selected*/
    6384void Window::write_type(string type){
    6485  lt->setText("type");
Note: See TracChangeset for help on using the changeset viewer.