~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to src/basegui.h

  • Committer: Package Import Robot
  • Author(s): Maia Kozheva, Maia Kozheva, Alessio Treglia
  • Date: 2012-04-14 12:01:57 UTC
  • mfrom: (1.1.13)
  • mto: (20.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: package-import@ubuntu.com-20120414120157-mndwobcslgisomso
[ Maia Kozheva ]
* New upstream release:
  - Changes since 0.7.1:
    + A toolbar editor has been added. Now it's possible to select the
      buttons and controls that want to appear in the toolbars.
    + New video filters: gradfun, blur and sharpen.
    + Now it's possible to change the GUI (default, mini, mpc) at runtime,
      no restart required.
    + sub files from opensubtitles should work again.
    + (Youtube) Recognize short urls (like this one:
      http://y2u.be/F5OcZBVPwOA)
    + Better support for chapters in video files.
    + Bug fix: remote m3u files work from the favorites menu or command line.
    + Internal changes in the single instance option (switch to 
      QtSingleApplication).
  - Fixes since 0.7.0:
    + SMPlayer took more than 10 seconds to show when running for the very
      first time.
    + The links to download subtitles from Opensubtitles were wrong.
    + SMPlayer crashed in the favorite editor when trying to select a file
      if the KDE open dialog was used.
  - Changes since 0.7.0:
    + By default the screenshots are saved in the user's pictures folder
      instead of the SMPlayer's config folder.
    + Now it's possible to change the opensubtitles server.
    + Youtube: seeking is slow with flv videos, so now flv videos have the
      lowest priority.
    + Youtube: now it's possible to search and download videos from youtube.
      This is provided by an external application (in linux you have to
      install an independent package: smtube).
* debian/copyright:
  - Rewrite according to DEP-5 specification.
* debian/control:
  - Depend on mplayer2 | mplayer. (Closes: #638279)
  - Update Standards-Version to 3.9.3.
* Remove debian/patches/handle_local_urls.diff, merged upstream.

[ Alessio Treglia ]
* Mention smplayer is also a front-end for MPlayer2.
* Fix small typo in the description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
class FilePropertiesDialog;
43
43
class VideoEqualizer;
44
44
class AudioEqualizer;
 
45
class Playlist;
 
46
#ifdef FIND_SUBTITLES
45
47
class FindSubtitlesWindow;
 
48
#endif
 
49
 
 
50
#ifdef VIDEOPREVIEW
46
51
class VideoPreview;
47
 
class Playlist;
 
52
#endif
 
53
 
48
54
 
49
55
class MyAction;
50
56
class MyActionGroup;
51
57
 
52
58
class PreferencesDialog;
53
 
class MyServer;
54
59
 
55
60
class Favorites;
56
61
class TVList;
60
65
    Q_OBJECT
61
66
    
62
67
public:
63
 
    BaseGui( bool use_server, QWidget* parent = 0, Qt::WindowFlags flags = 0 );
 
68
    BaseGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
64
69
        ~BaseGui();
65
70
 
66
71
        /* Return true if the window shouldn't show on startup */
74
79
        //! Execute all the actions after the video has started to play
75
80
        void runActionsLater(QString actions) { pending_actions_to_run = actions; };
76
81
 
 
82
#ifdef LOG_SMPLAYER
77
83
        //! Saves the line from the smplayer output
78
84
        void recordSmplayerLog(QString line);
 
85
#endif
79
86
 
80
87
public slots:
81
88
        virtual void open(QString file); // Generic open, autodetect type.
105
112
 
106
113
        void setInitialSubtitle(const QString & subtitle_file);
107
114
 
 
115
#ifdef FIND_SUBTITLES
108
116
        virtual void showFindSubtitlesDialog();
109
117
        virtual void openUploadSubtitlesPage(); //turbos
 
118
#endif
110
119
 
 
120
#ifdef VIDEOPREVIEW
111
121
        virtual void showVideoPreviewDialog();
 
122
#endif
 
123
 
 
124
        virtual void showTubeBrowser();
112
125
 
113
126
        virtual void showPlaylist();
114
127
        virtual void showPlaylist(bool b);
116
129
        virtual void showVideoEqualizer(bool b);
117
130
        virtual void showAudioEqualizer();
118
131
        virtual void showAudioEqualizer(bool b);
 
132
#ifdef LOG_MPLAYER
119
133
        virtual void showMplayerLog();
 
134
#endif
 
135
#ifdef LOG_SMPLAYER
120
136
        virtual void showLog();
 
137
#endif
121
138
        virtual void showPreferencesDialog();
122
139
        virtual void showFilePropertiesDialog();
123
140
 
225
242
        virtual void checkMousePos( QPoint );
226
243
 
227
244
        // Single instance stuff
228
 
        // Another instance request open a file
229
 
        virtual void remoteOpen(QString);
230
 
        virtual void remoteOpenFiles(QStringList);
231
 
        virtual void remoteAddFiles(QStringList);
232
 
        virtual void remoteLoadSubtitle(QString);
233
 
        virtual void remotePlayItem(int);
234
 
        virtual void remoteRemoveItem(int);
235
 
        virtual void remoteMoveItem(int, int);
236
 
        virtual void remoteViewPlaylist(QString*);
237
 
        virtual void remoteViewStatus(QString*);
238
 
        virtual void remoteViewClipInfo(QString*);
239
 
        virtual void remoteSeek(double);
240
 
        virtual void remoteGetChecked(QString, QString*);
241
 
        virtual void remoteGetVolume(int*);
 
245
#ifdef SINGLE_INSTANCE
 
246
        void handleMessageFromOtherInstances(const QString& message);
 
247
#endif
242
248
 
243
249
        //! Called when core can't parse the mplayer version and there's no
244
250
        //! version supplied by the user
258
264
        void clear_just_stopped();
259
265
#endif
260
266
 
 
267
#ifdef LOG_MPLAYER
261
268
        //! Clears the mplayer log
262
269
        void clearMplayerLog();
263
270
 
266
273
 
267
274
        //! Saves the mplayer log to a file every time a file is loaded
268
275
        void autosaveMplayerLog();
 
276
#endif
269
277
 
270
278
signals:
271
279
        void frameChanged(int);
288
296
        //! Sent when the user wants to close the main window
289
297
        void quitSolicited();
290
298
 
 
299
#ifdef GUI_CHANGE_ON_RUNTIME
 
300
        void guiChanged(QString gui);
 
301
#endif
 
302
 
291
303
protected:
292
304
        virtual void retranslateStrings();
293
305
        virtual void changeEvent(QEvent * event);
377
389
        MyAction * videoEqualizerAct;
378
390
        MyAction * screenshotAct;
379
391
        MyAction * screenshotsAct;
 
392
#ifdef VIDEOPREVIEW
380
393
        MyAction * videoPreviewAct;
 
394
#endif
381
395
        MyAction * flipAct;
382
396
        MyAction * mirrorAct;
383
397
        MyAction * postProcessingAct;
384
398
        MyAction * phaseAct;
385
399
        MyAction * deblockAct;
386
400
        MyAction * deringAct;
 
401
        MyAction * gradfunAct;
387
402
        MyAction * addNoiseAct;
388
403
        MyAction * addLetterboxAct;
389
404
        MyAction * upscaleAct;
417
432
        MyAction * useAssAct;
418
433
        MyAction * useForcedSubsOnlyAct;
419
434
        MyAction * subVisibilityAct;
 
435
#ifdef FIND_SUBTITLES
420
436
        MyAction * showFindSubtitlesDialogAct;
421
437
        MyAction * openUploadSubtitlesPageAct;//turbos  
 
438
#endif
422
439
 
423
440
        // Menu Options
424
441
        MyAction * showPlaylistAct;
425
442
        MyAction * showPropertiesAct;
426
443
        MyAction * showPreferencesAct;
 
444
        MyAction * showTubeBrowserAct;
 
445
#ifdef LOG_MPLAYER
427
446
        MyAction * showLogMplayerAct;
 
447
#endif
 
448
#ifdef LOG_SMPLAYER
428
449
        MyAction * showLogSmplayerAct;
 
450
#endif
429
451
 
430
452
        // Menu Help
431
453
        MyAction * showFAQAct;
501
523
        MyAction * denoiseNormalAct;
502
524
        MyAction * denoiseSoftAct;
503
525
 
 
526
        // Blur-sharpen group
 
527
        MyActionGroup * unsharpGroup;
 
528
        MyAction * unsharpNoneAct;
 
529
        MyAction * blurAct;
 
530
        MyAction * sharpenAct;
 
531
 
504
532
        // Window Size Action Group
505
533
        MyActionGroup * sizeGroup;
506
534
        MyAction * size50;
624
652
        QMenu * aspect_menu;
625
653
        QMenu * osd_menu;
626
654
        QMenu * deinterlace_menu;
627
 
        //QMenu * denoise_menu;
 
655
        QMenu * denoise_menu;
 
656
        QMenu * unsharp_menu;
628
657
        QMenu * videosize_menu;
629
658
        QMenu * audiochannels_menu;
630
659
        QMenu * stereomode_menu;
633
662
        QMenu * ab_menu; // A-B menu
634
663
        QMenu * videofilter_menu;
635
664
        QMenu * audiofilter_menu;
 
665
#if defined(LOG_MPLAYER) || defined(LOG_SMPLAYER)
636
666
        QMenu * logs_menu;
 
667
#endif
637
668
        QMenu * zoom_menu;
638
669
        QMenu * rotate_menu;
639
670
        QMenu * ontop_menu;
645
676
        QMenu * popup;
646
677
        QMenu * recentfiles_menu;
647
678
 
 
679
#ifdef LOG_MPLAYER
648
680
        LogWindow * mplayer_log_window;
 
681
#endif
 
682
#ifdef LOG_SMPLAYER
649
683
        LogWindow * smplayer_log_window;
 
684
#endif
650
685
        LogWindow * clhelp_window;
651
686
 
652
687
        PreferencesDialog *pref_dialog;
654
689
        Playlist * playlist;
655
690
        VideoEqualizer * video_equalizer;
656
691
        AudioEqualizer * audio_equalizer;
 
692
#ifdef FIND_SUBTITLES
657
693
        FindSubtitlesWindow * find_subs_dialog;
 
694
#endif
 
695
#ifdef VIDEOPREVIEW
658
696
        VideoPreview * video_preview;
 
697
#endif
659
698
 
660
699
        Core * core;
661
700
        MplayerWindow *mplayerwindow;
662
701
 
663
 
        MyServer * server;
664
 
 
665
702
        Favorites * favorites;
666
703
 
667
704
        TVList * tvlist;
674
711
        // Force settings from command line
675
712
        int arg_close_on_finish; // -1 = not set, 1 = true, 0 = false
676
713
        int arg_start_in_fullscreen; // -1 = not set, 1 = true, 0 = false
677
 
        bool use_control_server;
678
714
 
679
715
private:
680
716
        QString default_style;
693
729
        bool just_stopped;
694
730
#endif
695
731
 
 
732
#ifdef LOG_MPLAYER
696
733
        QString mplayer_log;
 
734
#endif
 
735
#ifdef LOG_SMPLAYER
697
736
        QString smplayer_log;
 
737
#endif
698
738
 
699
739
        bool ignore_show_hide_events;
700
740
};