

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 |
| 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] |
| 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 | ) |
| int MainInterface::controlVideo | ( | int | i_query, | |
| va_list | args | |||
| ) |
References askUpdate(), askVideoSetFullScreen(), askVideoToResize(), i_height, msg_Warn, QVLCMW::p_intf, VLC_EGENERIC, VLC_SUCCESS, VOUT_WINDOW_SET_FULLSCREEN, VOUT_WINDOW_SET_ON_TOP, and VOUT_WINDOW_SET_SIZE.
Referenced by WindowControl().
| QSystemTrayIcon* MainInterface::getSysTray | ( | ) | [inline] |
Referenced by QVLCMenu::updateSystrayMenu().
| QMenu* MainInterface::getSysTrayMenu | ( | ) | [inline] |
Referenced by QVLCMenu::updateSystrayMenu().
| int MainInterface::getControlsVisibilityStatus | ( | ) |
References CONTROLS_ADVANCED, CONTROLS_HIDDEN, and CONTROLS_VISIBLE.
Referenced by ~MainInterface().
| QSize MainInterface::sizeHint | ( | ) | const [virtual] |
References __MAX, msg_Warn, QVLCMW::p_intf, QT_ALWAYS_VIDEO_MODE, QT_MINIMAL_MODE, VideoWidget::sizeHint(), and VISIBLE.
Referenced by MainInterface().
| void MainInterface::dropEventPlay | ( | QDropEvent * | event, | |
| bool | b_play | |||
| ) | [protected] |
References RecentsMRL::addRecent(), RecentsMRL::getInstance(), input_AddSubtitle(), make_URI(), QVLCMW::p_intf, pl_Unlocked, playlist_Add(), PLAYLIST_APPEND, PLAYLIST_END, PLAYLIST_GO, PLAYLIST_PREPARSE, qtu, THEMIM, THEPL, and toNativeSeparators.
Referenced by dropEvent(), and PlaylistWidget::dropEvent().
| 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] |
References i_vlckey, QVLCMW::p_intf, intf_thread_t::p_libvlc, qtWheelEventToVLCKey(), and var_SetInteger.
| void MainInterface::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
References QT_ALWAYS_VIDEO_MODE, QT_MINIMAL_MODE, and VISIBLE.
| void MainInterface::undockPlaylist | ( | ) | [slot] |
| void MainInterface::dockPlaylist | ( | pl_dock_e | i_pos = PL_BOTTOM |
) | [slot] |
| void MainInterface::toggleMinimalView | ( | bool | b_switch | ) | [slot] |
References minimalViewToggled(), QT_ALWAYS_VIDEO_MODE, QT_MINIMAL_MODE, and BackgroundWidget::toggle().
Referenced by MainInterface().
| 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] |
References askUpdate(), and fullscreenInterfaceToggled().
| void MainInterface::toggleFSC | ( | ) | [slot] |
| void MainInterface::popupMenu | ( | const QPoint & | p | ) | [slot] |
| 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] |
References askUpdate(), VideoWidget::request(), VideoWidget::SetSizing(), BackgroundWidget::toggle(), and VISIBLE.
Referenced by MainInterface().
| void MainInterface::releaseVideoSlot | ( | void | ) | [slot] |
| 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] |
Referenced by controlVideo(), getVideoSlot(), MainInterface(), and toggleFullScreen().
| void MainInterface::minimalViewToggled | ( | bool | ) | [signal] |
Referenced by toggleMinimalView().
| void MainInterface::fullscreenInterfaceToggled | ( | bool | ) | [signal] |
Referenced by toggleFullScreen().
friend class PlaylistWidget [friend] |
Referenced by togglePlaylist().
1.5.6