#define DS(i) i.width(),i.height()
-#define DEBUG_COLOR 0
-
/* Callback prototypes */
static int PopupMenuCB( vlc_object_t *p_this, const char *psz_variable,
vlc_value_t old_val, vlc_value_t new_val, void *param );
setFocusPolicy( Qt::StrongFocus );
setAcceptDrops(true);
setWindowIcon( QApplication::windowIcon() );
+ setWindowOpacity( config_GetFloat( p_intf, "qt-opacity" ) );
/* Set The Video In emebedded Mode or not */
videoEmbeddedFlag = false;
alwaysVideoFlag = true;
/* Set the other interface settings */
- playlistEmbeddedFlag = settings->value("playlist-embedded", true).toBool();
- visualSelectorEnabled= settings->value( "visual-selector", false ).toBool();
-
+ playlistEmbeddedFlag = settings->value( "playlist-embedded", true).toBool();
+ visualSelectorEnabled = settings->value( "visual-selector", false ).toBool();
+ notificationEnabled = config_GetInt( p_intf, "qt-notification" )
+ ? true : false;
/**************************
* UI and Widgets design
**************************/
void MainInterface::toggleMenus()
{
- if( menuBar()->isVisible() ) menuBar()->hide();
- else menuBar()->show();
- msg_Dbg( p_intf, "I was there: \\_o<~~ coin coin" );
+ msg_Dbg( p_intf, "I HAS HERE, HIDING YOUR MENUZ: \\_o<~~ coin coin" );
+ TOGGLEV( controls );
+ TOGGLEV( statusBar() );
+ updateGeometry();
}
/* Video widget cannot do this synchronously as it runs in another thread */
else
{
sysTray->setToolTip( name );
- sysTray->showMessage( qtr( "VLC media player" ), name,
- QSystemTrayIcon::NoIcon, 4000 );
+ if( notificationEnabled )
+ {
+ sysTray->showMessage( qtr( "VLC media player" ), name,
+ QSystemTrayIcon::NoIcon, 4000 );
+ }
}
}