Changeset 175 for smplayer/vendor/current/src/basegui.h
- Timestamp:
- May 3, 2016, 2:14:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified smplayer/vendor/current/src/basegui.h ¶
r168 r175 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 17 17 */ 18 18 19 #ifndef _BASEGUI_H_20 #define _BASEGUI_H_19 #ifndef BASEGUI_H 20 #define BASEGUI_H 21 21 22 22 #include <QMainWindow> … … 36 36 #endif 37 37 38 #ifdef MOUSE_GESTURES 39 #define MG_DELAYED_SEEK 40 #endif 41 38 42 //#define SHARE_MENU 39 43 … … 63 67 class UpdateChecker; 64 68 69 #ifdef SHARE_WIDGET 70 class ShareWidget; 71 #endif 65 72 66 73 class BaseGui : public QMainWindow … … 69 76 70 77 public: 71 78 BaseGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 ); 72 79 ~BaseGui(); 73 80 … … 87 94 void recordSmplayerLog(QString line); 88 95 #endif 96 97 Core * getCore() { return core; }; 98 Playlist * getPlaylist() { return playlist; }; 89 99 90 100 public slots: … … 113 123 virtual void helpCLOptions(); 114 124 virtual void helpCheckUpdates(); 115 #ifdef REMINDER_ACTIONS125 #ifdef SHARE_ACTIONS 116 126 virtual void helpDonate(); 117 127 #endif … … 159 169 virtual void showSubDelayDialog(); 160 170 virtual void showAudioDelayDialog(); 171 virtual void showStereo3dDialog(); 172 #ifdef BOOKMARKS 173 virtual void showAddBookmarkDialog(); 174 virtual void showBookmarkDialog(); 175 #endif 161 176 162 177 virtual void exitFullscreen(); … … 218 233 #endif 219 234 220 #ifdef UPDATE_CHECKER221 void reportNewVersionAvailable(QString);222 #endif223 224 235 #ifdef CHECK_UPGRADED 225 236 void checkIfUpgraded(); 226 237 #endif 227 238 228 #if def REMINDER_ACTIONS239 #if defined(SHARE_ACTIONS) && !defined(SHARE_WIDGET) 229 240 void checkReminder(); 230 241 #endif 231 242 232 243 #ifdef YOUTUBE_SUPPORT 244 void YTNoSslSupport(); 233 245 void YTNoSignature(const QString &); 234 #ifdef YT_USE_ SCRIPT246 #ifdef YT_USE_YTSIG 235 247 void YTUpdateScript(); 236 248 #endif … … 241 253 virtual void enableActionsOnPlaying(); 242 254 virtual void disableActionsOnStop(); 255 #endif 243 256 virtual void togglePlayAction(Core::State); 244 #endif245 257 246 258 void changeSizeFactor(int factor); … … 249 261 void resizeWindow(int w, int h); 250 262 virtual void hidePanel(); 263 void centerWindow(); 251 264 252 265 /* virtual void playlistVisibilityChanged(); */ … … 282 295 virtual void saveActions(); 283 296 297 virtual void processMouseMovedDiff(QPoint diff); 284 298 virtual void moveWindowDiff(QPoint diff); 299 #ifdef MG_DELAYED_SEEK 300 virtual void delayedSeek(); 301 #endif 285 302 286 303 // Single instance stuff … … 298 315 // stylesheet 299 316 #if ALLOW_CHANGE_STYLESHEET 300 virtual voidloadQss(QString filename);317 virtual QString loadQss(QString filename); 301 318 virtual void changeStyleSheet(QString style); 302 319 #endif 320 321 void applyStyles(); 303 322 304 323 #if defined(Q_OS_WIN) || defined(Q_OS_OS2) … … 349 368 virtual void retranslateStrings(); 350 369 virtual void changeEvent(QEvent * event); 370 #if QT_VERSION < 0x050000 351 371 virtual void hideEvent( QHideEvent * ); 352 372 virtual void showEvent( QShowEvent * ); 373 #else 374 virtual bool event(QEvent * e); 375 bool was_minimized; 376 #endif 353 377 #ifdef Q_OS_WIN 354 378 #ifdef AVOID_SCREENSAVER … … 379 403 #endif 380 404 void createMenus(); 405 #ifdef BOOKMARKS 406 void updateBookmarks(); 407 #endif 381 408 void updateRecents(); 382 409 void configureDiscDevices(); 410 void setupNetworkProxy(); 383 411 /* virtual void closeEvent( QCloseEvent * e ); */ 384 412 … … 412 440 MyAction * stopAct; 413 441 MyAction * frameStepAct; 442 MyAction * frameBackStepAct; 414 443 MyAction * rewind1Act; 415 444 MyAction * rewind2Act; … … 441 470 MyAction * screenshotAct; 442 471 MyAction * screenshotsAct; 472 #ifdef CAPTURE_STREAM 473 MyAction * capturingAct; 474 #endif 443 475 #ifdef VIDEOPREVIEW 444 476 MyAction * videoPreviewAct; … … 446 478 MyAction * flipAct; 447 479 MyAction * mirrorAct; 480 MyAction * stereo3dAct; 448 481 MyAction * postProcessingAct; 449 482 MyAction * phaseAct; … … 464 497 MyAction * audioDelayAct; // Ask for delay 465 498 MyAction * extrastereoAct; 499 #ifdef MPLAYER_SUPPORT 466 500 MyAction * karaokeAct; 501 #endif 467 502 MyAction * volnormAct; 468 503 MyAction * loadAudioAct; … … 481 516 MyAction * incSubScaleAct; 482 517 MyAction * decSubScaleAct; 483 MyAction * useAssAct; 518 #ifdef MPV_SUPPORT 519 MyAction * seekNextSubAct; 520 MyAction * seekPrevSubAct; 521 #endif 522 MyAction * useCustomSubStyleAct; 484 523 MyAction * useForcedSubsOnlyAct; 485 524 MyAction * subVisibilityAct; … … 508 547 MyAction * showCLOptionsAct; // Command line options 509 548 MyAction * showCheckUpdatesAct; 510 #if defined(YOUTUBE_SUPPORT) && defined(YT_USE_ SCRIPT)549 #if defined(YOUTUBE_SUPPORT) && defined(YT_USE_YTSIG) 511 550 MyAction * updateYTAct; 512 551 #endif 513 552 MyAction * showConfigAct; 514 #ifdef REMINDER_ACTIONS553 #ifdef SHARE_ACTIONS 515 554 MyAction * donateAct; 516 555 #endif … … 524 563 MyAction * yahooAct; 525 564 #endif 565 566 // OSD 567 MyAction * incOSDScaleAct; 568 MyAction * decOSDScaleAct; 526 569 527 570 // Playlist … … 559 602 560 603 MyAction * showFilenameAct; 604 MyAction * showTimeAct; 561 605 MyAction * toggleDeinterlaceAct; 562 606 … … 573 617 MyAction * autoZoom235Act; 574 618 575 #if USE_MPLAYER_PANSCAN576 MyAction * incPanscanAct;577 MyAction * decPanscanAct;578 #endif579 619 580 620 // OSD Action Group … … 696 736 MyActionGroup * audioTrackGroup; 697 737 MyActionGroup * subtitleTrackGroup; 738 #ifdef MPV_SUPPORT 739 MyActionGroup * secondarySubtitleTrackGroup; 740 #endif 698 741 MyActionGroup * titleGroup; 742 MyActionGroup * chapterGroup; 699 743 MyActionGroup * angleGroup; 700 MyActionGroup * chapterGroup; 744 #ifdef BOOKMARKS 745 MyActionGroup * bookmarkGroup; 746 MyAction * addBookmarkAct; 747 MyAction * editBookmarksAct; 748 749 MyAction * prevBookmarkAct; 750 MyAction * nextBookmarkAct; 751 #endif 701 752 702 753 #if DVDNAV_SUPPORT … … 722 773 723 774 QMenu * disc_menu; 724 QMenu * subtitlestrack_menu; 775 QMenu * subtitles_track_menu; 776 #ifdef MPV_SUPPORT 777 QMenu * secondary_subtitles_track_menu; 778 #endif 725 779 #if PROGRAM_SWITCH 726 780 QMenu * programtrack_menu; … … 731 785 QMenu * chapters_menu; 732 786 QMenu * angles_menu; 787 #ifdef BOOKMARKS 788 QMenu * bookmark_menu; 789 #endif 733 790 QMenu * aspect_menu; 734 791 QMenu * osd_menu; … … 795 852 #endif 796 853 854 #ifdef SHARE_WIDGET 855 ShareWidget * sharewidget; 856 #endif 857 797 858 QStringList actions_list; 798 859 … … 802 863 int arg_close_on_finish; // -1 = not set, 1 = true, 0 = false 803 864 int arg_start_in_fullscreen; // -1 = not set, 1 = true, 0 = false 865 866 #ifdef MG_DELAYED_SEEK 867 QTimer * delayed_seek_timer; 868 int delayed_seek_value; 869 #endif 804 870 805 871 private:
Note:
See TracChangeset
for help on using the changeset viewer.