Changeset 5fec93e17a9a45fb7c20dec7be0ca59775abbe39
- Timestamp:
- 19/01/03 23:16:13
(6 years ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1043014573 +0000
- git-parent:
[4e1cda09665d0f044943720371c551a5e194b024]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1043014573 +0000
- Message:
New "qte_main" module. It should be used by all plugins/modules that need QT embedded. Also ported modules/qte/qte.{cpp,h} to use it.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rcaefa42 |
r5fec93e |
|
| 437 | 437 | NEED_GNOME_MAIN=no |
|---|
| 438 | 438 | |
|---|
| | 439 | dnl build the qte plugin ? |
|---|
| | 440 | NEED_QTE_MAIN=no |
|---|
| | 441 | |
|---|
| 439 | 442 | dnl Check for DPMS |
|---|
| 440 | 443 | if test "x${SYS}" != "xmingw32" |
|---|
| … | … | |
| 1923 | 1926 | fi |
|---|
| 1924 | 1927 | PLUGINS="${PLUGINS} qte" |
|---|
| | 1928 | NEED_QTE_MAIN=yes |
|---|
| 1925 | 1929 | CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_qte}" |
|---|
| 1926 | 1930 | AC_CHECK_HEADERS(qt.h jpeglib.h, ,[ |
|---|
| … | … | |
| 2414 | 2418 | |
|---|
| 2415 | 2419 | PLUGINS="${PLUGINS} opie" |
|---|
| | 2420 | NEED_QTE_MAIN=yes |
|---|
| 2416 | 2421 | LDFLAGS_opie="${LDFLAGS_opie} -lqpe ${LDFLAGS_qte}" |
|---|
| 2417 | 2422 | CPPFLAGS_opie="${CPPFLAGS_opie} ${CPPFLAGS_qte}" |
|---|
| … | … | |
| 2711 | 2716 | |
|---|
| 2712 | 2717 | dnl |
|---|
| | 2718 | dnl qte_main plugin |
|---|
| | 2719 | dnl |
|---|
| | 2720 | if test "x${NEED_QTE_MAIN}" != "xno" |
|---|
| | 2721 | then |
|---|
| | 2722 | PLUGINS="${PLUGINS} qte_main" |
|---|
| | 2723 | CPPFLAGS_qte="${CPPFLAGS_qte} -DNEED_QTE_MAIN" |
|---|
| | 2724 | CPPFLAGS_opie="${CPPFLAGS_opie} -DNEED_QTE_MAIN" |
|---|
| | 2725 | CPPFLAGS_qte_main="${CFLAGS_qte_main} ${CPPFLAGS_qte}" |
|---|
| | 2726 | LDFLAGS_qte_main="${LDFLAGS_qte_main} ${LDFLAGS_qte}" |
|---|
| | 2727 | fi |
|---|
| | 2728 | |
|---|
| | 2729 | |
|---|
| | 2730 | dnl |
|---|
| 2713 | 2731 | dnl Plugin and builtin checks |
|---|
| 2714 | 2732 | dnl |
|---|
| r2d54f8a |
r5fec93e |
|
| 3 | 3 | Priority: optional |
|---|
| 4 | 4 | Version: 0.5.0 |
|---|
| 5 | | Release: 1 |
|---|
| | 5 | Release: test3 |
|---|
| 6 | 6 | Architecture: arm |
|---|
| 7 | 7 | Conflicts: task-opie, gpe-vlc, gpe |
|---|
| rdafc259 |
r5fec93e |
|
| 3 | 3 | Priority: optional |
|---|
| 4 | 4 | Version: 0.5.0 |
|---|
| 5 | | Release: test2 |
|---|
| | 5 | Release: test3 |
|---|
| 6 | 6 | Conflicts: task-opie, vlc |
|---|
| 7 | 7 | Architecture: arm |
|---|
| rbb57136 |
r5fec93e |
|
| 3 | 3 | Priority: optional |
|---|
| 4 | 4 | Version: 0.5.0 |
|---|
| 5 | | Release: 1 |
|---|
| 6 | | Conflicts: gpe, vlc |
|---|
| | 5 | Release: test3 |
|---|
| | 6 | Conflicts: gpe, vlc, libsdl |
|---|
| 7 | 7 | Architecture: arm |
|---|
| 8 | 8 | Maintainer: Jean-Paul Saman <jpsaman@wxs.nl>, Christophe Massiot <massiot@via.ecp.fr> |
|---|
| 9 | | Depends: libc6, task-opie |
|---|
| | 9 | Depends: libc6, task-opie, opie-libsdl |
|---|
| 10 | 10 | Copyright: GPL |
|---|
| 11 | 11 | Description: VideoLAN Client is a free network-aware MPEG and DVD player. |
|---|
| r37a6b0e |
r5fec93e |
|
| 11 | 11 | export STRIP=arm-linux-strip |
|---|
| 12 | 12 | |
|---|
| 13 | | #export CONFIG_FLAGS="--enable-release --prefix=/usr --disable-gtk --enable-fb --enable-sdl --disable-xvideo --disable-plugins --with-tuning=strongarm1100 --x-includes=/skiff/local/arm-linux/include --x-libraries=/skiff/local/arm-linux/lib/X11 --with-sdl-config-path=/skiff/local/bin --with-mad=/skiff/local/arm-linux" |
|---|
| 14 | | |
|---|
| 15 | 13 | export CONFIG_FLAGS="--enable-release --prefix=/usr \ |
|---|
| 16 | 14 | --disable-plugins \ |
|---|
| … | … | |
| 24 | 22 | --enable-oss \ |
|---|
| 25 | 23 | --disable-alsa \ |
|---|
| | 24 | --enable-x11 \ |
|---|
| 26 | 25 | --disable-xvideo \ |
|---|
| 27 | 26 | --disable-dvd \ |
|---|
| ra5d19ec |
r5fec93e |
|
| 55 | 55 | --target=arm-linux \ |
|---|
| 56 | 56 | $(shell echo $(CONFIG_FLAGS)) \ |
|---|
| 57 | | LDFLAGS=/usr/local/arm/2.95.3/arm-linux/lib |
|---|
| | 57 | LDFLAGS="-L/usr/local/arm/2.95.3/arm-linux/lib" |
|---|
| 58 | 58 | |
|---|
| 59 | 59 | build: |
|---|
| r3414698 |
r5fec93e |
|
| 20 | 20 | --disable-x11 \ |
|---|
| 21 | 21 | --enable-fb \ |
|---|
| 22 | | --disable-sdl \ |
|---|
| | 22 | --enable-sdl \ |
|---|
| 23 | 23 | --disable-alsa \ |
|---|
| 24 | 24 | --disable-xvideo \ |
|---|
| re5daac6 |
r5fec93e |
|
| 2 | 2 | SOURCES_gnome_main = modules/misc/gtk_main.c |
|---|
| 3 | 3 | SOURCES_sap = modules/misc/sap.c |
|---|
| | 4 | SOURCES_qte_main = modules/misc/qte_main.cpp |
|---|
| r88b2fd3 |
r5fec93e |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2002 VideoLAN |
|---|
| 5 | | * $Id: qte.cpp,v 1.8 2002/12/24 19:25:54 jpsaman Exp $ |
|---|
| | 5 | * $Id: qte.cpp,v 1.9 2003/01/19 22:16:13 jpsaman Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gerald Hansink <gerald.hansink@ordain.nl> |
|---|
| … | … | |
| 65 | 65 | |
|---|
| 66 | 66 | #ifdef Q_WS_QWS |
|---|
| 67 | | # define USE_DIRECT_PAINTER |
|---|
| 68 | | # include <qdirectpainter_qws.h> |
|---|
| 69 | | # include <qgfxraster_qws.h> |
|---|
| | 67 | # define USE_DIRECT_PAINTER |
|---|
| | 68 | # include <qdirectpainter_qws.h> |
|---|
| | 69 | # include <qgfxraster_qws.h> |
|---|
| 70 | 70 | #endif |
|---|
| 71 | 71 | |
|---|
| … | … | |
| 130 | 130 | set_description( _("QT Embedded module") ); |
|---|
| 131 | 131 | set_capability( "video output", 30 ); |
|---|
| | 132 | // add_shortcut( "qte" ); |
|---|
| 132 | 133 | set_callbacks( Open, Close); |
|---|
| 133 | 134 | vlc_module_end(); |
|---|
| … | … | |
| 165 | 166 | p_vout->pf_display = Display; |
|---|
| 166 | 167 | |
|---|
| | 168 | #ifdef NEED_QTE_MAIN |
|---|
| | 169 | p_vout->p_sys->p_qte_main = module_Need( p_this, "qte_main", "qte" ); |
|---|
| | 170 | if( p_vout->p_sys->p_qte_main == NULL ) |
|---|
| | 171 | { |
|---|
| | 172 | free( p_vout->p_sys ); |
|---|
| | 173 | return VLC_ENOMOD; |
|---|
| | 174 | } |
|---|
| | 175 | #endif |
|---|
| | 176 | |
|---|
| 167 | 177 | CreateQtWindow(p_vout); |
|---|
| 168 | 178 | return( 0 ); |
|---|
| … | … | |
| 190 | 200 | vlc_object_destroy( p_vout->p_sys->p_event ); |
|---|
| 191 | 201 | } |
|---|
| | 202 | |
|---|
| | 203 | #ifdef NEED_QTE_MAIN |
|---|
| | 204 | module_Unneed( p_vout, p_vout->p_sys->p_qte_main ); |
|---|
| | 205 | #endif |
|---|
| 192 | 206 | |
|---|
| 193 | 207 | if( p_vout->p_sys ) |
|---|
| … | … | |
| 529 | 543 | if(p_vout->p_sys->pcQApplication) |
|---|
| 530 | 544 | { |
|---|
| | 545 | #ifndef NEED_QTE_MAIN |
|---|
| 531 | 546 | if(p_vout->p_sys->bOwnsQApp) |
|---|
| 532 | 547 | { |
|---|
| … | … | |
| 534 | 549 | } |
|---|
| 535 | 550 | else |
|---|
| 536 | | { |
|---|
| | 551 | #endif |
|---|
| 537 | 552 | p_vout->p_sys->bRunning = FALSE; |
|---|
| 538 | | } |
|---|
| 539 | 553 | |
|---|
| 540 | 554 | while(p_vout->p_sys->pcVoutWidget) |
|---|
| … | … | |
| 567 | 581 | { |
|---|
| 568 | 582 | p_event->p_vout->p_sys->pcQApplication = qApp; |
|---|
| | 583 | p_event->p_vout->p_sys->bOwnsQApp = FALSE; |
|---|
| 569 | 584 | msg_Dbg( p_event->p_vout, "RunQtThread applicaton attached" ); |
|---|
| 570 | 585 | } |
|---|
| … | … | |
| 585 | 600 | { |
|---|
| 586 | 601 | // run the main loop of qtapplication until someone says: 'quit' |
|---|
| | 602 | msg_Dbg( p_event->p_vout, "+qte::RunQtThread starting application" ); |
|---|
| 587 | 603 | p_event->p_vout->p_sys->pcQApplication->exec(); |
|---|
| 588 | 604 | } |
|---|
| … | … | |
| 604 | 620 | if(p_event->p_vout->p_sys->bOwnsQApp) |
|---|
| 605 | 621 | { |
|---|
| | 622 | msg_Dbg( p_event->p_vout, "+qte::RunQtThread deleting application" ); |
|---|
| 606 | 623 | delete p_event->p_vout->p_sys->pcQApplication; |
|---|
| 607 | 624 | p_event->p_vout->p_sys->pcQApplication = NULL; |
|---|
| re428120 |
r5fec93e |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2002 VideoLAN |
|---|
| 5 | | * $Id: qte.h,v 1.3 2002/09/23 21:44:23 jpsaman Exp $ |
|---|
| | 5 | * $Id: qte.h,v 1.4 2003/01/19 22:16:13 jpsaman Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gerald Hansink <gerald.hansink@ordain.nl> |
|---|
| … | … | |
| 57 | 57 | QWidget* pcVoutWidget; |
|---|
| 58 | 58 | |
|---|
| | 59 | #ifdef NEED_QTE_MAIN |
|---|
| | 60 | module_t * p_qte_main; |
|---|
| | 61 | #endif |
|---|
| | 62 | |
|---|
| 59 | 63 | event_thread_t * p_event; |
|---|
| 60 | 64 | }; |
|---|