All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MainLayout.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2013 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser 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 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 Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file MainLayout.h
22 
23  \brief A class
24  */
25 
26 #ifndef __TERRALIB_LAYOUT_INTERNAL_MAINLAYOUT_H
27 #define __TERRALIB_LAYOUT_INTERNAL_MAINLAYOUT_H
28 
29 // TerraLib
30 #include "../../../../common/Singleton.h"
31 #include "../../../include/core/Config.h"
32 
33 class QWidget;
34 class QGroupBox;
35 class QStatusBar;
36 class QMenu;
37 
38 namespace te
39 {
40  namespace layout
41  {
42  class View;
43  class DisplayOutside;
44  class BuildContext;
45  class OutsideArea;
46 
47  /*!
48  \class
49 
50  \brief A class ...within TerraLib environment.
51 
52  */
53  class TELAYOUTEXPORT MainLayout : public te::common::Singleton<MainLayout>
54  {
56 
57  public:
58 
59  //! Destructor.
60  ~MainLayout();
61 
62  /*!
63  \brief Inializes
64 
65  This methods
66  \exception te::layout::Exception if the
67  */
68  virtual void init(QWidget* mainWindow = 0, QMenu* mnuLayout = 0);
69 
70  protected:
71 
72  /*! \brief Constructor. */
73  MainLayout();
74  void createDockLayoutDisplay(QWidget* mainWindow, View* view);
75  void createLayoutContext(int width, int height);
76  void finish();
77 
80  QGroupBox* m_groupBox;
81  QStatusBar* m_statusBar;
84 
85  private:
86 
87  /*!
88  \brief Copy constructor not allowed.
89 
90  \param rhs The right-hand-side copy that would be used to copy from.
91  */
92  MainLayout(const MainLayout& rhs);
93 
94  /*!
95  \brief Assignment operator not allowed.
96 
97  \param rhs The right-hand-side copy that would be used to copy from.
98 
99  \return A reference to this object.
100  */
101  MainLayout& operator=(const MainLayout& rhs);
102  };
103  }
104 }
105 #endif // __TERRALIB_LAYOUT_INTERNAL_MAINLAYOUT_H
DisplayOutside * m_dockLayoutDisplay
Definition: MainLayout.h:79
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:99
BuildContext * m_buildContext
Definition: MainLayout.h:82
OutsideArea * m_outsideArea
Definition: MainLayout.h:83
QGroupBox * m_groupBox
Definition: MainLayout.h:80
QStatusBar * m_statusBar
Definition: MainLayout.h:81
Template support for singleton pattern.
Definition: Singleton.h:100