[5079a0] | 1 | # Below is all for the User Interface
|
---|
| 2 |
|
---|
| 3 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/UIElements
|
---|
| 4 |
|
---|
[e5bf2b] | 5 | AM_LDFLAGS = ${CodePatterns_LIBS} -ldl
|
---|
| 6 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${QT_CXXFLAGS}
|
---|
[d5240d] | 7 |
|
---|
[5079a0] | 8 | VIEWSOURCE = \
|
---|
| 9 | Views/View.cpp \
|
---|
| 10 | Views/StringView.cpp \
|
---|
| 11 | Views/MethodStringView.cpp \
|
---|
| 12 | Views/StreamStringView.cpp
|
---|
| 13 | VIEWHEADER = \
|
---|
| 14 | Views/View.hpp \
|
---|
| 15 | Views/StringView.hpp \
|
---|
| 16 | Views/MethodStringView.hpp \
|
---|
| 17 | Views/StreamStringView.hpp
|
---|
| 18 |
|
---|
| 19 | MENUSOURCE = \
|
---|
| 20 | Menu/Menu.cpp \
|
---|
[8bcf3f] | 21 | Menu/MenuDescription.cpp \
|
---|
[b59da6] | 22 | Menu/MenuInterface.cpp
|
---|
| 23 |
|
---|
[5079a0] | 24 | MENUHEADER = \
|
---|
| 25 | Menu/Menu.hpp \
|
---|
[8bcf3f] | 26 | Menu/MenuDescription.hpp \
|
---|
[b59da6] | 27 | Menu/MenuInterface.hpp
|
---|
| 28 |
|
---|
| 29 | TEXTMENUSOURCE = \
|
---|
[f0f9a6] | 30 | Menu/TextMenu/TxMenuLeaveAction.cpp \
|
---|
[b59da6] | 31 | Menu/TextMenu/TxMenu.cpp \
|
---|
| 32 | Menu/TextMenu/MenuItem.cpp \
|
---|
| 33 | Menu/TextMenu/SubMenuItem.cpp \
|
---|
| 34 | Menu/TextMenu/ActionMenuItem.cpp \
|
---|
[e9be39] | 35 | Menu/TextMenu/SeparatorMenuItem.cpp \
|
---|
[b59da6] | 36 | Menu/TextMenu/DisplayMenuItem.cpp
|
---|
| 37 |
|
---|
| 38 | TEXTMENUHEADER = \
|
---|
| 39 | Menu/TextMenu/TextMenu.hpp \
|
---|
| 40 | Menu/TextMenu/TxMenu.hpp \
|
---|
| 41 | Menu/TextMenu/MenuItem.hpp \
|
---|
| 42 | Menu/TextMenu/SubMenuItem.hpp \
|
---|
| 43 | Menu/TextMenu/ActionMenuItem.hpp \
|
---|
[e9be39] | 44 | Menu/TextMenu/SeparatorMenuItem.hpp \
|
---|
[b59da6] | 45 | Menu/TextMenu/DisplayMenuItem.hpp
|
---|
[5079a0] | 46 |
|
---|
| 47 | UISOURCE = \
|
---|
| 48 | ${ACTIONSSOURCE} \
|
---|
| 49 | ${COMMANDLINEUISOURCE} \
|
---|
| 50 | ${MENUSOURCE} \
|
---|
[b59da6] | 51 | ${TEXTMENUSOURCE} \
|
---|
[5079a0] | 52 | ${TEXTUISOURCE} \
|
---|
| 53 | ${VIEWSOURCE} \
|
---|
[8df74d] | 54 | Query/AtomQuery.cpp \
|
---|
| 55 | Query/AtomsQuery.cpp \
|
---|
| 56 | Query/BooleanQuery.cpp \
|
---|
| 57 | Query/BoxQuery.cpp \
|
---|
| 58 | Query/DoubleQuery.cpp \
|
---|
| 59 | Query/DoublesQuery.cpp \
|
---|
| 60 | Query/ElementQuery.cpp \
|
---|
| 61 | Query/ElementsQuery.cpp \
|
---|
| 62 | Query/EmptyQuery.cpp \
|
---|
| 63 | Query/FileQuery.cpp \
|
---|
| 64 | Query/IntQuery.cpp \
|
---|
| 65 | Query/IntsQuery.cpp \
|
---|
| 66 | Query/MoleculeQuery.cpp \
|
---|
| 67 | Query/MoleculesQuery.cpp \
|
---|
| 68 | Query/Query.cpp \
|
---|
[0275ad] | 69 | Query/RandomNumberDistribution_ParametersQuery.cpp \
|
---|
[8df74d] | 70 | Query/StringQuery.cpp \
|
---|
| 71 | Query/StringsQuery.cpp \
|
---|
| 72 | Query/VectorQuery.cpp \
|
---|
| 73 | Query/VectorsQuery.cpp \
|
---|
[5079a0] | 74 | Dialog.cpp \
|
---|
[861874] | 75 | MainWindow.cpp
|
---|
[5079a0] | 76 |
|
---|
| 77 | UIHEADER = \
|
---|
| 78 | ${ACTIONSHEADER} \
|
---|
| 79 | ${COMMANDLINEUIHEADER} \
|
---|
| 80 | ${MENUHEADER} \
|
---|
[b59da6] | 81 | ${TEXTMENUHEADER} \
|
---|
[5079a0] | 82 | ${TEXTUIHEADER} \
|
---|
| 83 | ${VIEWHEADER} \
|
---|
| 84 | Dialog.hpp \
|
---|
[861874] | 85 | MainWindow.hpp
|
---|
[5079a0] | 86 |
|
---|
| 87 | TEXTUISOURCE = \
|
---|
[8df74d] | 88 | TextUI/Query/AtomsTextQuery.cpp \
|
---|
| 89 | TextUI/Query/AtomTextQuery.cpp \
|
---|
| 90 | TextUI/Query/BooleanTextQuery.cpp \
|
---|
| 91 | TextUI/Query/BoxTextQuery.cpp \
|
---|
| 92 | TextUI/Query/DoubleTextQuery.cpp \
|
---|
| 93 | TextUI/Query/DoublesTextQuery.cpp \
|
---|
| 94 | TextUI/Query/ElementTextQuery.cpp \
|
---|
| 95 | TextUI/Query/ElementsTextQuery.cpp \
|
---|
| 96 | TextUI/Query/EmptyTextQuery.cpp \
|
---|
| 97 | TextUI/Query/FileTextQuery.cpp \
|
---|
| 98 | TextUI/Query/IntTextQuery.cpp \
|
---|
| 99 | TextUI/Query/IntsTextQuery.cpp \
|
---|
| 100 | TextUI/Query/MoleculesTextQuery.cpp \
|
---|
| 101 | TextUI/Query/MoleculeTextQuery.cpp \
|
---|
| 102 | TextUI/Query/StringTextQuery.cpp \
|
---|
| 103 | TextUI/Query/StringsTextQuery.cpp \
|
---|
| 104 | TextUI/Query/VectorTextQuery.cpp \
|
---|
| 105 | TextUI/Query/VectorsTextQuery.cpp \
|
---|
[0275ad] | 106 | TextUI/Query/RandomNumberDistribution_ParametersTextQuery.cpp \
|
---|
[5079a0] | 107 | TextUI/TextDialog.cpp \
|
---|
| 108 | TextUI/TextStatusIndicator.cpp \
|
---|
| 109 | TextUI/TextUIFactory.cpp \
|
---|
| 110 | TextUI/TextWindow.cpp
|
---|
| 111 | TEXTUIHEADER = \
|
---|
[738ae1] | 112 | TextUI/Query/TextQuery.hpp \
|
---|
[5079a0] | 113 | TextUI/TextDialog.hpp \
|
---|
| 114 | TextUI/TextStatusIndicator.hpp \
|
---|
| 115 | TextUI/TextUIFactory.hpp \
|
---|
| 116 | TextUI/TextWindow.hpp
|
---|
| 117 |
|
---|
| 118 | COMMANDLINEUISOURCE = \
|
---|
[8df74d] | 119 | CommandLineUI/Query/AtomCommandLineQuery.cpp \
|
---|
| 120 | CommandLineUI/Query/AtomsCommandLineQuery.cpp \
|
---|
| 121 | CommandLineUI/Query/BooleanCommandLineQuery.cpp \
|
---|
| 122 | CommandLineUI/Query/BoxCommandLineQuery.cpp \
|
---|
| 123 | CommandLineUI/Query/DoubleCommandLineQuery.cpp \
|
---|
| 124 | CommandLineUI/Query/DoublesCommandLineQuery.cpp \
|
---|
| 125 | CommandLineUI/Query/ElementCommandLineQuery.cpp \
|
---|
| 126 | CommandLineUI/Query/ElementsCommandLineQuery.cpp \
|
---|
| 127 | CommandLineUI/Query/EmptyCommandLineQuery.cpp \
|
---|
| 128 | CommandLineUI/Query/FileCommandLineQuery.cpp \
|
---|
| 129 | CommandLineUI/Query/IntCommandLineQuery.cpp \
|
---|
| 130 | CommandLineUI/Query/IntsCommandLineQuery.cpp \
|
---|
| 131 | CommandLineUI/Query/MoleculeCommandLineQuery.cpp \
|
---|
| 132 | CommandLineUI/Query/MoleculesCommandLineQuery.cpp \
|
---|
| 133 | CommandLineUI/Query/StringCommandLineQuery.cpp \
|
---|
| 134 | CommandLineUI/Query/StringsCommandLineQuery.cpp \
|
---|
| 135 | CommandLineUI/Query/VectorCommandLineQuery.cpp \
|
---|
| 136 | CommandLineUI/Query/VectorsCommandLineQuery.cpp \
|
---|
[0275ad] | 137 | CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp \
|
---|
[5079a0] | 138 | CommandLineUI/CommandLineDialog.cpp \
|
---|
[e4afb4] | 139 | CommandLineUI/CommandLineParser.cpp \
|
---|
[3a21a7] | 140 | CommandLineUI/CommandLineParser_validate.cpp \
|
---|
[5079a0] | 141 | CommandLineUI/CommandLineStatusIndicator.cpp \
|
---|
| 142 | CommandLineUI/CommandLineUIFactory.cpp \
|
---|
[e4afb4] | 143 | CommandLineUI/CommandLineWindow.cpp \
|
---|
| 144 | CommandLineUI/TypeEnumContainer.cpp
|
---|
| 145 |
|
---|
[5079a0] | 146 | COMMANDLINEUIHEADER = \
|
---|
[87db7a] | 147 | CommandLineUI/Query/CommandLineQuery.hpp \
|
---|
[5079a0] | 148 | CommandLineUI/CommandLineDialog.hpp \
|
---|
[e4afb4] | 149 | CommandLineUI/CommandLineParser.hpp \
|
---|
[3a21a7] | 150 | CommandLineUI/CommandLineParser_validate.hpp \
|
---|
[5079a0] | 151 | CommandLineUI/CommandLineStatusIndicator.hpp \
|
---|
| 152 | CommandLineUI/CommandLineUIFactory.hpp \
|
---|
[e4afb4] | 153 | CommandLineUI/CommandLineWindow.hpp \
|
---|
| 154 | CommandLineUI/TypeEnumContainer.cpp
|
---|
[5079a0] | 155 |
|
---|
[1e0861] | 156 | QTUIMOC_HEADER = \
|
---|
| 157 | Qt4/QtDialog.hpp \
|
---|
| 158 | Qt4/QtMainWindow.hpp \
|
---|
| 159 | Qt4/Pipe/AtomQtQueryPipe.hpp \
|
---|
| 160 | Qt4/Pipe/AtomsQtQueryPipe.hpp \
|
---|
| 161 | Qt4/Pipe/BooleanQtQueryPipe.hpp \
|
---|
| 162 | Qt4/Pipe/BoxQtQueryPipe.hpp \
|
---|
| 163 | Qt4/Pipe/DoubleQtQueryPipe.hpp \
|
---|
| 164 | Qt4/Pipe/ElementsQtQueryPipe.hpp \
|
---|
| 165 | Qt4/Pipe/EmptyQtQueryPipe.hpp \
|
---|
| 166 | Qt4/Pipe/ElementQtQueryPipe.hpp \
|
---|
| 167 | Qt4/Pipe/FileQtQueryPipe.hpp \
|
---|
| 168 | Qt4/Pipe/IntQtQueryPipe.hpp \
|
---|
| 169 | Qt4/Pipe/MoleculeQtQueryPipe.hpp \
|
---|
| 170 | Qt4/Pipe/MoleculesQtQueryPipe.hpp \
|
---|
| 171 | Qt4/Pipe/StringQtQueryPipe.hpp \
|
---|
| 172 | Qt4/Pipe/VectorQtQueryPipe.hpp \
|
---|
| 173 | Qt4/Pipe/VectorsQtQueryPipe.hpp \
|
---|
[0275ad] | 174 | Qt4/Pipe/RandomNumberDistribution_ParametersQtQueryPipe.hpp \
|
---|
[1e0861] | 175 | Menu/Qt4/QtMenuPipe.hpp \
|
---|
| 176 | Views/Qt4/QtWorldView.hpp \
|
---|
| 177 | Views/Qt4/GLMoleculeView.hpp \
|
---|
| 178 | Views/Qt4/QtMoleculeView.hpp \
|
---|
| 179 | Views/Qt4/QtStatusBar.hpp
|
---|
| 180 |
|
---|
| 181 | QTUISOURCE = allmocs.moc.cpp \
|
---|
| 182 | Qt4/Pipe/AtomQtQueryPipe.cpp \
|
---|
| 183 | Qt4/Pipe/AtomsQtQueryPipe.cpp \
|
---|
| 184 | Qt4/Pipe/BooleanQtQueryPipe.cpp \
|
---|
| 185 | Qt4/Pipe/BoxQtQueryPipe.cpp \
|
---|
| 186 | Qt4/Pipe/DoubleQtQueryPipe.cpp \
|
---|
| 187 | Qt4/Pipe/ElementsQtQueryPipe.cpp \
|
---|
| 188 | Qt4/Pipe/EmptyQtQueryPipe.cpp \
|
---|
| 189 | Qt4/Pipe/ElementQtQueryPipe.cpp \
|
---|
| 190 | Qt4/Pipe/FileQtQueryPipe.cpp \
|
---|
| 191 | Qt4/Pipe/IntQtQueryPipe.cpp \
|
---|
| 192 | Qt4/Pipe/MoleculeQtQueryPipe.cpp \
|
---|
| 193 | Qt4/Pipe/MoleculesQtQueryPipe.cpp \
|
---|
| 194 | Qt4/Pipe/StringQtQueryPipe.cpp \
|
---|
| 195 | Qt4/Pipe/VectorQtQueryPipe.cpp \
|
---|
| 196 | Qt4/Pipe/VectorsQtQueryPipe.cpp \
|
---|
[0275ad] | 197 | Qt4/Pipe/RandomNumberDistribution_ParametersQtQueryPipe.cpp \
|
---|
[1e0861] | 198 | Qt4/Query/AtomQtQuery.cpp \
|
---|
| 199 | Qt4/Query/AtomsQtQuery.cpp \
|
---|
| 200 | Qt4/Query/BooleanQtQuery.cpp \
|
---|
| 201 | Qt4/Query/BoxQtQuery.cpp \
|
---|
| 202 | Qt4/Query/DoubleQtQuery.cpp \
|
---|
| 203 | Qt4/Query/DoublesQtQuery.cpp \
|
---|
| 204 | Qt4/Query/ElementQtQuery.cpp \
|
---|
| 205 | Qt4/Query/ElementsQtQuery.cpp \
|
---|
| 206 | Qt4/Query/EmptyQtQuery.cpp \
|
---|
| 207 | Qt4/Query/FileQtQuery.cpp \
|
---|
| 208 | Qt4/Query/IntQtQuery.cpp \
|
---|
| 209 | Qt4/Query/IntsQtQuery.cpp \
|
---|
| 210 | Qt4/Query/MoleculeQtQuery.cpp \
|
---|
| 211 | Qt4/Query/MoleculesQtQuery.cpp \
|
---|
| 212 | Qt4/Query/StringQtQuery.cpp \
|
---|
| 213 | Qt4/Query/StringsQtQuery.cpp \
|
---|
| 214 | Qt4/Query/VectorQtQuery.cpp \
|
---|
| 215 | Qt4/Query/VectorsQtQuery.cpp \
|
---|
[0275ad] | 216 | Qt4/Query/RandomNumberDistribution_ParametersQtQuery.cpp \
|
---|
[1e0861] | 217 | Qt4/QtMainWindow.cpp \
|
---|
| 218 | Qt4/QtDialog.cpp \
|
---|
| 219 | Qt4/QtUIFactory.cpp \
|
---|
| 220 | Menu/Qt4/QtMenuPipe.cpp \
|
---|
| 221 | Views/Qt4/QtWorldView.cpp \
|
---|
| 222 | Views/Qt4/GLMoleculeView.cpp \
|
---|
| 223 | Views/Qt4/QtMoleculeView.cpp \
|
---|
| 224 | Views/Qt4/QtStatusBar.cpp
|
---|
| 225 |
|
---|
| 226 | QTUIHEADER = \
|
---|
| 227 | ${QTUIMOC_HEADER} \
|
---|
| 228 | Menu/Qt4/QtMenu.hpp \
|
---|
| 229 | Qt4/Query/QtQuery.hpp \
|
---|
| 230 | Qt4/QtUIFactory.hpp \
|
---|
| 231 | Qt4/Pipe/QtQueryListPipe.hpp
|
---|
| 232 |
|
---|
| 233 | QTUI_DEFS =
|
---|
| 234 |
|
---|
[d5240d] | 235 | GUI_LIBS =
|
---|
[1e0861] | 236 |
|
---|
| 237 |
|
---|
[acbe1b] | 238 | lib_LTLIBRARIES = libMolecuilderUI.la \
|
---|
| 239 | libMolecuilderQtUI.la
|
---|
[e5bf2b] | 240 | libMolecuilderUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
|
---|
| 241 | libMolecuilderQtUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
|
---|
| 242 | libMolecuilderUI_la_LIBADD = \
|
---|
| 243 | ../Actions/libMolecuilderActions.la
|
---|
| 244 | libMolecuilderQtUI_la_LIBADD = \
|
---|
| 245 | ../Actions/libMolecuilderActions.la \
|
---|
| 246 | ${QT_LIB_GUI} \
|
---|
| 247 | -lQtOpenGL \
|
---|
| 248 | ${GLU_LIBS} \
|
---|
| 249 | ${QT_LDADD}
|
---|
[b37436] | 250 |
|
---|
[e5bf2b] | 251 | nobase_libMolecuilderUI_la_include_HEADERS = ${UIHEADER}
|
---|
| 252 | nobase_libMolecuilderQtUI_la_include_HEADERS = ${QTUIHEADER}
|
---|
[b37436] | 253 |
|
---|
| 254 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
| 255 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
| 256 | ## will therefore be treated as if it were literally part of the target name,
|
---|
| 257 | ## and the variable name derived from that.
|
---|
| 258 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
| 259 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
| 260 | ## from each source file. Note that it is not necessary to list header files
|
---|
| 261 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
[acbe1b] | 262 | libMolecuilderUI_la_SOURCES = ${UISOURCE}
|
---|
| 263 | libMolecuilderQtUI_la_SOURCES = ${QTUISOURCE}
|
---|
[b37436] | 264 |
|
---|
| 265 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
| 266 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
| 267 | ## that all version information is kept in one place.
|
---|
[acbe1b] | 268 | libMolecuilderUI_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
| 269 | libMolecuilderQtUI_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
[b37436] | 270 |
|
---|
| 271 | ## The generated configuration header is installed in its own subdirectory of
|
---|
| 272 | ## $(libdir). The reason for this is that the configuration information put
|
---|
| 273 | ## into this header file describes the target platform the installed library
|
---|
| 274 | ## has been built for. Thus the file must not be installed into a location
|
---|
| 275 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
| 276 | ## Hierarchy Standard (FHS).
|
---|
| 277 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
| 278 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
| 279 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
| 280 | ## configuration header file is generated at configure time and should not be
|
---|
| 281 | ## shipped with the source tarball.
|
---|
[acbe1b] | 282 | #libMolecuilderUI_libincludedir = $(libdir)/MoleCuilder/include
|
---|
| 283 | #libMolecuilderQtUI_libincludedir = $(libdir)/MoleCuilder/include
|
---|
| 284 | #nodist_libMolecuilderUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
| 285 | #nodist_libMolecuilderQtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
[b37436] | 286 |
|
---|
| 287 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
| 288 | ## architecture-dependent package configuration information. Occasionally,
|
---|
| 289 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
| 290 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
[acbe1b] | 291 | #pkgconfigdir = $(libdir)/pkgconfig
|
---|
| 292 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
---|
[5079a0] | 293 |
|
---|
[796aa6] | 294 | unity.cpp:
|
---|
| 295 | echo "" > unity.cpp; \
|
---|
| 296 | list='$(UISOURCE)'; for file in $$list; do \
|
---|
| 297 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
| 298 | done;
|
---|
| 299 |
|
---|
[1e0861] | 300 | #Rules needed for Qt4
|
---|
| 301 | # UI-Files are scattered throughout several subdirectories
|
---|
| 302 | # Therfore `%'-rules do not seem to work
|
---|
| 303 | #Quick fix to get it done otherwise
|
---|
| 304 | allmocs.moc.cpp: ${QTUIMOC_HEADER}
|
---|
| 305 | echo "" > allmocs.moc.cpp;\
|
---|
| 306 | list='$(QTUIMOC_HEADER)'; for header in $$list; do \
|
---|
| 307 | echo "Making mocfile for $$header"; \
|
---|
| 308 | target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
|
---|
| 309 | $(MOC) $(srcdir)/$$header -o $$target \
|
---|
| 310 | || eval $$failcom; \
|
---|
| 311 | echo "#include \"$$target\"" >> allmocs.moc.cpp; \
|
---|
| 312 | done;
|
---|
| 313 |
|
---|
| 314 |
|
---|
[d5240d] | 315 | MOSTLYCLEANFILES = unity.cpp allmocs.moc.cpp
|
---|