Changes in trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_informations_window.cpp [20:30]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_informations_window.cpp
r20 r30 10 10 { 11 11 winfo = new QWidget(); 12 QBoxLayout *informations = new QBoxLayout(QBoxLayout::LeftToRight,0); 13 winfo->resize(200,450); 12 informations = new QBoxLayout(QBoxLayout::TopToBottom,0); 14 13 winfo->setWindowTitle("informations"); 15 winfo->setFixedSize(200,620); 16 winfo->move(608,0); 14 winfo->setFixedSize(350,292); 15 winfo->move(628,50); 16 17 QBoxLayout *bname = new QBoxLayout(QBoxLayout::LeftToRight,0); 18 ln = new QLabel(); 19 ln->setText(""); 20 lname = new QLabel(); 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 33 comment = new QLineEdit(); 34 comment->setText(""); 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); 44 informations->addWidget(comment); 45 informations->addWidget(noselect); 46 informations->addWidget(back); 47 17 48 winfo->setLayout(informations); 18 49 winfo->show(); 19 50 } 20 51 52 void Window::write_comment(string cm){ 53 QString c = QString::fromStdString(cm); 54 comment->setText(c); 55 comment->show(); 56 } 21 57 58 void Window::write_name(string name){ 59 QString n = QString::fromStdString(name); 60 lname->setText(n); 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.