Changeset 181 for smplayer/trunk/src/baseguiplus.h
- Timestamp:
- Aug 31, 2016, 5:31:04 PM (9 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 179
- Property svn:mergeinfo changed
-
smplayer/trunk/src/baseguiplus.h
r176 r181 21 21 22 22 #include "basegui.h" 23 #include "widgetactions.h" 23 24 #include <QSystemTrayIcon> 24 25 #include <QPoint> 25 26 #include "guiconfig.h" 27 28 #define SCREENS_SUPPORT 29 //#define DETACH_VIDEO_OPTION 26 30 27 31 class QMenu; … … 30 34 class TimeSliderAction; 31 35 class VolumeSliderAction; 36 class TimeLabelAction; 37 class InfoWindow; 38 class GlobalShortcuts; 32 39 33 40 class BaseGuiPlus : public BaseGui … … 41 48 virtual bool startHidden(); 42 49 50 #ifdef SCREENS_SUPPORT 51 /* virtual void toggleFullscreen(bool); */ 52 #endif 53 54 public slots: 55 #ifdef GLOBALSHORTCUTS 56 virtual void showPreferencesDialog(); 57 #endif 58 43 59 protected: 44 60 virtual void retranslateStrings(); 61 virtual void populateMainMenu(); 45 62 46 63 void loadConfig(); … … 48 65 void updateShowAllAct(); 49 66 50 51 67 virtual void aboutToEnterFullscreen(); 68 virtual void aboutToExitFullscreen(); 52 69 virtual void aboutToEnterCompactMode(); 53 70 virtual void aboutToExitCompactMode(); … … 58 75 TimeSliderAction * createTimeSliderAction(QWidget * parent); 59 76 VolumeSliderAction * createVolumeSliderAction(QWidget * parent); 77 TimeLabelAction * createTimeLabelAction(TimeLabelAction::TimeLabelType type, QWidget * parent); 78 79 #ifdef SCREENS_SUPPORT 80 bool isVideoDetached(); 81 #endif 60 82 61 83 protected slots: … … 71 93 virtual void showAll(); 72 94 virtual void quit(); 73 #ifdef Q_OS_OS274 void trayAvailable();75 #endif76 95 77 96 #if DOCK_PLAYLIST … … 89 108 #endif 90 109 110 #ifdef SCREENS_SUPPORT 111 void updateSendToScreen(); 112 void sendVideoToScreen(int screen); 113 114 void detachVideo(bool); 115 116 void showScreensInfo(); 117 #endif 118 119 #ifdef GLOBALSHORTCUTS 120 void updateGlobalShortcuts(); 121 #endif 91 122 92 123 protected: … … 97 128 MyAction * showTrayAct; 98 129 MyAction * showAllAct; 130 131 #ifdef DETACH_VIDEO_OPTION 132 MyAction * detachVideoAct; 133 #endif 134 135 #ifdef SCREENS_SUPPORT 136 MyAction * showScreensInfoAct; 137 QMenu * sendToScreen_menu; 138 MyActionGroup * sendToScreenGroup; 139 140 InfoWindow * screens_info_window; 141 QLabel * detached_label; 142 #endif 143 144 #ifdef GLOBALSHORTCUTS 145 GlobalShortcuts * global_shortcuts; 146 #endif 99 147 100 148 // To save state … … 108 156 //bool infowindow_visible; 109 157 110 158 int widgets_size; // To be able to restore the original size after exiting from compact mode 111 159 112 160 #if DOCK_PLAYLIST 113 161 PlaylistDock * playlistdock; 114 162 bool fullscreen_playlist_was_visible; 115 163 bool fullscreen_playlist_was_floating; … … 117 165 bool ignore_playlist_events; 118 166 #endif 119 120 167 }; 121 168
Note:
See TracChangeset
for help on using the changeset viewer.