Changeset 18efcf5c6416d6c8b927ea2beef6f3069fac71f4
- Timestamp:
- 09/23/06 15:37:50
(2 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1159018670 +0000
- git-parent:
[f4978776e4fd252f184b111fddcec555ef0f75d4]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1159018670 +0000
- Message:
* Add switch to skins
* Fixes to dialog singletons
* Forgotten files (definitions of aout_Visual*, unimplemented at the moment)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rc0125ee |
r18efcf5 |
|
| 1028 | 1028 | (cd $@; ./autogen.sh noconfig) |
|---|
| 1029 | 1029 | |
|---|
| 1030 | | .dvdnav: libdvdnav .dvdcss |
|---|
| | 1030 | .dvdnav: libdvdnav |
|---|
| 1031 | 1031 | ifdef HAVE_WIN32 |
|---|
| 1032 | | (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) --with-libdvdcss=$(PREFIX) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -Dssize_t=long" && make && make install) |
|---|
| 1033 | | else |
|---|
| 1034 | | (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) --with-libdvdcss=$(PREFIX) CFLAGS="$(CFLAGS) -Dlseek64=lseek -Doff64_t=off_t" && make && make install) |
|---|
| | 1032 | (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -Dssize_t=long" && make && make install) |
|---|
| | 1033 | else |
|---|
| | 1034 | (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -Dlseek64=lseek -Doff64_t=off_t" && make && make install) |
|---|
| 1035 | 1035 | endif |
|---|
| 1036 | 1036 | $(INSTALL_NAME) |
|---|
| rc3a1a37 |
r18efcf5 |
|
| 201 | 201 | VLC_EXPORT( int, aout_FindAndRestart, ( vlc_object_t *, const char *, vlc_value_t, vlc_value_t, void * ) ); |
|---|
| 202 | 202 | VLC_EXPORT( int, aout_ChannelsRestart, ( vlc_object_t *, const char *, vlc_value_t, vlc_value_t, void * ) ); |
|---|
| | 203 | |
|---|
| 203 | 204 | VLC_EXPORT( void, aout_EnableFilter, (vlc_object_t *, const char *, vlc_bool_t )); |
|---|
| 204 | 205 | |
|---|
| | 206 | #define aout_VisualNext(a) aout_VisualChange( VLC_OBJECT(a),1 ) |
|---|
| | 207 | #define aout_VisualPrev(a) aout_VisualChange( VLC_OBJECT(a),-1 ) |
|---|
| | 208 | |
|---|
| | 209 | VLC_EXPORT( char *, aout_VisualChange, (vlc_object_t *, int ) ); |
|---|
| | 210 | |
|---|
| 205 | 211 | #endif /* _VLC_AUDIO_OUTPUT_H */ |
|---|
| rf485214 |
r18efcf5 |
|
| 538 | 538 | void (*aout_EnableFilter_inner) (vlc_object_t *, const char *, vlc_bool_t); |
|---|
| 539 | 539 | void (*playlist_NodesPairCreate_inner) (playlist_t *, char *, playlist_item_t **, playlist_item_t **, vlc_bool_t); |
|---|
| | 540 | char * (*aout_VisualChange_inner) (vlc_object_t *, int); |
|---|
| 540 | 541 | }; |
|---|
| 541 | 542 | # if defined (__PLUGIN__) |
|---|
| … | … | |
| 1009 | 1010 | # define aout_EnableFilter (p_symbols)->aout_EnableFilter_inner |
|---|
| 1010 | 1011 | # define playlist_NodesPairCreate (p_symbols)->playlist_NodesPairCreate_inner |
|---|
| | 1012 | # define aout_VisualChange (p_symbols)->aout_VisualChange_inner |
|---|
| 1011 | 1013 | # elif defined (HAVE_DYNAMIC_PLUGINS) && !defined (__BUILTIN__) |
|---|
| 1012 | 1014 | /****************************************************************** |
|---|
| … | … | |
| 1483 | 1485 | ((p_symbols)->aout_EnableFilter_inner) = aout_EnableFilter; \ |
|---|
| 1484 | 1486 | ((p_symbols)->playlist_NodesPairCreate_inner) = playlist_NodesPairCreate; \ |
|---|
| | 1487 | ((p_symbols)->aout_VisualChange_inner) = aout_VisualChange; \ |
|---|
| 1485 | 1488 | (p_symbols)->net_ConvertIPv4_deprecated = NULL; \ |
|---|
| 1486 | 1489 | (p_symbols)->__playlist_ItemNew_deprecated = NULL; \ |
|---|
| rec6749f |
r18efcf5 |
|
| 41 | 41 | return instance; |
|---|
| 42 | 42 | } |
|---|
| 43 | | static void killInstance() { if( instance ) delete instance; } |
|---|
| | 43 | static void killInstance() |
|---|
| | 44 | { |
|---|
| | 45 | if( instance ) delete instance; |
|---|
| | 46 | instance= NULL; |
|---|
| | 47 | } |
|---|
| 44 | 48 | virtual ~StreamInfoDialog(); |
|---|
| 45 | 49 | bool need_update; |
|---|
| r19f019c |
r18efcf5 |
|
| 300 | 300 | } |
|---|
| 301 | 301 | |
|---|
| | 302 | void DialogsProvider::switchToSkins() |
|---|
| | 303 | { |
|---|
| | 304 | var_SetString( p_intf, "intf-switch", "skins2" ); |
|---|
| | 305 | } |
|---|
| | 306 | |
|---|
| 302 | 307 | void DialogsProvider::bookmarksDialog() |
|---|
| 303 | 308 | { |
|---|
| r7f994b8 |
r18efcf5 |
|
| 53 | 53 | return instance; |
|---|
| 54 | 54 | } |
|---|
| 55 | | static void killInstance() { if( instance ) delete instance; } |
|---|
| | 55 | static void killInstance() |
|---|
| | 56 | { |
|---|
| | 57 | if( instance ) delete instance; |
|---|
| | 58 | instance=NULL; |
|---|
| | 59 | } |
|---|
| 56 | 60 | virtual ~DialogsProvider(); |
|---|
| 57 | 61 | QTimer *fixed_timer; |
|---|
| … | … | |
| 92 | 96 | void openMLDirectory(); |
|---|
| 93 | 97 | void quit(); |
|---|
| | 98 | void switchToSkins(); |
|---|
| 94 | 99 | }; |
|---|
| 95 | 100 | |
|---|
| r2e6b211 |
r18efcf5 |
|
| 625 | 625 | { |
|---|
| 626 | 626 | QApplication::closeAllWindows(); |
|---|
| 627 | | DialogsProvider::killInstance(); |
|---|
| 628 | 627 | QApplication::quit(); |
|---|
| 629 | 628 | } |
|---|
| r2e6b211 |
r18efcf5 |
|
| 199 | 199 | |
|---|
| 200 | 200 | QMenu *menu = Populate( p_intf, current, varnames, objects ); |
|---|
| | 201 | |
|---|
| | 202 | if( !p_intf->pf_show_dialog ) |
|---|
| | 203 | { |
|---|
| | 204 | menu->addSeparator(); |
|---|
| | 205 | menu->addAction( qtr("Switch to skins"), THEDP, SLOT(switchToSkins()) ); |
|---|
| | 206 | } |
|---|
| | 207 | |
|---|
| 201 | 208 | CONNECT( menu, aboutToShow(), THEDP->menusUpdateMapper, map() ); |
|---|
| 202 | 209 | THEDP->menusUpdateMapper->setMapping( menu, 4 ); |
|---|
| 203 | | |
|---|
| 204 | 210 | return menu; |
|---|
| 205 | 211 | } |
|---|
| r415749b |
r18efcf5 |
|
| 140 | 140 | app->exec(); |
|---|
| 141 | 141 | MainInputManager::killInstance(); |
|---|
| | 142 | DialogsProvider::killInstance(); |
|---|
| 142 | 143 | delete p_intf->p_sys->p_mi; |
|---|
| 143 | 144 | } |
|---|
| … | … | |
| 150 | 151 | { |
|---|
| 151 | 152 | DialogEvent *event = new DialogEvent( i_dialog_event, i_arg, p_arg ); |
|---|
| 152 | | QApplication::postEvent( DialogsProvider::getInstance( p_intf ), |
|---|
| 153 | | static_cast<QEvent*>(event) ); |
|---|
| | 153 | QApplication::postEvent( THEDP, static_cast<QEvent*>(event) ); |
|---|
| 154 | 154 | } |
|---|
| 155 | 155 | |
|---|
| rf485214 |
r18efcf5 |
|
| 530 | 530 | free( psz_string ); |
|---|
| 531 | 531 | } |
|---|
| | 532 | |
|---|
| | 533 | /** |
|---|
| | 534 | * Change audio visualization |
|---|
| | 535 | * -1 goes backwards, +1 goes forward |
|---|
| | 536 | */ |
|---|
| | 537 | char *aout_VisualChange( vlc_object_t *p_this, int i_skip ) |
|---|
| | 538 | { |
|---|
| | 539 | return strdup("foobar"); |
|---|
| | 540 | } |
|---|
| r121930f |
r18efcf5 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * libvlc-common.c: libvlc instances creation and deletion |
|---|
| | 2 | * libvlc-common.c: libvlc instances creation and deletion, interfaces handling |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2006 the VideoLAN team |
|---|
| … | … | |
| 162 | 162 | var_Get( p_libvlc_global, "libvlc", &lockval ); |
|---|
| 163 | 163 | vlc_mutex_lock( lockval.p_address ); |
|---|
| | 164 | |
|---|
| | 165 | |
|---|
| 164 | 166 | |
|---|
| 165 | 167 | i_instances++; |
|---|
| r13e7023 |
r18efcf5 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * libvlc.c: main libvlc source |
|---|
| | 2 | * libvlc.c: Implementation of the old libvlc API |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2006 the VideoLAN team |
|---|
| r8b21c8f |
r18efcf5 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * libvlc.h: main libvlc header |
|---|
| | 2 | * libvlc.h: Options for the main module |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2006 the VideoLAN team |
|---|