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 
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 
50 {
51 }
52 
53 const QTextEdit* tce::OutputWindow::getText() const
54 {
55  return m_txt;
56 }
57 
59 {
60  return m_txt;
61 }
62 
const QTextEdit * getText() const
A widget to output the script execution.
OutputWindow(QWidget *parent=0)
QTextEdit * m_txt
Definition: OutputWindow.h:61