Changeset 181 for smplayer/trunk/src/basegui.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/basegui.h
r176 r181 29 29 #include "guiconfig.h" 30 30 31 #ifdef Q_OS_WIN32 31 #ifdef AVOID_SCREENSAVER 33 /* Disable screensaver by event */34 32 #include <windows.h> 35 #endif36 33 #endif 37 34 … … 41 38 42 39 //#define SHARE_MENU 40 //#define DETECT_MINIMIZE_WORKAROUND 41 42 #if !defined(Q_OS_WIN) && QT_VERSION >= 0x050000 && QT_VERSION < 0x050501 43 #define NUMPAD_WORKAROUND 44 #endif 43 45 44 46 class QWidget; 45 47 class QMenu; 46 48 class LogWindow; 49 class InfoWindow; 47 50 class MplayerWindow; 48 51 … … 208 211 virtual void exitFullscreenIfNeeded(); 209 212 virtual void playlistHasFinished(); 213 virtual void addToPlaylistCurrentFile(); 210 214 211 215 virtual void displayState(Core::State state); … … 321 325 void applyStyles(); 322 326 323 #if defined(Q_OS_WIN) || defined(Q_OS_OS2) 324 #ifdef AVOID_SCREENSAVER 325 /* Disable screensaver by event */ 327 virtual void setTabletMode(bool); 328 329 #ifdef Q_OS_WIN 330 void checkSystemTabletMode(); 331 void systemTabletModeChanged(bool); 332 333 #ifdef AVOID_SCREENSAVER 326 334 void clear_just_stopped(); 327 #endif335 #endif 328 336 #endif 329 337 … … 344 352 void videoInfoChanged(int width, int height, double fps); 345 353 void timeChanged(QString time_ready_to_print); 354 void timeChanged(double current_time); 346 355 347 356 /* … … 365 374 #endif 366 375 376 void preferencesChanged(); 377 void tabletModeChanged(bool new_mode); 378 367 379 protected: 368 380 virtual void retranslateStrings(); 369 381 virtual void changeEvent(QEvent * event); 370 #if QT_VERSION < 0x050000382 #ifndef DETECT_MINIMIZE_WORKAROUND 371 383 virtual void hideEvent( QHideEvent * ); 372 384 virtual void showEvent( QShowEvent * ); … … 375 387 bool was_minimized; 376 388 #endif 389 377 390 #ifdef Q_OS_WIN 378 #ifdef AVOID_SCREENSAVER379 /* Disable screensaver by event */380 391 virtual bool winEvent ( MSG * m, long * result ); 392 #if QT_VERSION >= 0x050000 393 virtual bool nativeEvent(const QByteArray &eventType, void * message, long * result); 381 394 #endif 395 #endif 396 397 #ifdef NUMPAD_WORKAROUND 398 void keyPressEvent(QKeyEvent *event); 382 399 #endif 383 400 … … 397 414 void createFilePropertiesDialog(); 398 415 void setDataToFileProperties(); 399 void initializeGui(); 416 400 417 void createActions(); 401 418 #if AUTODISABLE_ACTIONS … … 403 420 #endif 404 421 void createMenus(); 422 virtual void populateMainMenu(); 405 423 #ifdef BOOKMARKS 406 424 void updateBookmarks(); … … 541 559 MyAction * showLogSmplayerAct; 542 560 #endif 561 MyAction * tabletModeAct; 543 562 544 563 // Menu Help … … 769 788 QMenu *subtitlesMenu; 770 789 QMenu *browseMenu; 790 QMenu *viewMenu; 771 791 QMenu *optionsMenu; 772 792 QMenu *helpMenu; … … 802 822 QMenu * audiofilter_menu; 803 823 #if defined(LOG_MPLAYER) || defined(LOG_SMPLAYER) 804 QMenu * logs_menu;824 //QMenu * logs_menu; 805 825 #endif 806 826 QMenu * zoom_menu; … … 819 839 QMenu * popup; 820 840 QMenu * recentfiles_menu; 841 QMenu * access_menu; 821 842 822 843 #ifdef LOG_MPLAYER … … 826 847 LogWindow * smplayer_log_window; 827 848 #endif 828 LogWindow * clhelp_window;849 InfoWindow * clhelp_window; 829 850 830 851 PreferencesDialog *pref_dialog; … … 845 866 Favorites * favorites; 846 867 868 #ifdef TV_SUPPORT 847 869 TVList * tvlist; 848 870 TVList * radiolist; 871 #endif 849 872 850 873 #ifdef UPDATE_CHECKER … … 878 901 bool was_maximized; 879 902 880 #if defined(Q_OS_WIN) || defined(Q_OS_OS2)881 903 #ifdef AVOID_SCREENSAVER 882 /* Disable screensaver by event */883 904 bool just_stopped; 884 #endif885 905 #endif 886 906 … … 894 914 bool ignore_show_hide_events; 895 915 }; 896 897 #endif 898 916 917 #endif 918
Note:
See TracChangeset
for help on using the changeset viewer.