]> git.sesse.net Git - vlc/commitdiff
* configure.ac.in: added an --enable-mostly-builtin option to avoid having too many...
authorGildas Bazin <gbazin@videolan.org>
Tue, 10 Jun 2003 11:43:41 +0000 (11:43 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 10 Jun 2003 11:43:41 +0000 (11:43 +0000)
* modules/gui/skins/src/*: reverted the last BASIC_SKINS patch (BASIC_SKINS was not broken, the changes were done on purpose).
* modules/gui/skins/src/dialogs.[cpp,h]: ran dos2unix on these 2 files.

configure.ac.in
modules/gui/skins/src/dialogs.cpp
modules/gui/skins/src/dialogs.h
modules/gui/skins/src/skin_common.h
modules/gui/skins/src/vlcproc.cpp
modules/gui/skins/src/window.cpp
modules/gui/skins/x11/x11_theme.cpp

index b0e1c8ba63251e26450a8804472e397b6e0ac6d7..36395cd05f82b93fe263abacf3cb19d00b3066b9 100644 (file)
@@ -821,6 +821,16 @@ PLUGINS="${PLUGINS} wav araw demuxdump demuxsub adpcm a52sys au"
 PLUGINS="${PLUGINS} access_file access_udp access_http ipv4 access_mms"
 PLUGINS="${PLUGINS} access_ftp access_directory sap httpd http"
 
+dnl
+dnl  Switch to enable a version of VLC where most modules will be builtin
+dnl
+AC_ARG_ENABLE(mostly-builtin,
+[  --enable-mostly-builtin most modules will be built-in (default disabled)])
+if test "x${enable_mostly_builtin}" = "xyes"; then
+  BUILTINS="${BUILTINS} ${PLUGINS}"
+  PLUGINS=""
+fi
+
 dnl
 dnl Some plugins aren't useful on some platforms
 dnl
@@ -1169,7 +1179,7 @@ dnl
 dnl dvdplay module: check for libdvdplay
 dnl
 AC_ARG_ENABLE(dvdplay,
-[  --enable-dvdplay        dvdplay input module (default disabled)])
+[  --enable-dvdplay        dvdplay input module (default enabled)])
 if test "x${enable_dvdplay}" != "xno"
 then
   AC_ARG_WITH(dvdplay,
index 6fc6e2fcd3b079587a3eae3febf53aae5d80e7ef..2dbda8244b1651374b669465ad18d64ca033e35b 100644 (file)
@@ -2,7 +2,7 @@
  * dialogs.cpp: Handles all the different dialog boxes we provide.\r
  *****************************************************************************\r
  * Copyright (C) 2003 VideoLAN\r
- * $Id: dialogs.cpp,v 1.5 2003/06/09 12:33:16 asmax Exp $\r
+ * $Id: dialogs.cpp,v 1.6 2003/06/10 11:43:40 gbazin Exp $\r
  *\r
  * Authors: Gildas Bazin <gbazin@netcourrier.com>\r
  *\r
@@ -54,6 +54,7 @@ void Dialogs::ShowOpenSkin(){}
 void Dialogs::ShowMessages(){}\r
 void Dialogs::ShowPrefs(){}\r
 void Dialogs::ShowFileInfo(){}\r
+void Dialogs::ShowPopup(){}\r
 \r
 #else // BASIC_SKINS\r
 \r
index 7d225e4bf4bd660cb34936cc53811b6316ef5b24..fd639042bee134de98ee8063da85b7febb6f469b 100644 (file)
-/*****************************************************************************\r
- * dialogs.h: Dialogs class\r
- *****************************************************************************\r
- * Copyright (C) 2003 VideoLAN\r
- * $Id: dialogs.h,v 1.4 2003/06/08 16:56:48 gbazin Exp $\r
- *\r
- * Authors: Gildas Bazin <gbazin@netcourrier.com>\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License\r
- * along with this program; if not, write to the Free Software\r
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111,\r
- * USA.\r
- *****************************************************************************/\r
-\r
-#ifndef VLC_SKIN_DIALOGS\r
-#define VLC_SKIN_DIALOGS\r
-\r
-//--- GENERAL ---------------------------------------------------------------\r
-#include <string>\r
-using namespace std;\r
-\r
-//---------------------------------------------------------------------------\r
-struct intf_thread_t;\r
-\r
-#ifndef BASIC_SKINS\r
-\r
-#ifdef WIN32                                               /* mingw32 hack */\r
-#   undef Yield\r
-#   undef CreateDialog\r
-#endif\r
-/* Let vlc take care of the i18n stuff */\r
-#define WXINTL_NO_GETTEXT_MACRO\r
-#include <wx/wx.h>\r
-\r
-class OpenDialog;\r
-class Messages;\r
-class SoutDialog;\r
-class PrefsDialog;\r
-class FileInfo;\r
-class wxIcon;\r
-\r
-typedef struct dialogs_thread_t\r
-{\r
-    VLC_COMMON_MEMBERS\r
-    intf_thread_t * p_intf;\r
-\r
-} dialogs_thread_t;\r
-\r
-#endif\r
-\r
-//---------------------------------------------------------------------------\r
-class Dialogs\r
-{\r
-    protected:\r
-        intf_thread_t *p_intf;\r
-\r
-    public:\r
-        // Constructor\r
-        Dialogs( intf_thread_t *_p_intf );\r
-\r
-        // Destructor\r
-        virtual ~Dialogs();\r
-\r
-        void ShowOpen( bool b_play );\r
-        void ShowOpenSkin();\r
-        void ShowMessages();\r
-        void ShowPrefs();\r
-        void ShowFileInfo();\r
-        void ShowPopup();\r
-\r
-        vlc_bool_t b_popup_change;\r
-\r
-#ifndef BASIC_SKINS\r
-        // Dialogs\r
-        OpenDialog  *OpenDlg;\r
-        Messages    *MessagesDlg;\r
-        PrefsDialog *PrefsDlg;\r
-        FileInfo    *FileInfoDlg;\r
-\r
-        dialogs_thread_t *p_thread;\r
-\r
-        void OnShowOpen( wxCommandEvent& event );\r
-        void OnShowOpenSkin( wxCommandEvent& event );\r
-        void OnShowMessages( wxCommandEvent& event );\r
-        void OnShowPrefs( wxCommandEvent& event );\r
-        void OnShowFileInfo( wxCommandEvent& event );\r
-        void OnShowPopup( wxCommandEvent& event );\r
-        void OnExitThread( wxCommandEvent& event );\r
-#endif\r
-};\r
-//---------------------------------------------------------------------------\r
-\r
-#endif\r
+/*****************************************************************************
+ * dialogs.h: Dialogs class
+ *****************************************************************************
+ * Copyright (C) 2003 VideoLAN
+ * $Id: dialogs.h,v 1.5 2003/06/10 11:43:40 gbazin Exp $
+ *
+ * Authors: Gildas Bazin <gbazin@netcourrier.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111,
+ * USA.
+ *****************************************************************************/
+
+#ifndef VLC_SKIN_DIALOGS
+#define VLC_SKIN_DIALOGS
+
+//--- GENERAL ---------------------------------------------------------------
+#include <string>
+using namespace std;
+
+//---------------------------------------------------------------------------
+struct intf_thread_t;
+
+#ifndef BASIC_SKINS
+
+#ifdef WIN32                                               /* mingw32 hack */
+#   undef Yield
+#   undef CreateDialog
+#endif
+/* Let vlc take care of the i18n stuff */
+#define WXINTL_NO_GETTEXT_MACRO
+#include <wx/wx.h>
+
+class OpenDialog;
+class Messages;
+class SoutDialog;
+class PrefsDialog;
+class FileInfo;
+class wxIcon;
+
+typedef struct dialogs_thread_t
+{
+    VLC_COMMON_MEMBERS
+    intf_thread_t * p_intf;
+
+} dialogs_thread_t;
+
+#endif
+
+//---------------------------------------------------------------------------
+class Dialogs
+{
+    protected:
+        intf_thread_t *p_intf;
+
+    public:
+        // Constructor
+        Dialogs( intf_thread_t *_p_intf );
+
+        // Destructor
+        virtual ~Dialogs();
+
+        void ShowOpen( bool b_play );
+        void ShowOpenSkin();
+        void ShowMessages();
+        void ShowPrefs();
+        void ShowFileInfo();
+        void ShowPopup();
+
+        vlc_bool_t b_popup_change;
+
+#ifndef BASIC_SKINS
+        // Dialogs
+        OpenDialog  *OpenDlg;
+        Messages    *MessagesDlg;
+        PrefsDialog *PrefsDlg;
+        FileInfo    *FileInfoDlg;
+
+        dialogs_thread_t *p_thread;
+
+        void OnShowOpen( wxCommandEvent& event );
+        void OnShowOpenSkin( wxCommandEvent& event );
+        void OnShowMessages( wxCommandEvent& event );
+        void OnShowPrefs( wxCommandEvent& event );
+        void OnShowFileInfo( wxCommandEvent& event );
+        void OnShowPopup( wxCommandEvent& event );
+        void OnExitThread( wxCommandEvent& event );
+#endif
+};
+//---------------------------------------------------------------------------
+
+#endif
index 91fe3370b7a809c5242b503d1740cdc6709f0a8f..65582b35e7cc460624a08211adb11ded534d63ab 100644 (file)
@@ -2,7 +2,7 @@
  * skin_common.h: Private Skin interface description
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: skin_common.h,v 1.18 2003/06/09 19:08:33 asmax Exp $
+ * $Id: skin_common.h,v 1.19 2003/06/10 11:43:40 gbazin Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -72,12 +72,12 @@ struct intf_sys_t
     int i_index;        // Set which file is being played
     int i_size;         // Size of playlist;
 
-#ifndef BASIC_SKINS
     // Interface dialogs
     Dialogs *p_dialogs;
 
     // Popup menu
     vlc_bool_t b_popup_change;
+#ifndef BASIC_SKINS
     wxMenu     *p_popup_menu;
 #endif
 
index 3274427a07de203079a7753546fa83bdcd91923c..6ea746ab8dd471599e98a9c9209025696aea6a53 100644 (file)
@@ -2,7 +2,7 @@
  * vlcproc.cpp: VlcProc class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: vlcproc.cpp,v 1.33 2003/06/09 12:33:16 asmax Exp $
+ * $Id: vlcproc.cpp,v 1.34 2003/06/10 11:43:40 gbazin Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -102,10 +102,8 @@ bool VlcProc::EventProc( Event *evt )
             return true;
 
         case VLC_OPEN:
-#ifndef BASIC_SKINS
             p_intf->p_sys->p_dialogs->ShowOpen( true );
             InterfaceRefresh();
-#endif
             return true;
 
         case VLC_LOAD_SKIN:
@@ -137,31 +135,23 @@ bool VlcProc::EventProc( Event *evt )
             return true;
 
         case VLC_PLAYLIST_ADD_FILE:
-#ifndef BASIC_SKINS
             p_intf->p_sys->p_dialogs->ShowOpen( false );
             InterfaceRefresh();
-#endif
             return true;
 
         case VLC_LOG_SHOW:
-#ifndef BASIC_SKINS
             p_intf->p_sys->p_dialogs->ShowMessages();
-#endif
             return true;
 
         case VLC_LOG_CLEAR:
             return true;
 
         case VLC_PREFS_SHOW:
-#ifndef BASIC_SKINS
             p_intf->p_sys->p_dialogs->ShowPrefs();
-#endif
             return true;
 
         case VLC_INFO_SHOW:
-#ifndef BASIC_SKINS
             p_intf->p_sys->p_dialogs->ShowFileInfo();
-#endif
             return true;
 
         case VLC_INTF_REFRESH:
@@ -340,9 +330,7 @@ void VlcProc::LoadSkin()
 {
     if( p_intf->p_sys->p_new_theme_file == NULL )
     {
-#ifndef BASIC_SKINS
         p_intf->p_sys->p_dialogs->ShowOpenSkin();
-#endif
     }
     else
     {
@@ -437,10 +425,8 @@ void VlcProc::PlayStream()
 
     if( !p_intf->p_sys->p_playlist->i_size )
     {
-#ifndef BASIC_SKINS
         p_intf->p_sys->p_dialogs->ShowOpen( true );
         InterfaceRefresh();
-#endif
         return;
     }
 
index 42870711e9a526aa9d29f3c88d1f083225e90900..4d6582f1c78d9228714ffa854687dae7c29ec189 100644 (file)
@@ -2,7 +2,7 @@
  * window.cpp: Window class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: window.cpp,v 1.28 2003/06/09 14:04:20 asmax Exp $
+ * $Id: window.cpp,v 1.29 2003/06/10 11:43:40 gbazin Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -424,12 +424,10 @@ void SkinWindow::MouseUp( int x, int y, int button )
         }
     }
 
-#ifndef BASIC_SKINS
     if( i < 0  && button == MOUSE_RIGHT )
     {
         p_intf->p_sys->p_dialogs->ShowPopup();
     }
-#endif
 }
 //---------------------------------------------------------------------------
 void SkinWindow::MouseDblClick( int x, int y, int button )
index ede0429dff1fb922c6e2fcbf07817d1e9c402e0b..8a4941ecb2458f15e9fae321158facd0e87acadf 100644 (file)
@@ -2,7 +2,7 @@
  * x11_theme.cpp: X11 implementation of the Theme class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: x11_theme.cpp,v 1.11 2003/06/09 12:33:17 asmax Exp $
+ * $Id: x11_theme.cpp,v 1.12 2003/06/10 11:43:41 gbazin Exp $
  *
  * Authors: Cyril Deguet     <asmax@videolan.org>
  *
@@ -61,7 +61,7 @@ X11Theme::X11Theme( intf_thread_t *_p_intf ) : Theme( _p_intf )
 X11Theme::~X11Theme()
 {
     XLOCK;
-    XDestroyWindow( display, p_intf->p_sys->mainWin );
+    //XDestroyWindow( display, p_intf->p_sys->mainWin );
     XUNLOCK;
 }
 //---------------------------------------------------------------------------