Ignore:
Timestamp:
May 24, 2007, 4:43:17 PM (17 years ago)
Author:
chou
Message:

Morpheo Viewer Release 4.0 :
changements graphiques .

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_informations_window.cpp

    r26 r30  
    1414  winfo->setFixedSize(350,292);
    1515  winfo->move(628,50);
     16
     17  QBoxLayout *bname = new QBoxLayout(QBoxLayout::LeftToRight,0);
     18  ln = new QLabel();
     19  ln->setText("");
    1620  lname = new QLabel();
    1721  lname->setText("");
     22  bname->addWidget(ln);
     23  bname->addWidget(lname);
     24
     25  QBoxLayout *btype = new QBoxLayout(QBoxLayout::LeftToRight,0);
     26  lt = new QLabel();
     27  lt->setText("");
     28  ltype = new QLabel();
     29  ltype->setText("");
     30  btype->addWidget(lt);
     31  btype->addWidget(ltype);
     32
    1833  comment = new QLineEdit();
    1934  comment->setText("");
    20   informations->addWidget(lname);
     35  comment->setReadOnly(true);
     36
     37  QPushButton *noselect = new QPushButton("cancel selection",wparam);
     38  QPushButton *back = new QPushButton("back",wparam);
     39  connect(back,SIGNAL(clicked()),this,SLOT(_back()));
     40  connect(noselect,SIGNAL(clicked()),this,SLOT(_cancel_selection()));
     41
     42  informations->addLayout(bname);
     43  informations->addLayout(btype);
    2144  informations->addWidget(comment);
     45  informations->addWidget(noselect);
     46  informations->addWidget(back);
     47
    2248  winfo->setLayout(informations);
    2349  winfo->show();
     
    2753  QString c = QString::fromStdString(cm);
    2854  comment->setText(c);
     55  comment->show();
    2956}
    3057
     
    3360  lname->setText(n);
    3461}
     62
     63void Window::write_type(string type){
     64  lt->setText("type");
     65  QString n = QString::fromStdString(type);
     66  ltype->setText(n);
     67}
     68
     69void Window::_cancel_selection(){
     70  component_clicked = false;
     71}
Note: See TracChangeset for help on using the changeset viewer.