Mercurial > octave-antonio
annotate libgui/Makefile.am @ 18498:2e7cad6f180c gui-release
Initial integration of QtHandles.
* configure.ac: Check for QtOpenGL module.
* libgui/Makefile.am: Include libgui/graphics/module.mk.
(liboctgui_la_LIBADD): Include graphics/libgui-graphics.la in the
list.
(rcc-command): Pass "-name DIR" to rcc command.
* main-window.cc (main_window::construct): Install qt functions and
register qt toolkit.
* libgui/src/module.mk (src_libgui_src_la_CPPFLAGS): Include
$(FONTCONFIG_CPPFLAGS) and -I$(srcdir)/graphics in the list.
* graphics.cc (gtk_manager::gtk_manager): Make qt the default toolkit
if it is available.
* libgui/graphics/Backend.cc, libgui/graphics/Backend.h,
libgui/graphics/BaseControl.cc, libgui/graphics/BaseControl.h,
libgui/graphics/ButtonControl.cc, libgui/graphics/ButtonControl.h,
libgui/graphics/Canvas.cc, libgui/graphics/Canvas.h,
libgui/graphics/CheckBoxControl.cc, libgui/graphics/CheckBoxControl.h,
libgui/graphics/Container.cc, libgui/graphics/Container.h,
libgui/graphics/ContextMenu.cc, libgui/graphics/ContextMenu.h,
libgui/graphics/EditControl.cc, libgui/graphics/EditControl.h,
libgui/graphics/Figure.cc, libgui/graphics/Figure.h,
libgui/graphics/FigureWindow.cc, libgui/graphics/FigureWindow.h,
libgui/graphics/GLCanvas.cc, libgui/graphics/GLCanvas.h, ,
libgui/graphics/GenericEventNotify.h, libgui/graphics/KeyMap.cc,
libgui/graphics/KeyMap.h, libgui/graphics/ListBoxControl.cc,
libgui/graphics/ListBoxControl.h, libgui/graphics/Logger.cc,
libgui/graphics/Logger.h, libgui/graphics/Menu.cc,
libgui/graphics/Menu.h, libgui/graphics/MenuContainer.h,
libgui/graphics/MouseModeActionGroup.cc,
libgui/graphics/MouseModeActionGroup.h, libgui/graphics/Object.cc,
libgui/graphics/Object.h, libgui/graphics/ObjectFactory.cc,
libgui/graphics/ObjectFactory.h, libgui/graphics/ObjectProxy.cc,
libgui/graphics/ObjectProxy.h, libgui/graphics/Panel.cc,
libgui/graphics/Panel.h, libgui/graphics/PopupMenuControl.cc,
libgui/graphics/PopupMenuControl.h,
libgui/graphics/PushButtonControl.cc,
libgui/graphics/PushButtonControl.h, libgui/graphics/PushTool.cc,
libgui/graphics/PushTool.h, libgui/graphics/RadioButtonControl.cc,
libgui/graphics/RadioButtonControl.h,
libgui/graphics/SliderControl.cc, libgui/graphics/SliderControl.h,
libgui/graphics/TextControl.cc, libgui/graphics/TextControl.h,
libgui/graphics/TextEdit.cc, libgui/graphics/TextEdit.h,
libgui/graphics/ToggleButtonControl.cc,
libgui/graphics/ToggleButtonControl.h, libgui/graphics/ToggleTool.cc,
libgui/graphics/ToggleTool.h, libgui/graphics/ToolBar.cc,
libgui/graphics/ToolBar.h, libgui/graphics/ToolBarButton.cc,
libgui/graphics/ToolBarButton.h, libgui/graphics/Utils.cc,
libgui/graphics/Utils.h, libgui/graphics/__init_qt__.cc,
libgui/graphics/__init_qt__.h, libgui/graphics/gl-select.cc,
libgui/graphics/gl-select.h, libgui/graphics/images/README,
libgui/graphics/images/pan.png, libgui/graphics/images/rotate.png,
libgui/graphics/images/select.png, libgui/graphics/images/zoom.png,
libgui/graphics/module.mk, libgui/graphics/qthandles.qrc:
New files.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Feb 2014 14:05:45 -0500 |
parents | 96c76878c7c6 |
children | f1b91e3137b9 |
rev | line source |
---|---|
15269
b42167e9d805
maint: Update Makefile.am comments to refer to Octave (program) rather than octave (command).
Rik <rik@octave.org>
parents:
15211
diff
changeset
|
1 # Makefile for Octave's libgui directory |
b42167e9d805
maint: Update Makefile.am comments to refer to Octave (program) rather than octave (command).
Rik <rik@octave.org>
parents:
15211
diff
changeset
|
2 # |
17744
d63878346099
maint: Update copyright notices for release.
John W. Eaton <jwe@octave.org>
parents:
17381
diff
changeset
|
3 # Copyright (C) 2012-2013 John W. Eaton |
15206
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
4 # |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
5 # This file is part of Octave. |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
6 # |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
7 # Octave is free software; you can redistribute it and/or modify it |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
8 # under the terms of the GNU General Public License as published by the |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
9 # Free Software Foundation; either version 3 of the License, or (at |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
10 # your option) any later version. |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
11 # |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
12 # Octave is distributed in the hope that it will be useful, but WITHOUT |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
15 # for more details. |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
16 # |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
17 # You should have received a copy of the GNU General Public License |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
18 # along with Octave; see the file COPYING. If not, see |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
19 # <http://www.gnu.org/licenses/>. |
38d8306e7df1
* libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents:
15199
diff
changeset
|
20 |
15211
efd2024c7d56
fix installation of default-qt-settings file (bug #37161)
John W. Eaton <jwe@octave.org>
parents:
15206
diff
changeset
|
21 include $(top_srcdir)/build-aux/common.mk |
efd2024c7d56
fix installation of default-qt-settings file (bug #37161)
John W. Eaton <jwe@octave.org>
parents:
15206
diff
changeset
|
22 |
15362 | 23 MOC_CPPFLAGS = |
24 | |
25 octlib_LTLIBRARIES = liboctgui.la | |
26 | |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
27 TRANSLATIONS = \ |
16328
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
28 languages/be_BY.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
29 languages/de_DE.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
30 languages/en_US.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
31 languages/es_ES.ts \ |
16835
8c2a9ca624a7
First version of a French translation of the GUI
David Bateman <dbateman@free.fr>
parents:
16577
diff
changeset
|
32 languages/fr_FR.ts \ |
16328
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
33 languages/nl_NL.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
34 languages/pt_BR.ts \ |
17835
efbed19b8e04
Add Portuguese (Portugal) translation.
Carnë Draug <carandraug@octave.org>
parents:
17744
diff
changeset
|
35 languages/pt_PT.ts \ |
16328
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
36 languages/ru_RU.ts \ |
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
37 languages/uk_UA.ts |
15362 | 38 |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
39 LOCALES = $(patsubst languages/%.ts, languages/%.qm, $(TRANSLATIONS)) |
16328
ba933118869b
build: include GUI translation source files in the distribution tarball
Mike Miller <mtmiller@ieee.org>
parents:
16327
diff
changeset
|
40 |
16522
bfff338c56d1
set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents:
16341
diff
changeset
|
41 EXTRA_DIST = default-qt-settings.in $(TRANSLATIONS) |
15392
c7fd43f5a89d
build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents:
15391
diff
changeset
|
42 CLEANFILES = |
15362 | 43 |
15392
c7fd43f5a89d
build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents:
15391
diff
changeset
|
44 BUILT_SOURCES = |
15362 | 45 |
46 noinst_HEADERS = | |
47 | |
48 noinst_LTLIBRARIES = | |
49 | |
50 include src/module.mk | |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
17952
diff
changeset
|
51 include graphics/module.mk |
15362 | 52 include qterminal-module.mk |
53 | |
15392
c7fd43f5a89d
build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents:
15391
diff
changeset
|
54 ## liboctgui merely collects a bunch of compiled convenience libraries. |
15391 | 55 ## It has no source code itself. |
56 liboctgui_la_SOURCES = | |
57 | |
15362 | 58 include link-deps.mk |
59 | |
15392
c7fd43f5a89d
build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents:
15391
diff
changeset
|
60 # Dummy C++ source to force C++ linking. |
15386
5546fe4dd77f
force C++ linking for liboctave and liboctgui
John W. Eaton <jwe@octave.org>
parents:
15363
diff
changeset
|
61 nodist_EXTRA_liboctgui_la_SOURCES = dummy.cc |
5546fe4dd77f
force C++ linking for liboctave and liboctgui
John W. Eaton <jwe@octave.org>
parents:
15363
diff
changeset
|
62 |
15362 | 63 liboctgui_la_LIBADD = \ |
64 qterminal/libqterminal.la \ | |
65 src/libgui-src.la \ | |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
17952
diff
changeset
|
66 graphics/libgui-graphics.la \ |
15362 | 67 $(top_builddir)/libinterp/liboctinterp.la \ |
68 $(top_builddir)/liboctave/liboctave.la \ | |
69 $(LIBOCTGUI_LINK_DEPS) | |
70 | |
71 # Increment these as needed and according to the rules in the libtool manual: | |
72 liboctgui_current = 0 | |
73 liboctgui_revision = 0 | |
74 liboctgui_age = 0 | |
75 | |
76 liboctgui_version_info = $(liboctgui_current):$(liboctgui_revision):$(liboctgui_age) | |
77 | |
78 liboctgui_la_LDFLAGS = \ | |
79 -version-info $(liboctgui_version_info) \ | |
80 $(NO_UNDEFINED_LDFLAG) \ | |
81 -bindir $(bindir) \ | |
82 $(LIBOCTGUI_LINK_OPTS) | |
15159
098546e95a5e
allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents:
15110
diff
changeset
|
83 |
098546e95a5e
allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents:
15110
diff
changeset
|
84 octetc_DATA = default-qt-settings |
15199
d0715b430286
fix gui sources missing from dist
John W. Eaton <jwe@octave.org>
parents:
15196
diff
changeset
|
85 |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
86 octlocale_DATA = $(LOCALES) |
15971
e27d9b9b71f4
gui: install translation files into $(datadir)/octave/$(version)/locale
Torsten <ttl@justmail.de>
parents:
15596
diff
changeset
|
87 |
16522
bfff338c56d1
set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents:
16341
diff
changeset
|
88 default-qt-settings: default-qt-settings.in |
bfff338c56d1
set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents:
16341
diff
changeset
|
89 $(do_subst_qt_settings) |
bfff338c56d1
set default terminal font for the GUI from the configure script
John W. Eaton <jwe@octave.org>
parents:
16341
diff
changeset
|
90 |
16577
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
91 define moc-command |
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
92 ( echo '#ifdef HAVE_CONFIG_H'; \ |
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
93 echo '#include <config.h>'; \ |
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
94 echo '#endif'; \ |
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
95 $(MOC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(MOC_CPPFLAGS) $(liboctgui_la_CPPFLAGS) $< ) > $@-t |
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
96 mv $@-t $@ |
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
97 endef |
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
98 |
17952
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
99 define rcc-command |
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
100 ( echo '#ifdef HAVE_CONFIG_H'; \ |
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
101 echo '#include <config.h>'; \ |
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
102 echo '#endif'; \ |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
17952
diff
changeset
|
103 $(RCC) -name $(@D) $< ) > $@-t |
17952
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
104 mv $@-t $@ |
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
105 endef |
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
106 |
15362 | 107 moc-%.cc: %.h |
16577
02a90cb9d79f
include config.h in MOC files
John W. Eaton <jwe@octave.org>
parents:
16522
diff
changeset
|
108 $(moc-command) |
15362 | 109 |
110 ui-%.h: %.ui | |
16326
c14ce8995a69
build: Call Qt tools using make variables
Mike Miller <mtmiller@ieee.org>
parents:
16244
diff
changeset
|
111 $(UIC) -o $@ $< |
15362 | 112 |
113 qrc-%.cc: %.qrc | |
17952
96c76878c7c6
Include <config.h> in C++ files generated from resources.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
17835
diff
changeset
|
114 $(rcc-command) |
15362 | 115 |
16244
b74c4e967f76
gui: remove binary language files from repo and generate them during build
Torsten <ttl@justmail.de>
parents:
16234
diff
changeset
|
116 %.qm: %.ts |
16327
c69c51983626
build: generate GUI language files in the build directory
Mike Miller <mtmiller@ieee.org>
parents:
16326
diff
changeset
|
117 $(MKDIR_P) languages |
c69c51983626
build: generate GUI language files in the build directory
Mike Miller <mtmiller@ieee.org>
parents:
16326
diff
changeset
|
118 $(LRELEASE) -qm $@ $< |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
119 |
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
120 DISTCLEANFILES = \ |
17381
06b46e67f868
build: Remove generated files so that 'make distcheck' passes.
Rik <rik@octave.org>
parents:
17376
diff
changeset
|
121 default-qt-settings \ |
16341
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
122 $(LOCALES) |
c34f8bb1ebec
build: remove GUI built translation files with distclean target.
Rik <rik@octave.org>
parents:
16328
diff
changeset
|
123 |