MainInterface Class Reference

Inheritance diagram for MainInterface:

Inheritance graph
[legend]
Collaboration diagram for MainInterface:

Collaboration graph
[legend]

Public Slots

void undockPlaylist ()
void dockPlaylist (pl_dock_e i_pos=PL_BOTTOM)
void toggleMinimalView (bool)
void togglePlaylist ()
 Toggle the playlist widget or dialog.
void toggleUpdateSystrayMenu ()
 Updates the Systray Icon's menu and toggle the main interface.
void toggleAdvanced ()
void toggleFullScreen ()
void toggleFSC ()
void popupMenu (const QPoint &)
void changeThumbbarButtons (int)
void getVideoSlot (WId *p_id, int *pi_x, int *pi_y, unsigned *pi_width, unsigned *pi_height)
void releaseVideoSlot (void)

Signals

void askGetVideo (WId *p_id, int *pi_x, int *pi_y, unsigned *pi_width, unsigned *pi_height)
void askReleaseVideo ()
void askVideoToResize (unsigned int, unsigned int)
void askVideoSetFullScreen (bool)
void askUpdate ()
void minimalViewToggled (bool)
void fullscreenInterfaceToggled (bool)

Public Member Functions

 MainInterface (intf_thread_t *)
virtual ~MainInterface ()
WId getVideo (int *pi_x, int *pi_y, unsigned int *pi_width, unsigned int *pi_height)
 NOTE: You must note change the state of this object or other Qt4 UI objects, from the video output thread - only from the Qt4 UI main loop thread.
void releaseVideo (void)
int controlVideo (int i_query, va_list args)
QSystemTrayIcon * getSysTray ()
QMenu * getSysTrayMenu ()
int getControlsVisibilityStatus ()
virtual QSize sizeHint () const

Protected Member Functions

void dropEventPlay (QDropEvent *, bool)
virtual void dropEvent (QDropEvent *)
virtual void dragEnterEvent (QDragEnterEvent *)
virtual void dragMoveEvent (QDragMoveEvent *)
virtual void dragLeaveEvent (QDragLeaveEvent *)
virtual void closeEvent (QCloseEvent *)
virtual void customEvent (QEvent *)
virtual void keyPressEvent (QKeyEvent *)
virtual void wheelEvent (QWheelEvent *)
virtual void resizeEvent (QResizeEvent *event)

Friends

class PlaylistWidget

Constructor & Destructor Documentation

MainInterface::MainInterface ( intf_thread_t _p_intf  ) 

Configuration and settings Pre-building of interface

Retrieve saved sizes for main window mainBasedSize = based window size for normal mode (no video, no background) mainVideoSize = window size with video (all modes)

Connects on nameChanged() Those connects are different because options can impeach them to trigger.

CONNECTS on PLAY_STATUS

References __MAX, askGetVideo(), askReleaseVideo(), askUpdate(), askVideoSetFullScreen(), askVideoToResize(), config_GetFloat, config_GetInt, CONNECT, QVLCMenu::createMenuBar(), MainInputManager::getInstance(), getSettings, getVideoSlot(), IntfShowCB(), QVLCMW::p_intf, intf_thread_t::p_libvlc, popupMenu(), PopupMenuCB(), QT_ALWAYS_VIDEO_MODE, QT_MINIMAL_MODE, qtr, releaseVideoSlot(), QVLCTools::restoreWidgetPosition(), sizeHint(), THEDP, THEMIM, toggleMinimalView(), togglePlaylist(), and var_AddCallback.

MainInterface::~MainInterface (  )  [virtual]


Member Function Documentation

WId MainInterface::getVideo ( int *  pi_x,
int *  pi_y,
unsigned int *  pi_width,
unsigned int *  pi_height 
)

NOTE: You must note change the state of this object or other Qt4 UI objects, from the video output thread - only from the Qt4 UI main loop thread.

All window provider queries must be handled through signals or events. That's why we have all those emit statements...

References askGetVideo().

Referenced by WindowOpen().

void MainInterface::releaseVideo ( void   ) 

References askReleaseVideo().

Referenced by WindowClose().

int MainInterface::controlVideo ( int  i_query,
va_list  args 
)

QSystemTrayIcon* MainInterface::getSysTray (  )  [inline]

QMenu* MainInterface::getSysTrayMenu (  )  [inline]

int MainInterface::getControlsVisibilityStatus (  ) 

QSize MainInterface::sizeHint (  )  const [virtual]

void MainInterface::dropEventPlay ( QDropEvent *  event,
bool  b_play 
) [protected]

void MainInterface::dropEvent ( QDropEvent *  event  )  [protected, virtual]

References dropEventPlay().

void MainInterface::dragEnterEvent ( QDragEnterEvent *  event  )  [protected, virtual]

void MainInterface::dragMoveEvent ( QDragMoveEvent *  event  )  [protected, virtual]

void MainInterface::dragLeaveEvent ( QDragLeaveEvent *  event  )  [protected, virtual]

void MainInterface::closeEvent ( QCloseEvent *  e  )  [protected, virtual]

References THEDP.

void MainInterface::customEvent ( QEvent *  event  )  [protected, virtual]

void MainInterface::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

void MainInterface::wheelEvent ( QWheelEvent *  e  )  [protected, virtual]

void MainInterface::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

void MainInterface::undockPlaylist (  )  [slot]

void MainInterface::dockPlaylist ( pl_dock_e  i_pos = PL_BOTTOM  )  [slot]

void MainInterface::toggleMinimalView ( bool  b_switch  )  [slot]

void MainInterface::togglePlaylist (  )  [slot]

Toggle the playlist widget or dialog.

References QVLCMW::p_intf, PL_UNDOCKED, PlaylistWidget, and QVLCTools::restoreWidgetPosition().

Referenced by customEvent(), MainInterface(), and ActionsManager::playlist().

void MainInterface::toggleUpdateSystrayMenu (  )  [slot]

Updates the Systray Icon's menu and toggle the main interface.

References QVLCMW::p_intf, and QVLCMenu::updateSystrayMenu().

void MainInterface::toggleAdvanced (  )  [slot]

void MainInterface::toggleFullScreen ( void   )  [slot]

void MainInterface::toggleFSC (  )  [slot]

References FullscreenControlToggle_Type.

Referenced by IntfShowCB().

void MainInterface::popupMenu ( const QPoint &  p  )  [slot]

References QVLCMW::p_intf, and QVLCMenu::PopupMenu().

Referenced by MainInterface().

void MainInterface::changeThumbbarButtons ( int  i_status  )  [slot]

void MainInterface::getVideoSlot ( WId *  p_id,
int *  pi_x,
int *  pi_y,
unsigned *  pi_width,
unsigned *  pi_height 
) [slot]

void MainInterface::releaseVideoSlot ( void   )  [slot]

References VideoWidget::release().

Referenced by MainInterface().

void MainInterface::askGetVideo ( WId *  p_id,
int *  pi_x,
int *  pi_y,
unsigned *  pi_width,
unsigned *  pi_height 
) [signal]

Referenced by getVideo(), and MainInterface().

void MainInterface::askReleaseVideo (  )  [signal]

Referenced by MainInterface(), and releaseVideo().

void MainInterface::askVideoToResize ( unsigned  int,
unsigned  int 
) [signal]

Referenced by controlVideo(), and MainInterface().

void MainInterface::askVideoSetFullScreen ( bool   )  [signal]

Referenced by controlVideo(), and MainInterface().

void MainInterface::askUpdate (  )  [signal]

void MainInterface::minimalViewToggled ( bool   )  [signal]

Referenced by toggleMinimalView().

void MainInterface::fullscreenInterfaceToggled ( bool   )  [signal]

Referenced by toggleFullScreen().


Friends And Related Function Documentation

friend class PlaylistWidget [friend]

Referenced by togglePlaylist().


The documentation for this class was generated from the following files:

Generated on Fri Nov 20 08:06:13 2009 for VLC by  doxygen 1.5.6