All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ScriptTabWidget.h
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 ScriptTabWidget.h
22 
23  \brief The main tab widget may be used to display several scripts.
24 */
25 
26 #ifndef __TERRALIB_CODE_EDITOR_CORE_INTERNAL_SCRIPTTABWIDGET_H
27 #define __TERRALIB_CODE_EDITOR_CORE_INTERNAL_SCRIPTTABWIDGET_H
28 
29 // TerraLib Code Editor
30 #include "../Config.h"
31 
32 // Qt
33 #include <QtGui/QTabWidget.h>
34 
35 namespace tce
36 {
37 // Forwar declaration
38  class Application;
39 
40  /*!
41  \class ScriptTabWidget
42 
43  \brief The main tab widget may be used to display several scripts.
44  */
45  class TCECOREEXPORT ScriptTabWidget : public QTabWidget
46  {
47  Q_OBJECT
48 
49  public:
50 
51  ScriptTabWidget(Application* parent);
52 
53  ~ScriptTabWidget();
54 
55  Application* getApplication() const;
56 
57  protected:
58 
59  void mousePressEvent(QMouseEvent* evt);
60 
61  private:
62 
63  Application* m_parent;
64  };
65 
66 } // end namespace tce
67 
68 #endif // __TERRALIB_CODE_EDITOR_CORE_INTERNAL_SCRIPTTABWIDGET_H
69 
Application * m_parent
The main tab widget may be used to display several scripts.