Changeset 32 for trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_informations_window.cpp
- Timestamp:
- May 30, 2007, 12:08:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_informations_window.cpp
r30 r32 7 7 using namespace morpheo::tools::viewer::graphics; 8 8 9 /*informations window constructor*/ 9 10 void Window::winformations() 10 11 { … … 12 13 informations = new QBoxLayout(QBoxLayout::TopToBottom,0); 13 14 winfo->setWindowTitle("informations"); 14 winfo->setFixedSize(3 50,292);15 winfo->setFixedSize(370,180); 15 16 winfo->move(628,50); 17 16 18 19 /*name line*/ 17 20 QBoxLayout *bname = new QBoxLayout(QBoxLayout::LeftToRight,0); 18 21 ln = new QLabel(); … … 23 26 bname->addWidget(lname); 24 27 28 /*type line*/ 25 29 QBoxLayout *btype = new QBoxLayout(QBoxLayout::LeftToRight,0); 26 30 lt = new QLabel(); … … 30 34 btype->addWidget(lt); 31 35 btype->addWidget(ltype); 32 36 37 /*comment line*/ 33 38 comment = new QLineEdit(); 34 39 comment->setText(""); 35 40 comment->setReadOnly(true); 36 41 42 /*buttons*/ 37 43 QPushButton *noselect = new QPushButton("cancel selection",wparam); 38 44 QPushButton *back = new QPushButton("back",wparam); … … 50 56 } 51 57 58 /*write the comment of the componenet selected*/ 52 59 void Window::write_comment(string cm){ 53 60 QString c = QString::fromStdString(cm); 54 61 comment->setText(c); 62 comment->setCursorPosition(1); 55 63 comment->show(); 56 64 } 57 65 58 void Window::write_name(string name){ 59 QString n = QString::fromStdString(name); 60 lname->setText(n); 66 void Window::erase_comment(){ 67 comment->setText(""); 68 comment->hide(); 69 } 70 /*write the name of the component selected*/ 71 void 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); 61 76 } 62 77 78 void Window::erase_line(QLabel *l1, QLabel *l2){ 79 l1->setText(""); 80 l2->setText(""); 81 } 82 83 /*write the type of the component selected*/ 63 84 void Window::write_type(string type){ 64 85 lt->setText("type");
Note: See TracChangeset
for help on using the changeset viewer.