- VideoWidget *videoWidget;
- InputManager *main_input_manager;
- QLabel *timeLabel;
- QLabel *nameLabel;
- InputSlider *slider;
- /// Main input associated to the playlist
- input_thread_t *p_input;
- Ui::MainInterfaceUI ui;
+ QSettings *settings;
+ QSize mainSize, addSize;
+ QSystemTrayIcon *sysTray;
+ QMenu *systrayMenu;
+ QString input_name;
+ QVBoxLayout *mainLayout;
+ ControlsWidget *controls;
+
+ bool need_components_update;
+
+ void calculateInterfaceSize();
+ void handleMainUi( QSettings* );
+ void handleSystray();
+ void doComponentsUpdate();
+ void createSystray();
+
+ /* Video */
+ VideoWidget *videoWidget;
+ virtual void keyPressEvent( QKeyEvent *);
+ virtual void wheelEvent( QWheelEvent * );
+
+ bool embeddedPlaylistWasActive;
+ bool videoIsActive;
+ QSize savedVideoSize;
+
+ BackgroundWidget *bgWidget;
+ VisualSelector *visualSelector;
+ PlaylistWidget *playlistWidget;
+
+ bool playlistEmbeddedFlag;
+ bool videoEmbeddedFlag;
+ bool alwaysVideoFlag;
+ bool visualSelectorEnabled;
+ bool notificationEnabled;
+
+ InputManager *main_input_manager;
+ input_thread_t *p_input; ///< Main input associated to the playlist
+
+ QLabel *timeLabel;
+ QLabel *speedLabel;
+ QLabel *nameLabel;
+
+ bool b_remainingTime;
+
+ void customEvent( QEvent *);
+public slots:
+ void undockPlaylist();
+ void toggleMenus();
+ void togglePlaylist();
+ void toggleUpdateSystrayMenu();
+ void toggleAdvanced();