* dialogs.cpp: Handles all the different dialog boxes we provide.\r
*****************************************************************************\r
* Copyright (C) 2003 VideoLAN\r
- * $Id: dialogs.cpp,v 1.3 2003/06/05 21:22:27 gbazin Exp $\r
+ * $Id: dialogs.cpp,v 1.4 2003/06/08 16:56:48 gbazin Exp $\r
*\r
* Authors: Gildas Bazin <gbazin@netcourrier.com>\r
*\r
wxTheApp->AddPendingEvent( event );\r
}\r
\r
+void Dialogs::ShowPopup()\r
+{\r
+ wxCommandEvent event( wxEVT_DIALOG, ShowPopup_Event );\r
+ event.SetClientData( this );\r
+\r
+ wxTheApp->AddPendingEvent( event );\r
+}\r
+\r
void Dialogs::OnShowOpen( wxCommandEvent& event )\r
{\r
Dialogs *p_dialogs = (Dialogs *)event.GetClientData();\r
Dialogs *p_dialogs = (Dialogs *)param;\r
\r
#ifndef BASIC_SKINS\r
- wxCommandEvent event( wxEVT_DIALOG, ShowPopup_Event );\r
- event.SetClientData( p_dialogs );\r
-\r
- wxTheApp->AddPendingEvent( event );\r
+ p_dialogs->ShowPopup();\r
#endif // BASIC_SKINS\r
\r
return VLC_SUCCESS;\r
* dialogs.h: Dialogs class\r
*****************************************************************************\r
* Copyright (C) 2003 VideoLAN\r
- * $Id: dialogs.h,v 1.3 2003/06/05 21:22:27 gbazin Exp $\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
void ShowMessages();\r
void ShowPrefs();\r
void ShowFileInfo();\r
+ void ShowPopup();\r
\r
vlc_bool_t b_popup_change;\r
\r
* skin-main.cpp: skins plugin for VLC
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: skin_main.cpp,v 1.33 2003/06/06 23:34:35 asmax Exp $
+ * $Id: skin_main.cpp,v 1.34 2003/06/08 16:56:48 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
{
// Last chance: the user can select a new theme file
#ifndef BASIC_SKINS
+ wxMutexGuiEnter();
wxFileDialog dialog( NULL,
wxU(_("Open a skin file")), wxT(""), wxT(""),
wxT("Skin files (*.vlt)|*.vlt|Skin files (*.xml)|*.xml|"
{
// He, he, what the hell is he doing ?
delete Loader;
+ wxMutexGuiLeave();
return;
}
+ wxMutexGuiLeave();
}
else
#endif
{
delete Loader;
+#ifndef BASIC_SKINS
+ wxMutexGuiLeave();
+#endif
return;
}
}
* themeloader.cpp: ThemeLoader class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: themeloader.cpp,v 1.12 2003/06/06 14:50:49 gbazin Exp $
+ * $Id: themeloader.cpp,v 1.13 2003/06/08 16:56:48 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
if( ! Parse( TempPath + DIRECTORY_SEPARATOR + string( DEFAULT_XML_FILE ) ) )
{
+ msg_Err( p_intf, "%s doesn't contain a " DEFAULT_XML_FILE " file",
+ FileName.c_str() );
DeleteTempFiles( TempPath );
return false;
}
* window.cpp: Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: window.cpp,v 1.25 2003/05/31 23:23:59 ipkiss Exp $
+ * $Id: window.cpp,v 1.26 2003/06/08 16:56:48 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
#include "banks.h"
#include "theme.h"
#include "skin_common.h"
+#include "dialogs.h"
#include <stdio.h>
break;
}
}
+
+ if( i < 0 && button == 2 )
+ {
+ p_intf->p_sys->p_dialogs->ShowPopup();
+ }
}
//---------------------------------------------------------------------------
void SkinWindow::MouseDblClick( int x, int y, int button )