source: trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_informations_window.cpp @ 26

Last change on this file since 26 was 26, checked in by chou, 17 years ago

Release 3 du viewer:
Etape 1 et 2 du projet complet et à jour.

  • Property svn:executable set to *
File size: 834 bytes
Line 
1#include "window.h"
2
3using namespace std;
4
5using namespace morpheo::tools::viewer::parser;
6using namespace morpheo::tools::viewer::bdd;
7using namespace morpheo::tools::viewer::graphics;
8
9void Window::winformations()
10{
11  winfo = new QWidget();
12  informations = new QBoxLayout(QBoxLayout::TopToBottom,0);
13  winfo->setWindowTitle("informations");
14  winfo->setFixedSize(350,292);
15  winfo->move(628,50);
16  lname = new QLabel();
17  lname->setText("");
18  comment = new QLineEdit();
19  comment->setText("");
20  informations->addWidget(lname);
21  informations->addWidget(comment);
22  winfo->setLayout(informations);
23  winfo->show();
24}
25
26void Window::write_comment(string cm){
27  QString c = QString::fromStdString(cm);
28  comment->setText(c);
29}
30
31void Window::write_name(string name){
32  QString n = QString::fromStdString(name);
33  lname->setText(n);
34}
Note: See TracBrowser for help on using the repository browser.