summaryrefslogtreecommitdiff
path: root/src/basegui.h
diff options
context:
space:
mode:
authorMateusz Łukasik <mati75@linuxmint.pl>2016-06-15 20:23:58 +0200
committerMateusz Łukasik <mati75@linuxmint.pl>2016-06-15 20:23:58 +0200
commit42be0eb4f1d7a25dca97e8e2eb4ec4d03b7931fb (patch)
treefae3347b0c924378c57862feea2708766d159771 /src/basegui.h
parent1a2f0c9c1087899a00298db8fa70518d3c1e69f8 (diff)
Imported Upstream version 16.6.0~ds0
Diffstat (limited to 'src/basegui.h')
-rw-r--r--src/basegui.h42
1 files changed, 26 insertions, 16 deletions
diff --git a/src/basegui.h b/src/basegui.h
index 34af4c6..8624dd8 100644
--- a/src/basegui.h
+++ b/src/basegui.h
@@ -28,12 +28,9 @@
#include "config.h"
#include "guiconfig.h"
-#ifdef Q_OS_WIN
#ifdef AVOID_SCREENSAVER
-/* Disable screensaver by event */
#include <windows.h>
#endif
-#endif
#ifdef MOUSE_GESTURES
#define MG_DELAYED_SEEK
@@ -44,6 +41,7 @@
class QWidget;
class QMenu;
class LogWindow;
+class InfoWindow;
class MplayerWindow;
class QLabel;
@@ -320,11 +318,15 @@ protected slots:
void applyStyles();
-#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
-#ifdef AVOID_SCREENSAVER
- /* Disable screensaver by event */
+ virtual void setTabletMode(bool);
+
+#ifdef Q_OS_WIN
+ void checkSystemTabletMode();
+ void systemTabletModeChanged(bool);
+
+ #ifdef AVOID_SCREENSAVER
void clear_just_stopped();
-#endif
+ #endif
#endif
#ifdef LOG_MPLAYER
@@ -343,6 +345,7 @@ signals:
void ABMarkersChanged(int secs_a, int secs_b);
void videoInfoChanged(int width, int height, double fps);
void timeChanged(QString time_ready_to_print);
+ void timeChanged(double current_time);
/*
void wheelUp();
@@ -364,6 +367,9 @@ signals:
void guiChanged(QString gui);
#endif
+ void preferencesChanged();
+ void tabletModeChanged(bool new_mode);
+
protected:
virtual void retranslateStrings();
virtual void changeEvent(QEvent * event);
@@ -374,10 +380,11 @@ protected:
virtual bool event(QEvent * e);
bool was_minimized;
#endif
+
#ifdef Q_OS_WIN
- #ifdef AVOID_SCREENSAVER
- /* Disable screensaver by event */
virtual bool winEvent ( MSG * m, long * result );
+ #if QT_VERSION >= 0x050000
+ virtual bool nativeEvent(const QByteArray &eventType, void * message, long * result);
#endif
#endif
@@ -396,12 +403,13 @@ protected:
void createPreferencesDialog();
void createFilePropertiesDialog();
void setDataToFileProperties();
- void initializeGui();
+
void createActions();
#if AUTODISABLE_ACTIONS
void setActionsEnabled(bool);
#endif
void createMenus();
+ virtual void populateMainMenu();
#ifdef BOOKMARKS
void updateBookmarks();
#endif
@@ -540,6 +548,7 @@ protected:
#ifdef LOG_SMPLAYER
MyAction * showLogSmplayerAct;
#endif
+ MyAction * tabletModeAct;
// Menu Help
MyAction * showFirstStepsAct;
@@ -768,6 +777,7 @@ protected:
QMenu *audioMenu;
QMenu *subtitlesMenu;
QMenu *browseMenu;
+ QMenu *viewMenu;
QMenu *optionsMenu;
QMenu *helpMenu;
@@ -801,7 +811,7 @@ protected:
QMenu * videofilter_menu;
QMenu * audiofilter_menu;
#if defined(LOG_MPLAYER) || defined(LOG_SMPLAYER)
- QMenu * logs_menu;
+ //QMenu * logs_menu;
#endif
QMenu * zoom_menu;
QMenu * rotate_menu;
@@ -818,6 +828,7 @@ protected:
QMenu * popup;
QMenu * recentfiles_menu;
+ QMenu * access_menu;
#ifdef LOG_MPLAYER
LogWindow * mplayer_log_window;
@@ -825,7 +836,7 @@ protected:
#ifdef LOG_SMPLAYER
LogWindow * smplayer_log_window;
#endif
- LogWindow * clhelp_window;
+ InfoWindow * clhelp_window;
PreferencesDialog *pref_dialog;
FilePropertiesDialog *file_dialog;
@@ -844,8 +855,10 @@ protected:
Favorites * favorites;
+#ifdef TV_SUPPORT
TVList * tvlist;
TVList * radiolist;
+#endif
#ifdef UPDATE_CHECKER
UpdateChecker * update_checker;
@@ -877,12 +890,9 @@ private:
QSize win_size;
bool was_maximized;
-#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
#ifdef AVOID_SCREENSAVER
- /* Disable screensaver by event */
bool just_stopped;
#endif
-#endif
#ifdef LOG_MPLAYER
QString mplayer_log;
@@ -893,6 +903,6 @@ private:
bool ignore_show_hide_events;
};
-
+
#endif