Changeset 175 for smplayer/vendor/current/src/basegui.h
- Timestamp:
- May 3, 2016, 2:14:41 PM (10 years ago)
- File:
-
- 1 edited
-
smplayer/vendor/current/src/basegui.h (modified) (29 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/basegui.h
r168 r175 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <[email protected]>2 Copyright (C) 2006-201 Ricardo Villalba <[email protected]> 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 20 #define 21 21 22 22 #include <QMainWindow> … … 36 36 #endif 37 37 38 39 40 41 38 42 //#define SHARE_MENU 39 43 … … 63 67 class UpdateChecker; 64 68 69 70 71 65 72 66 73 class BaseGui : public QMainWindow … … 69 76 70 77 public: 71 BaseGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );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 98 89 99 90 100 public slots: … … 113 123 virtual void helpCLOptions(); 114 124 virtual void helpCheckUpdates(); 115 #ifdef REMINDER_ACTIONS125 #ifdef _ACTIONS 116 126 virtual void helpDonate(); 117 127 #endif … … 159 169 virtual void showSubDelayDialog(); 160 170 virtual void showAudioDelayDialog(); 171 172 173 174 175 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 229 240 void checkReminder(); 230 241 #endif 231 242 232 243 #ifdef YOUTUBE_SUPPORT 244 233 245 void YTNoSignature(const QString &); 234 #ifdef YT_USE_ SCRIPT246 #ifdef YT_USE_ 235 247 void YTUpdateScript(); 236 248 #endif … … 241 253 virtual void enableActionsOnPlaying(); 242 254 virtual void disableActionsOnStop(); 255 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 251 264 252 265 /* virtual void playlistVisibilityChanged(); */ … … 282 295 virtual void saveActions(); 283 296 297 284 298 virtual void moveWindowDiff(QPoint diff); 299 300 301 285 302 286 303 // Single instance stuff … … 298 315 // stylesheet 299 316 #if ALLOW_CHANGE_STYLESHEET 300 virtual voidloadQss(QString filename);317 virtual loadQss(QString filename); 301 318 virtual void changeStyleSheet(QString style); 302 319 #endif 320 321 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 351 371 virtual void hideEvent( QHideEvent * ); 352 372 virtual void showEvent( QShowEvent * ); 373 374 375 376 353 377 #ifdef Q_OS_WIN 354 378 #ifdef AVOID_SCREENSAVER … … 379 403 #endif 380 404 void createMenus(); 405 406 407 381 408 void updateRecents(); 382 409 void configureDiscDevices(); 410 383 411 /* virtual void closeEvent( QCloseEvent * e ); */ 384 412 … … 412 440 MyAction * stopAct; 413 441 MyAction * frameStepAct; 442 414 443 MyAction * rewind1Act; 415 444 MyAction * rewind2Act; … … 441 470 MyAction * screenshotAct; 442 471 MyAction * screenshotsAct; 472 473 474 443 475 #ifdef VIDEOPREVIEW 444 476 MyAction * videoPreviewAct; … … 446 478 MyAction * flipAct; 447 479 MyAction * mirrorAct; 480 448 481 MyAction * postProcessingAct; 449 482 MyAction * phaseAct; … … 464 497 MyAction * audioDelayAct; // Ask for delay 465 498 MyAction * extrastereoAct; 499 466 500 MyAction * karaokeAct; 501 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_) 511 550 MyAction * updateYTAct; 512 551 #endif 513 552 MyAction * showConfigAct; 514 #ifdef REMINDER_ACTIONS553 #ifdef _ACTIONS 515 554 MyAction * donateAct; 516 555 #endif … … 524 563 MyAction * yahooAct; 525 564 #endif 565 566 567 568 526 569 527 570 // Playlist … … 559 602 560 603 MyAction * showFilenameAct; 604 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 739 740 698 741 MyActionGroup * titleGroup; 742 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 788 789 733 790 QMenu * aspect_menu; 734 791 QMenu * osd_menu; … … 795 852 #endif 796 853 854 855 856 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 867 868 869 804 870 805 871 private:
Note:
See TracChangeset
for help on using the changeset viewer.
