Changeset 30 for trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_informations_window.cpp
- Timestamp:
- May 24, 2007, 4:43:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_informations_window.cpp
r26 r30 14 14 winfo->setFixedSize(350,292); 15 15 winfo->move(628,50); 16 17 QBoxLayout *bname = new QBoxLayout(QBoxLayout::LeftToRight,0); 18 ln = new QLabel(); 19 ln->setText(""); 16 20 lname = new QLabel(); 17 21 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 18 33 comment = new QLineEdit(); 19 34 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); 21 44 informations->addWidget(comment); 45 informations->addWidget(noselect); 46 informations->addWidget(back); 47 22 48 winfo->setLayout(informations); 23 49 winfo->show(); … … 27 53 QString c = QString::fromStdString(cm); 28 54 comment->setText(c); 55 comment->show(); 29 56 } 30 57 … … 33 60 lname->setText(n); 34 61 } 62 63 void Window::write_type(string type){ 64 lt->setText("type"); 65 QString n = QString::fromStdString(type); 66 ltype->setText(n); 67 } 68 69 void Window::_cancel_selection(){ 70 component_clicked = false; 71 }
Note: See TracChangeset
for help on using the changeset viewer.