Merge lp:~alexwolf/stellarium/android-port-gui into lp:~brady.brenot/stellarium/android-port

Proposed by Alexander Wolf
Status: Merged
Merged at revision: 5176
Proposed branch: lp:~alexwolf/stellarium/android-port-gui
Merge into: lp:~brady.brenot/stellarium/android-port
Diff against target: 201 lines (+48/-53)
9 files modified
CMakeLists.txt (+3/-3)
plugins/MobileGui/CMakeLists.txt (+0/-6)
plugins/MobileGui/src/CMakeLists.txt (+0/-27)
src/CMakeLists.txt (+28/-0)
src/mobileGui/MobileGui.cpp (+9/-9)
src/mobileGui/StelWrapper.cpp (+5/-5)
src/mobileGui/StelWrapper.hpp (+1/-1)
src/mobileGui/SystemDisplayInfo.cpp (+1/-1)
src/mobileGui/UpdateSignallingItem.cpp (+1/-1)
To merge this branch: bzr merge lp:~alexwolf/stellarium/android-port-gui
Reviewer Review Type Date Requested Status
Brady Brenot Approve
Review via email: mp+98888@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Brady Brenot (brady.brenot) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2012-03-17 05:25:18 +0000
3+++ CMakeLists.txt 2012-03-22 17:43:24 +0000
4@@ -89,8 +89,7 @@
5 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_GL_NO_SCISSOR_TEST")
6
7 #configure the mobile GUI plugin. Android defaults:
8- SET(EXTERNAL_GUI_SRC_PATH "../plugins/MobileGui" CACHE PATH "The location of the plugin main directory i.e. the one containing the top level CMakeLists.txt")
9- SET(GUI_MODE External CACHE STRING "Choose the type of GUI to build, options are: Standard, None, External")
10+ SET(GUI_MODE Mobile CACHE STRING "Choose the type of GUI to build, options are: Standard, None, External, Mobile")
11
12 #force CMAKE to find QT
13 SET(NECESSITAS_QT_ROOT "C:/Users/Brady/necessitas/Android/Qt/480" CACHE STRING "Android: Location of necessitas Qt")
14@@ -164,7 +163,7 @@
15 ENDIF()
16
17
18-SET(GUI_MODE Standard CACHE STRING "Choose the type of GUI to build, options are: Standard, None, External")
19+SET(GUI_MODE Standard CACHE STRING "Choose the type of GUI to build, options are: Standard, None, External, Mobile")
20 SET(OPENGL_MODE Desktop CACHE STRING "Choose the type of openGL to use, options are: Desktop, ES2")
21
22 SET(GENERATE_PACKAGE_TARGET 1 CACHE BOOL "Set to 1 or true if you want to have make package target")
23@@ -429,6 +428,7 @@
24 ${CMAKE_SOURCE_DIR}/src/core/external/glues_stel/source/
25 ${CMAKE_SOURCE_DIR}/src/core/external/glues_stel/source/libtess
26 ${CMAKE_SOURCE_DIR}/src/gui
27+ ${CMAKE_SOURCE_DIR}/src/mobileGui
28 ${CMAKE_SOURCE_DIR}/src/scripting
29 ${OPENGL_INCLUDE_DIR}
30 ${ICONV_INCLUDE_DIR}
31
32=== removed file 'plugins/MobileGui/CMakeLists.txt'
33--- plugins/MobileGui/CMakeLists.txt 2012-02-22 06:30:41 +0000
34+++ plugins/MobileGui/CMakeLists.txt 1970-01-01 00:00:00 +0000
35@@ -1,6 +0,0 @@
36-# cmake config file for the QML-based MobileGUI plugin
37-SET(MOBILEGUI_VERSION "0.0.1")
38-
39-ADD_SUBDIRECTORY( src )
40-
41-INSTALL(FILES DESTINATION "modules/AngleMeasure")
42
43=== removed directory 'plugins/MobileGui/src'
44=== removed file 'plugins/MobileGui/src/CMakeLists.txt'
45--- plugins/MobileGui/src/CMakeLists.txt 2012-03-17 10:12:50 +0000
46+++ plugins/MobileGui/src/CMakeLists.txt 1970-01-01 00:00:00 +0000
47@@ -1,27 +0,0 @@
48-IF(BUILD_DYNAMIC_PLUGINS)
49- message(FATAL_ERROR "Cannot currently build MobileGui as a dynamic plugin.")
50-endif()
51-
52-SET(mobilegui_SRCS
53- MobileGui.hpp
54- MobileGui.cpp
55- systemdisplayinfo.hpp
56- systemdisplayinfo.cpp
57- stelwrapper.hpp
58- stelwrapper.cpp
59- updatesignallingitem.hpp
60- updatesignallingitem.cpp)
61-SET(mobilegui_MOC_HDRS
62- MobileGui.hpp
63- systemdisplayinfo.hpp
64- stelwrapper.hpp)
65-
66-SET(mobilegui_RES qml/qmlResources.qrc)
67-QT4_ADD_RESOURCES(mobilegui_RES_CXX ${mobilegui_RES})
68-
69-QT4_WRAP_CPP(mobilegui_MOC_SRCS ${mobilegui_MOC_HDRS})
70-
71-ADD_LIBRARY(ExternalGui STATIC ${mobilegui_SRCS} ${mobilegui_MOC_SRCS} ${mobilegui_RES_CXX})
72-TARGET_LINK_LIBRARIES(ExternalGui ${extLinkerOption})
73-SET_TARGET_PROPERTIES(ExternalGui PROPERTIES COMPILE_FLAGS "-DQT_STATICPLUGIN")
74-ADD_DEPENDENCIES(AllStaticPlugins ExternalGui)
75
76=== modified file 'src/CMakeLists.txt'
77--- src/CMakeLists.txt 2012-03-17 05:25:18 +0000
78+++ src/CMakeLists.txt 2012-03-22 17:43:24 +0000
79@@ -500,6 +500,34 @@
80 ADD_DEPENDENCIES(AllStaticPlugins StelNoGuiLib)
81 ENDIF()
82
83+#############################################################################################
84+############################# Mobile GUI plugin compilation #################################
85+#############################################################################################
86+IF (GUI_MODE STREQUAL "Mobile")
87+ SET(mobilegui_SRCS
88+ mobileGui/MobileGui.hpp
89+ mobileGui/MobileGui.cpp
90+ mobileGui/SystemDisplayInfo.hpp
91+ mobileGui/SystemDisplayInfo.cpp
92+ mobileGui/StelWrapper.hpp
93+ mobileGui/StelWrapper.cpp
94+ mobileGui/UpdateSignallingItem.hpp
95+ mobileGui/UpdateSignallingItem.cpp)
96+ SET(mobilegui_MOC_HDRS
97+ mobileGui/MobileGui.hpp
98+ mobileGui/SystemDisplayInfo.hpp
99+ mobileGui/StelWrapper.hpp)
100+ SET(mobilegui_RES
101+ mobileGui/qml/qmlResources.qrc)
102+ QT4_ADD_RESOURCES(mobilegui_RES_CXX ${mobilegui_RES})
103+ QT4_WRAP_CPP(mobilegui_MOC_SRCS ${mobilegui_MOC_HDRS})
104+ ADD_LIBRARY(MobileGuiLib STATIC ${mobilegui_SRCS} ${mobilegui_MOC_SRCS} ${mobilegui_RES_CXX})
105+ TARGET_LINK_LIBRARIES(MobileGuiLib ${extLinkerOption})
106+ SET_TARGET_PROPERTIES(MobileGuiLib PROPERTIES COMPILE_FLAGS "-DQT_STATICPLUGIN")
107+ SET(STELLARIUM_STATIC_PLUGINS_LIBRARIES ${STELLARIUM_STATIC_PLUGINS_LIBRARIES} ${CMAKE_BINARY_DIR}/src/libMobileGuiLib.a)
108+ ADD_DEPENDENCIES(AllStaticPlugins MobileGuiLib)
109+ENDIF()
110+
111
112 #############################################################################################
113 ############################# External GUI plugin compilation ###############################
114
115=== renamed directory 'plugins/MobileGui' => 'src/mobileGui'
116=== renamed file 'plugins/MobileGui/src/MobileGui.cpp' => 'src/mobileGui/MobileGui.cpp'
117--- plugins/MobileGui/src/MobileGui.cpp 2012-03-21 07:47:20 +0000
118+++ src/mobileGui/MobileGui.cpp 2012-03-22 17:43:24 +0000
119@@ -35,16 +35,16 @@
120 #include <QApplication>
121 #include <QPoint>
122
123-#include "systemdisplayinfo.hpp"
124-#include "updatesignallingitem.hpp"
125-#include "stelwrapper.hpp"
126+#include "SystemDisplayInfo.hpp"
127+#include "UpdateSignallingItem.hpp"
128+#include "StelWrapper.hpp"
129
130-#include "../../../src/core/StelModuleMgr.hpp"
131-#include "../../../src/core/StelApp.hpp"
132-#include "../../../src/core/StelMovementMgr.hpp"
133-#include "../../../src/core/StelAppGraphicsWidget.hpp"
134-#include "../../../src/core/StelTranslator.hpp"
135-#include "../../../src/core/StelCore.hpp"
136+#include "StelModuleMgr.hpp"
137+#include "StelApp.hpp"
138+#include "StelMovementMgr.hpp"
139+#include "StelAppGraphicsWidget.hpp"
140+#include "StelTranslator.hpp"
141+#include "StelCore.hpp"
142
143 StelGuiBase* StelMobileGuiPluginInterface::getStelGuiBase() const
144 {
145
146=== renamed file 'plugins/MobileGui/src/MobileGui.hpp' => 'src/mobileGui/MobileGui.hpp'
147=== renamed file 'plugins/MobileGui/src/stelwrapper.cpp' => 'src/mobileGui/StelWrapper.cpp'
148--- plugins/MobileGui/src/stelwrapper.cpp 2012-03-17 10:12:50 +0000
149+++ src/mobileGui/StelWrapper.cpp 2012-03-22 17:43:24 +0000
150@@ -1,9 +1,9 @@
151-#include "stelwrapper.hpp"
152+#include "StelWrapper.hpp"
153
154-#include "../../../src/core/StelModuleMgr.hpp"
155-#include "../../../src/core/StelApp.hpp"
156-#include "../../../src/core/StelObjectMgr.hpp"
157-#include "../../../src/core/StelMovementMgr.hpp"
158+#include "StelModuleMgr.hpp"
159+#include "StelApp.hpp"
160+#include "StelObjectMgr.hpp"
161+#include "StelMovementMgr.hpp"
162 #include "MobileGui.hpp"
163
164 StelWrapper::StelWrapper(QObject *parent) :
165
166=== renamed file 'plugins/MobileGui/src/stelwrapper.hpp' => 'src/mobileGui/StelWrapper.hpp'
167--- plugins/MobileGui/src/stelwrapper.hpp 2012-03-17 10:12:50 +0000
168+++ src/mobileGui/StelWrapper.hpp 2012-03-22 17:43:24 +0000
169@@ -2,7 +2,7 @@
170 #define STELWRAPPER_HPP
171
172 #include <QObject>
173-#include "../../../src/core/StelObject.hpp"
174+#include "StelObject.hpp"
175
176 //! @class Allows QML access to information about the world
177 class StelWrapper : public QObject
178
179=== renamed file 'plugins/MobileGui/src/systemdisplayinfo.cpp' => 'src/mobileGui/SystemDisplayInfo.cpp'
180--- plugins/MobileGui/src/systemdisplayinfo.cpp 2012-03-04 07:49:21 +0000
181+++ src/mobileGui/SystemDisplayInfo.cpp 2012-03-22 17:43:24 +0000
182@@ -1,4 +1,4 @@
183-#include "systemdisplayinfo.hpp"
184+#include "SystemDisplayInfo.hpp"
185
186 QTM_USE_NAMESPACE
187
188
189=== renamed file 'plugins/MobileGui/src/systemdisplayinfo.hpp' => 'src/mobileGui/SystemDisplayInfo.hpp'
190=== renamed file 'plugins/MobileGui/src/updatesignallingitem.cpp' => 'src/mobileGui/UpdateSignallingItem.cpp'
191--- plugins/MobileGui/src/updatesignallingitem.cpp 2012-03-05 09:06:24 +0000
192+++ src/mobileGui/UpdateSignallingItem.cpp 2012-03-22 17:43:24 +0000
193@@ -1,4 +1,4 @@
194-#include "updatesignallingitem.hpp"
195+#include "UpdateSignallingItem.hpp"
196 #include "MobileGui.hpp"
197
198 UpdateSignallingItem::UpdateSignallingItem(QGraphicsItem * parent, MobileGui *gui) :
199
200=== renamed file 'plugins/MobileGui/src/updatesignallingitem.hpp' => 'src/mobileGui/UpdateSignallingItem.hpp'
201=== renamed directory 'plugins/MobileGui/src/qml' => 'src/mobileGui/qml'

Subscribers

People subscribed via source and target branches