blob: 0aa50233f15b58d77b439bff8976fd6687693cd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
|
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../shared
${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
${CMAKE_BINARY_DIR}/include
${ZLIB_INCLUDE_DIRS}
)
link_directories()
##### tqtdesignercore (shared)
set( target tqtdesignercore )
set( ${target}_SOURCES
command.cpp
formwindow.cpp
defs.cpp
layout.cpp
mainwindow.cpp
mainwindowactions.cpp
metadatabase.cpp
pixmapchooser.cpp
propertyeditor.cpp
resource.cpp
sizehandle.cpp
orderindicator.cpp
widgetfactory.cpp
hierarchyview.cpp
listboxeditorimpl.cpp
newformimpl.cpp
workspace.cpp
listvieweditorimpl.cpp
customwidgeteditorimpl.cpp
paletteeditorimpl.cpp
styledbutton.cpp
iconvieweditorimpl.cpp
multilineeditorimpl.cpp
formsettingsimpl.cpp
asciivalidator.cpp
designerapp.cpp
designerappiface.cpp
actioneditorimpl.cpp
actionlistview.cpp
actiondnd.cpp
project.cpp
projectsettingsimpl.cpp
sourceeditor.cpp
outputwindow.cpp
../shared/widgetdatabase.cpp
../shared/parser.cpp
pixmapcollection.cpp
previewframe.cpp
previewwidgetimpl.cpp
paletteeditoradvancedimpl.cpp
sourcefile.cpp
wizardeditorimpl.cpp
qcompletionedit.cpp
timestamp.cpp
formfile.cpp
widgetaction.cpp
propertyobject.cpp
startdialogimpl.cpp
syntaxhighlighter_html.cpp
connectionitems.cpp
editfunctionsimpl.cpp
variabledialogimpl.cpp
listviewdnd.cpp
listboxdnd.cpp
listdnd.cpp
listboxrename.cpp
connectiontable.cpp
popupmenueditor.cpp
menubareditor.cpp
listboxeditor.ui
editfunctions.ui
newform.ui
listvieweditor.ui
customwidgeteditor.ui
paletteeditor.ui
iconvieweditor.ui
preferences.ui
multilineeditor.ui
formsettings.ui
about.ui
pixmapfunction.ui
createtemplate.ui
actioneditor.ui
projectsettings.ui
finddialog.ui
replacedialog.ui
gotolinedialog.ui
pixmapcollectioneditor.ui
previewwidget.ui
paletteeditoradvanced.ui
wizardeditor.ui
listeditor.ui
startdialog.ui
richtextfontdialog.ui
connectiondialog.ui
variabledialog.ui
configtoolboxdialog.ui
embed_image_collection.cpp
)
set( ${target}_INCLUDES
command.h
defs.h
formwindow.h
layout.h
mainwindow.h
metadatabase.h
pixmapchooser.h
propertyeditor.h
resource.h
sizehandle.h
orderindicator.h
widgetfactory.h
hierarchyview.h
listboxeditorimpl.h
newformimpl.h
workspace.h
listvieweditorimpl.h
customwidgeteditorimpl.h
paletteeditorimpl.h
styledbutton.h
iconvieweditorimpl.h
multilineeditorimpl.h
formsettingsimpl.h
asciivalidator.h
../interfaces/widgetinterface.h
../interfaces/actioninterface.h
../interfaces/filterinterface.h
../interfaces/designerinterface.h
designerapp.h
designerappiface.h
actioneditorimpl.h
actionlistview.h
actiondnd.h
project.h
projectsettingsimpl.h
sourceeditor.h
outputwindow.h
../shared/widgetdatabase.h
../shared/parser.h
previewframe.h
previewwidgetimpl.h
paletteeditoradvancedimpl.h
pixmapcollection.h
sourcefile.h
wizardeditorimpl.h
qcompletionedit.h
timestamp.h
formfile.h
widgetaction.h
propertyobject.h
startdialogimpl.h
syntaxhighlighter_html.h
connectionitems.h
editfunctionsimpl.h
variabledialogimpl.h
listviewdnd.h
listboxdnd.h
listdnd.h
listboxrename.h
connectiontable.h
popupmenueditor.h
menubareditor.h
)
if( WITH_MODULE_SQL )
list( APPEND ${target}_SOURCES
database.cpp dbconnectionimpl.cpp dbconnectionsimpl.cpp
dbconnections.ui dbconnection.ui dbconnectioneditor.ui
)
list( APPEND ${target}_INCLUDES
database.h dbconnectionimpl.h dbconnectionsimpl.h
)
endif()
if( WITH_MODULE_TABLE )
list( APPEND ${target}_SOURCES
tableeditorimpl.cpp
tableeditor.ui
)
list( APPEND ${target}_INCLUDES tableeditorimpl.h )
endif()
tde_add_library( ${target} SHARED
SOURCES ${${target}_SOURCES}
LINK tqt-mt-shared tqassistantclient-shared tqui-shared
VERSION 1.0.0
DESTINATION ${LIB_INSTALL_DIR}
DEPENDENCIES tquic
)
set_property(
TARGET ${target}-shared
APPEND PROPERTY COMPILE_DEFINITIONS
DESIGNER
QT_INTERNAL_XML
QT_INTERNAL_WORKSPACE
QT_INTERNAL_TABLE
)
tqt_automoc( ${target}-shared INCLUDES ${${target}_INCLUDES} )
##### embed images
file(
GLOB ${target}_IMAGES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/images/*.png
)
list( SORT ${target}_IMAGES )
add_custom_command( OUTPUT embed_image_collection.cpp
COMMAND ${UIC_EXECUTABLE}
-embed ${target} ${${target}_IMAGES}
-o ${CMAKE_CURRENT_BINARY_DIR}/embed_image_collection.cpp
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS tquic
COMMENT "Embed images for ${target}"
)
add_custom_target( ${target}-embed-images
COMMENT "Generate embed images for ${target}"
DEPENDS ${CURRENT_CMAKE_BINARY_DIR}/embed_image_collection.cpp
)
##### other data
tde_create_translated_desktop(
SOURCE tqdesigner.desktop
DESTINATION ${QT_INSTALL_SHARE}/applications
)
install(
FILES images/appicon.png
DESTINATION ${QT_INSTALL_SHARE}/pixmaps
RENAME tqdesigner.png
)
if( BUILD_TRANSLATIONS )
tqt_create_translation()
endif()
file(
GLOB templates
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../templates/*
)
list( SORT templates )
install(
FILES ${templates}
DESTINATION ${QT_INSTALL_DATA}/templates
)
|