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 | |
---|
3 | using namespace std; |
---|
4 | |
---|
5 | using namespace morpheo::tools::viewer::parser; |
---|
6 | using namespace morpheo::tools::viewer::bdd; |
---|
7 | using namespace morpheo::tools::viewer::graphics; |
---|
8 | |
---|
9 | void 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 | |
---|
26 | void Window::write_comment(string cm){ |
---|
27 | QString c = QString::fromStdString(cm); |
---|
28 | comment->setText(c); |
---|
29 | } |
---|
30 | |
---|
31 | void 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.