Commit Graph

51 Commits

Author SHA1 Message Date
SupSuper
d0512db25c WIN32: Move all ARRAYSIZE undefs to util.h
Instead of trying to undefine ARRAYSIZE everywhere we use a Windows header, let's just do it before we define our own
2018-12-17 12:28:33 +02:00
SupSuper
7bff9176d5 WIN32: Fix incorrect Windows version check
There's no point in testing for Windows 10 since the comparison is already "greater than or equals", and it identifies itself as 6.2 for backwards compatibility. Likely it was failing before because the return type was wrong.

Version checks are unreliable anyways, should use feature checks, but "if it ain't broke don't fix it".
2018-12-16 10:48:13 +00:00
SupSuper
2f2555f728 WIN32: Move utility functions to a common wrapper 2018-12-16 10:48:13 +00:00
Colin Snover
6e2f18c498 MACOS: Fix warnings about undeclared selectors
When -Wundeclared-selector is enabled (recommended by Apple), the
calls to the setBadgeLabel selector in MacOSXTaskbarManager are
warned on because NSDockTile declarations are not included because
they do not exist in macOS 10.4 and earlier. While I don't know
that we are even supporting such old macOS versions these days, it
is simple enough to fix this problem when compiling to modern
macOS versions by conditionally including the necessary header.
2017-09-10 22:17:16 -05:00
Eugene Sandulenko
355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02:00
Colin Snover
1c0c540fa7 MACOS: Use 'unsigned int' instead of NSUInteger
NSUInteger apparently does not exist until macOS 10.5, but
buildbot targets 10.4.
2016-07-10 11:46:32 -05:00
Colin Snover
c294e4fbf8 MACOS: Fix sign comparison 2016-07-10 10:50:05 -05:00
Kirben
5181b50cea WIN32: Fix taskbar detection under Windows 10 onwards. 2016-06-08 10:06:57 +10:00
Kirben
9925851670 WIN32: Fix taskbar detection under Windows 10 onwards. 2016-06-08 09:56:18 +10:00
Thierry Crozat
e917971681 OS X: Clean taskbar code
This involves moving the NSDockTilePlugIn code to backend/taskbar
and fixing style to follow our coding conventions. One make target
was also renamed. All in all there is no change in functionality with this
commit.
2016-03-25 20:26:01 +00:00
Thierry Crozat
50f9f19927 OS X: Fix access to NSArray items with older SDKs 2016-03-25 18:30:48 +00:00
Thierry Crozat
24ce588b86 OS X: Add missing includes for recently introduced taskbar code 2016-03-25 18:06:21 +00:00
Thierry Crozat
d519dd8ec3 OS X: Implement a Dock Tile Plugin to display recent games menu in dock
This allows to start a recently played game directly from the dock. The
ScummVM.app application should have been permanently added to the
dock and the menu is only present when ScummVM is not running. The
list of recently played game is written by the taskbar code in ScummVM.
The Dock Tile Plugin only reads that list to populate the menu.
2016-03-25 15:37:13 +00:00
Thierry Crozat
2671918c92 OS X: Implement saving recent games list to user preferences 2016-03-25 15:37:04 +00:00
Johannes Schickel
655f4dfedb WIN32: Fix compilation with MinGW-w64 based Win32 compiler. 2016-02-12 19:22:47 +01:00
Johannes Schickel
862e4302a7 WIN32: Fix building for (some) MinGW64 toolchains. 2015-12-14 17:15:18 +01:00
Johannes Schickel
71cc9e41e8 WINCE: Fix compilation. 2015-02-18 05:24:45 +01:00
Johannes Schickel
3745ddbefd WIN32: Add experimental SDL2 support.
Based on changes by aquadran.
2015-02-16 02:13:11 +01:00
Tobia Tesan
2ea3ae9c57 UNITY: Check for GLib version at runtime
g_type_init() is deprecated since 2.36
2014-10-06 16:50:32 +02:00
Tobia Tesan
e96cba8bf3 UNITY: Call g_type_init but define DISABLE_DEPRECATION_WARNINGS 2014-10-06 16:26:28 +02:00
Tobia Tesan
fee66db83d UNITY: Call g_type_init only with GLib < 2.36
With GLib >= 2.36 g_type_init() is deprecated and only throws an ugly
warning
2014-10-05 17:05:08 +02:00
Thierry Crozat
6d7fcdd2b5 OSX: Implement TaskbarManager for Mac OS X
This implements count badge, progress bar, and icon overlay.
It uses the NSDockTile API which is available since OS X 10.5.
The code compiles and run on older system but without doing
anything.
2014-02-23 21:54:47 +00:00
Johannes Schickel
4412e12deb BUILD: Rename libunity support variable to "USE_UNITY" instead of "USE_TASKBAR_UNITY".
This makes it consistent with other library support variables.
2014-01-21 19:01:28 +01:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Tarek Soliman
921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
dhewg
51778ed4af TASKBAR: Fix compilation with mingw-w64
mingw-compat.h is not required for newer mingw-w64, all required
symbols are present in the system headers.
2012-01-23 18:41:45 +01:00
Littleboy
f702cb5695 BACKENDS: Implement notifyError() and clearError() for Win32TaskbarManager 2011-08-06 15:26:49 -04:00
Eugene Sandulenko
2fa17c44ed JANITORIAL: Remove SVN keywords 2011-08-06 11:30:47 +01:00
Littleboy
b0ee7bbb7e BACKENDS: Implement Win32TaskbarManager::setCount() 2011-06-29 11:07:23 -04:00
Littleboy
c32a3ea0d3 BACKENDS: Fix warnings in Win32TaskbarManager 2011-06-28 23:40:31 -04:00
Littleboy
3931de4235 BACKENDS: Fix running on pre-Windows 2000 operating systems
The Windows taskbar manager uses VerSetConditionMask and VerifyVersionInfo to check for Windows 7 or later
before enabling the taskbar integration features. Those functions did not appear until Windows 2000, so we
have to check for them at runtime.
2011-06-26 16:02:33 -04:00
athrxx
b60d864e6b TASKBAR: initialize _taskBar with NULL in constructor 2011-06-25 16:59:35 +02:00
Littleboy
712af61f76 BACKENDS: Silence warnings when compiling Win32TaskbarManager with mingw and add CLSID_ShellLink definition 2011-06-23 08:52:54 -04:00
Littleboy
2b01778e58 BACKENDS: Fix compilation with Unity
- Replace UNIX by POSIX
 - Move unity include to cpp file
 - Add exception for unistd.h and time.h headers
2011-06-22 20:52:59 -04:00
Littleboy
d9ede873d5 BACKENDS: Add missing enumeration value and GUID for compilation under older versions of mingw64 2011-06-22 20:22:26 -04:00
Julien
154c584d44 BACKENDS: Enhance Win32TaskbarManager::getIconPath()
We now look for an iconsPath configuration variable with the path to the icons folder.
In addition, we look if there is an "icons" subfolder (useful when using extrapath to store icons)
2011-06-16 16:09:20 -04:00
Julien
149a8f8f11 BACKENDS: Fix compilation of Win32TaskbarManager with mingw 2011-06-16 14:27:22 -04:00
Julien
5dff6c2c08 BACKENDS: Allow use of excluded functions needed by Win32TaskbarManager 2011-06-16 14:23:30 -04:00
Littleboy
f843b3f280 BACKENDS: Fix Win32TaskbarManager compilation with Mingw
It was missing an include for scummsys.h and so couldn't find the defines
2011-06-16 14:23:23 -04:00
Littleboy
1e3603b937 BACKENDS: Add define for Unity-specific taskbar code 2011-06-16 14:23:18 -04:00
Littleboy
fdada1dbff BACKENDS: Remove UnityTaskbarManager::setOverlayIcon()
Unity is not going to provide a way to set a custom overlay icon
(the emblem API is being replaced by a simple urgent state)
2011-06-16 14:23:15 -04:00
Littleboy
5649ddaf10 BACKENDS: Move Win32TaskbarManager init code to constructor 2011-06-16 14:23:14 -04:00
Littleboy
e1dc9cdc0b BACKENDS: Add support for count status to TaskbarManager
- Show the number of found games when using the massadd dialog
2011-06-16 14:23:12 -04:00
Littleboy
6c14d8a950 BACKENDS: Integrate glib main event loop
- Unity needs a glib event loop to dispatch events.
 - Cleanup whitespace and indentation
2011-06-16 14:22:51 -04:00
Littleboy
984e1968bc BACKENDS: Add WIP Unity support 2011-06-16 10:38:40 -04:00
Littleboy
c3d9c6afa5 BACKENDS: Add use flag for taskbar integration 2011-06-16 10:38:34 -04:00
Littleboy
a523ade332 BACKENDS: Add stubs for unity taskbar class 2011-06-16 10:37:37 -04:00
Littleboy
2348eeed4c BACKENDS: Add taskbar integration compat header for MingW 2011-06-16 10:36:39 -04:00
Littleboy
0fd56852b6 BACKENDS: Add support for custom game icon (recent items list and icon overlay) 2011-06-16 10:30:31 -04:00
Littleboy
c0ec09ac66 BACKENDS: Implement Win32 taskbar progress state and recent list 2011-06-16 10:30:06 -04:00