switch( event->type() )
{
+ case FullscreenControlToggle_Type:
+ // FIXME
+ TOGGLEV( this );
+ break;
case FullscreenControlShow_Type:
vlc_mutex_lock( &lock );
b_fs = b_fullscreen;
/*****************************************************************************
- * main_inteface.cpp : Main interface
+ * dialogs_provider.cpp : Dialog Provider
*****************************************************************************
- * Copyright (C) 2006-2007 the VideoLAN team
+ * Copyright (C) 2006-2008 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
static int const ItemSpuChanged_Type = QEvent::User + IMEventType + 7;
static int const ItemTeletextChanged_Type= QEvent::User + IMEventType + 8;
-static int const FullscreenControlShow_Type = QEvent::User + IMEventType + 10;
-static int const FullscreenControlHide_Type = QEvent::User + IMEventType + 11;
-static int const FullscreenControlPlanHide_Type = QEvent::User + IMEventType + 12;
+static int const FullscreenControlToggle_Type = QEvent::User + IMEventType + 10;
+static int const FullscreenControlShow_Type = QEvent::User + IMEventType + 11;
+static int const FullscreenControlHide_Type = QEvent::User + IMEventType + 12;
+static int const FullscreenControlPlanHide_Type = QEvent::User + IMEventType + 13;
class IMEvent : public QEvent
{
}
#endif
+void MainInterface::toggleFSC()
+{
+ if( !fullscreenControls ) return;
+
+ IMEvent *eShow = new IMEvent( FullscreenControlToggle_Type, 0 );
+ QApplication::postEvent( fullscreenControls, static_cast<QEvent *>(eShow) );
+}
+#if 0
void MainInterface::requestLayoutUpdate()
{
emit askUpdate();
}
+#endif
//FIXME remove me at the end...
void MainInterface::debug()
vlc_value_t old_val, vlc_value_t new_val, void *param )
{
intf_thread_t *p_intf = (intf_thread_t *)param;
- p_intf->p_sys->p_mi->requestLayoutUpdate();
+ p_intf->p_sys->p_mi->toggleFSC();
- return VLC_SUCCESS;
+ /* Show event */
+ return VLC_SUCCESS;
}
void releaseVideo( void * );
int controlVideo( void *p_window, int i_query, va_list args );
+#if 0
void requestLayoutUpdate();
-
+#endif
/* Getters */
QSystemTrayIcon *getSysTray() { return sysTray; };
QMenu *getSysTrayMenu() { return systrayMenu; };
void toggleUpdateSystrayMenu();
void toggleAdvanced();
void toggleFullScreen();
+ void toggleFSC();
/* Manage the Video Functions from the vout threads */
void releaseVideoSlot( void * );