All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OutsideArea.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2014 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 OutsideArea.h
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 #ifndef __TERRALIB_LAYOUT_INTERNAL_OUTSIDE_AREA_H
29 #define __TERRALIB_LAYOUT_INTERNAL_OUTSIDE_AREA_H
30 
31 // Qt
32 #include <QObject>
33 
34 // TerraLib
35 #include "EnumMode.h"
36 
37 class QWidget;
38 class QMenu;
39 class QAction;
40 
41 namespace te
42 {
43  namespace layout
44  {
45  class PropertiesOutside;
46  class ObjectInspectorOutside;
47  class ToolbarOutside;
48 
49  class OutsideArea : public QObject
50  {
51  Q_OBJECT //for slots/signals
52 
53  public:
54 
55  OutsideArea(QWidget* dockParent = 0, QMenu* mnuLayout = 0);
56  virtual ~OutsideArea();
57 
61 
62  virtual void openAllDocks();
63  virtual void closeAllDocks();
64 
65  virtual void openMainMenu();
66  virtual void closeMainMenu();
67 
68  public slots:
69 
70  virtual void onMainMenuTriggered(QAction* action);
71 
72  signals:
73 
74  void changeMenuContext(bool change);
75 
76  protected:
77 
78  virtual void init();
79  virtual void createPropertiesDock();
80  virtual void createInspectorDock();
81  virtual void createToolbarDock();
82  virtual void createMainMenu();
83 
84  virtual QAction* createAction(std::string text, std::string objName, std::string icon, std::string tooltip = "");
85 
86  virtual void changeAction(LayoutMode mode);
87 
88  protected:
89 
90  QWidget* m_dockParent;
94  QMenu* m_mainMenu;
95  QMenu* m_parentMenu;
96 
97  /* Menu options */
98 
99  std::string m_optionNew;
100  std::string m_optionUpdate;
101  std::string m_optionImport;
102  std::string m_optionExport;
103  std::string m_optionPageConfig;
104  std::string m_optionPrint;
105  std::string m_optionExit;
106  };
107  }
108 }
109 
110 
111 #endif
std::string m_optionPrint
Definition: OutsideArea.h:104
virtual void changeAction(LayoutMode mode)
virtual void createInspectorDock()
std::string m_optionPageConfig
Definition: OutsideArea.h:103
virtual void openMainMenu()
ObjectInspectorOutside * m_dockInspector
Definition: OutsideArea.h:92
virtual void openAllDocks()
ObjectInspectorOutside * getObjectInspectorOutside()
std::string m_optionNew
Definition: OutsideArea.h:99
virtual QAction * createAction(std::string text, std::string objName, std::string icon, std::string tooltip="")
LayoutMode
Enum LayoutMode. This is the enumeration of the components types.
Definition: EnumMode.h:38
std::string m_optionExport
Definition: OutsideArea.h:102
ToolbarOutside * m_dockToolbar
Definition: OutsideArea.h:93
ToolbarOutside * getToolbarOutside()
virtual void closeMainMenu()
virtual void createToolbarDock()
std::string m_optionExit
Definition: OutsideArea.h:105
virtual void createPropertiesDock()
virtual void onMainMenuTriggered(QAction *action)
OutsideArea(QWidget *dockParent=0, QMenu *mnuLayout=0)
Definition: OutsideArea.cpp:47
PropertiesOutside * m_dockProperties
Definition: OutsideArea.h:91
virtual void closeAllDocks()
std::string m_optionUpdate
Definition: OutsideArea.h:100
std::string m_optionImport
Definition: OutsideArea.h:101
void changeMenuContext(bool change)
PropertiesOutside * getPropertiesOutside()
virtual void createMainMenu()