Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
OutputWindow.cpp
Go to the documentation of this file.
1
/* Copyright (C) 2011-20011 National Institute For Space Research (INPE) - Brazil.
2
3
This file is part of TerraLib Code Editor - A widget component for scripting with TerraLib Platform.
4
5
TerraLib Code Editor is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License,
8
or (at your option) any later version.
9
10
TerraLib Code Editor is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with TerraLib Code Editor. See COPYING. If not, write to
17
Gilberto Ribeiro de Queiroz at <gribeiro@dpi.inpe.br>.
18
*/
19
20
/*!
21
\file OutputWindow.cpp
22
23
\brief A widget to output the script execution.
24
*/
25
26
// TerraLib
27
#include "
OutputWindow.h
"
28
29
// Qt
30
#include <QtGui/QTextEdit>
31
#include <QtGui/QVBoxLayout>
32
33
tce::OutputWindow::OutputWindow
(QWidget* parent)
34
: QDockWidget(parent)
35
{
36
setWindowTitle(tr(
"Output"
));
37
38
m_txt
=
new
QTextEdit(
this
);
39
40
m_txt
->setWordWrapMode(QTextOption::NoWrap);
41
42
m_txt
->setFontPointSize(4.0 *
m_txt
->fontPointSize());
43
44
m_txt
->setReadOnly(
true
);
45
46
setWidget(
m_txt
);
47
}
48
49
tce::OutputWindow::~OutputWindow
()
50
{
51
}
52
53
const
QTextEdit*
tce::OutputWindow::getText
()
const
54
{
55
return
m_txt;
56
}
57
58
QTextEdit*
tce::OutputWindow::getText
()
59
{
60
return
m_txt;
61
}
62
tce::OutputWindow::getText
const QTextEdit * getText() const
Definition:
OutputWindow.cpp:53
OutputWindow.h
A widget to output the script execution.
tce::OutputWindow::OutputWindow
OutputWindow(QWidget *parent=0)
Definition:
OutputWindow.cpp:33
tce::OutputWindow::~OutputWindow
~OutputWindow()
Definition:
OutputWindow.cpp:49
tce::OutputWindow::m_txt
QTextEdit * m_txt
Definition:
OutputWindow.h:61
git
src
terralib
qt
widgets
ce
OutputWindow.cpp
Generated on Wed Dec 18 2013 08:52:08 for TerraLib by
1.8.5