OutputWindow.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
3 
4  This file is part of the TerraLib - a Framework for building GIS enabled applications.
5 
6  TerraLib is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License,
9  or (at your option) any later version.
10 
11  TerraLib is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with TerraLib. See COPYING. If not, write to
18  TerraLib Team at <terralib-team@terralib.org>.
19  */
20 
21 /*!
22  \file terralib/qsci/ceditor/OutputWindow.h
23 
24  \brief A widget to output the script execution.
25  */
26 
27 #ifndef __TERRALIB_QSCI_CEDITOR_OUTPUTWINDOW_H__
28 #define __TERRALIB_QSCI_CEDITOR_OUTPUTWINDOW_H__
29 
30 // TerraLib Code Editor
31 #include "../Config.h"
32 
33 // Qt
34 #include <QDockWidget>
35 
36 // Forward declaration
37 class QTextEdit;
38 
39 class QProcess;
40 
41 class OutPutStream;
42 
43 namespace te
44 {
45  namespace ce
46  {
47  /*!
48  \class OutputWindow
49 
50  \brief A widget to output the script execution.
51  */
52  class TECEDITOREXPORT OutputWindow: public QDockWidget
53  {
54  Q_OBJECT
55 
56  public:
57 
58  OutputWindow(QWidget* parent = 0);
59 
60  ~OutputWindow();
61 
62  const QTextEdit* getText() const;
63 
64  QTextEdit* getText();
65 
66  protected slots :
67 
68  void redirectOutput();
69 
70  private:
71 
72  QTextEdit* m_txt;
73 
74  QProcess* m_proc;
75 
76  OutPutStream* m_out;
77  };
78  } // end namespace tce
79 }
80 
81 #endif // __TERRALIB_QSCI_CEDITOR_OUTPUTWINDOW_H__
A widget to output the script execution.
Definition: OutputWindow.h:52
#define TECEDITOREXPORT
Definition: Config.h:40
OutPutStream * m_out
Definition: OutputWindow.h:76
URI C++ Library.