]> git.tdb.fi Git - libs/gui.git/log
libs/gui.git
11 years agoImplement automatic registration of image loaders
Mikko Rasa [Mon, 7 Oct 2013 18:13:15 +0000 (21:13 +0300)]
Implement automatic registration of image loaders

11 years agoUse a RefPtr of correct type
Mikko Rasa [Mon, 7 Oct 2013 16:43:02 +0000 (19:43 +0300)]
Use a RefPtr of correct type

11 years agoChange the ImageLoader API to use IO::Seekable
Mikko Rasa [Mon, 7 Oct 2013 11:08:19 +0000 (14:08 +0300)]
Change the ImageLoader API to use IO::Seekable

Trying to operate on purely streamed I/O turns out to be more headache
than it's worth.  I'll implement a generic adaptor in the IO namespace
if it's needed at a later point.

11 years agoFix the cocoa error dialog so that it actually compiles
Mikko Rasa [Sun, 6 Oct 2013 16:50:30 +0000 (19:50 +0300)]
Fix the cocoa error dialog so that it actually compiles

11 years agoUse logic operators to collapse nested conditionals in Build file
Mikko Rasa [Sun, 6 Oct 2013 08:32:00 +0000 (11:32 +0300)]
Use logic operators to collapse nested conditionals in Build file

11 years agoMake the image loading code more modular
Mikko Rasa [Sat, 5 Oct 2013 23:00:57 +0000 (02:00 +0300)]
Make the image loading code more modular

Instead of being embedded in the Image class, there's now a separate
ImageLoader class with subclasses for each image type.  In the future
some kind of plugin system may be implemented.

DevIL code was also extensively reworked to get rid of the need to read
the entire file to memory.

11 years agoImplement graphical reporting for uncaught exceptions
Mikko Rasa [Sat, 5 Oct 2013 12:20:18 +0000 (15:20 +0300)]
Implement graphical reporting for uncaught exceptions

11 years agoUpdate .gitignore
Mikko Rasa [Tue, 1 Oct 2013 14:12:43 +0000 (17:12 +0300)]
Update .gitignore

11 years agoAdd OpenGL context support on OS X
Mikko Rasa [Tue, 1 Oct 2013 14:11:53 +0000 (17:11 +0300)]
Add OpenGL context support on OS X

11 years agoSet window title for ev
Mikko Rasa [Tue, 1 Oct 2013 11:20:06 +0000 (14:20 +0300)]
Set window title for ev

11 years agoBasic OS X support
Mikko Rasa [Tue, 1 Oct 2013 11:19:25 +0000 (14:19 +0300)]
Basic OS X support

The event tester works and reports sensible events.  Some things are
still missing, notably GL contexts and window resize tracking.

11 years agoTry to guess the primary monitor if xrandr isn't making any sense
Mikko Rasa [Thu, 26 Sep 2013 22:01:28 +0000 (01:01 +0300)]
Try to guess the primary monitor if xrandr isn't making any sense

11 years agoExpose a lot more information through the Monitor struct
Mikko Rasa [Thu, 26 Sep 2013 16:29:18 +0000 (19:29 +0300)]
Expose a lot more information through the Monitor struct

This includes current mode and location in a multi-monitor setup.  Rotated
monitors and modes are also supported.  It's enough for many common cases,
though more exotic layouts still cannot be restored.

I'm not certain exactly how Windows handles multiple monitors.  Additional
research is required.

11 years agoAdd a missing #include
Mikko Rasa [Thu, 26 Sep 2013 16:26:59 +0000 (19:26 +0300)]
Add a missing #include

11 years agoInitial XRandR support
Mikko Rasa [Thu, 26 Sep 2013 12:32:49 +0000 (15:32 +0300)]
Initial XRandR support

It can't yet restore most multi-monitor configurations correctly.

11 years agoExtend the video mode API to support multiple monitors
Mikko Rasa [Wed, 25 Sep 2013 18:33:57 +0000 (21:33 +0300)]
Extend the video mode API to support multiple monitors

Xf86vidmode can't support this and will be replaced with XRandR in the
imminent future.

11 years agoMove struct VideoMode to its own header
Mikko Rasa [Tue, 24 Sep 2013 15:56:24 +0000 (18:56 +0300)]
Move struct VideoMode to its own header

11 years agoFix handling of various special keys on Windows
Mikko Rasa [Fri, 12 Jul 2013 08:41:33 +0000 (11:41 +0300)]
Fix handling of various special keys on Windows

11 years agoCreate Display::priv also on Windows
Mikko Rasa [Thu, 11 Jul 2013 19:12:03 +0000 (22:12 +0300)]
Create Display::priv also on Windows

11 years agoSet multisample attributes correctly on glX
Mikko Rasa [Thu, 11 Jul 2013 19:11:38 +0000 (22:11 +0300)]
Set multisample attributes correctly on glX

11 years agoForce c'tors and d'tors of classes with external symbols into the library
Mikko Rasa [Mon, 24 Jun 2013 10:20:00 +0000 (13:20 +0300)]
Force c'tors and d'tors of classes with external symbols into the library

11 years agoFix a missing parameter in wgl version of GLContext
Mikko Rasa [Wed, 5 Jun 2013 19:35:56 +0000 (22:35 +0300)]
Fix a missing parameter in wgl version of GLContext

11 years agoUse mspio rather than iostreams for printing errors
Mikko Rasa [Wed, 5 Jun 2013 07:01:46 +0000 (10:01 +0300)]
Use mspio rather than iostreams for printing errors

11 years agoAdd KEY_NONE constant
Mikko Rasa [Wed, 5 Jun 2013 06:59:22 +0000 (09:59 +0300)]
Add KEY_NONE constant

11 years agoSplit platform-specific parts into separate directories
Mikko Rasa [Fri, 24 May 2013 18:08:06 +0000 (21:08 +0300)]
Split platform-specific parts into separate directories

11 years agoFix event connections in the event example
Mikko Rasa [Thu, 25 Apr 2013 12:27:28 +0000 (15:27 +0300)]
Fix event connections in the event example

11 years agoAllow event handling to be interrupted
Mikko Rasa [Sun, 24 Mar 2013 15:06:09 +0000 (17:06 +0200)]
Allow event handling to be interrupted

11 years agoReplace Image::load_memory with load_io
Mikko Rasa [Wed, 16 Jan 2013 16:37:11 +0000 (18:37 +0200)]
Replace Image::load_memory with load_io

11 years agoAdd the target type to lexical_cast invocations
Mikko Rasa [Sat, 1 Dec 2012 09:55:16 +0000 (11:55 +0200)]
Add the target type to lexical_cast invocations

11 years agoFix mouse buttons on Windows
Mikko Rasa [Sat, 1 Dec 2012 09:54:57 +0000 (11:54 +0200)]
Fix mouse buttons on Windows

12 years agoUpdate the Build file with new Builder features
Mikko Rasa [Wed, 12 Sep 2012 08:23:47 +0000 (11:23 +0300)]
Update the Build file with new Builder features

12 years agoProvide access to the desktop mode
Mikko Rasa [Wed, 12 Sep 2012 08:20:58 +0000 (11:20 +0300)]
Provide access to the desktop mode

This allows an application to default to the desktop resolution in a
reliable way.

12 years agoXKeycodeToKeysym is deprecated
Mikko Rasa [Wed, 25 Jul 2012 19:47:55 +0000 (22:47 +0300)]
XKeycodeToKeysym is deprecated

13 years agoFix a stray header name
Mikko Rasa [Tue, 6 Sep 2011 20:33:27 +0000 (23:33 +0300)]
Fix a stray header name

13 years agoUse hashes to make button/axis indices in Hub predictable
Mikko Rasa [Sun, 4 Sep 2011 19:46:31 +0000 (22:46 +0300)]
Use hashes to make button/axis indices in Hub predictable

13 years agoOutput character events in the event example
Mikko Rasa [Tue, 30 Aug 2011 18:27:46 +0000 (21:27 +0300)]
Output character events in the event example

13 years agoFall back to Device::get_*_name if name can't be determined
Mikko Rasa [Tue, 30 Aug 2011 18:26:39 +0000 (21:26 +0300)]
Fall back to Device::get_*_name if name can't be determined

13 years agoAvoid generating events for unknown keys
Mikko Rasa [Tue, 30 Aug 2011 18:26:21 +0000 (21:26 +0300)]
Avoid generating events for unknown keys

13 years agoFix windows compilation
Mikko Rasa [Tue, 30 Aug 2011 18:08:49 +0000 (21:08 +0300)]
Fix windows compilation

13 years agoAdd an event handling example
Mikko Rasa [Tue, 30 Aug 2011 18:07:30 +0000 (21:07 +0300)]
Add an event handling example

13 years agoStyle update: remove alignment
Mikko Rasa [Tue, 30 Aug 2011 18:04:30 +0000 (21:04 +0300)]
Style update: remove alignment

13 years agoRemove modifier constants
Mikko Rasa [Tue, 30 Aug 2011 18:01:22 +0000 (21:01 +0300)]
Remove modifier constants
A new more flexible system will be implemented in the near future

13 years agoDiscard the EventSource abstraction
Mikko Rasa [Tue, 30 Aug 2011 18:00:29 +0000 (21:00 +0300)]
Discard the EventSource abstraction
Instead handle native input event directly in Keyboard and Mouse

13 years agoUse FS::extpart for checking filename extension
Mikko Rasa [Sat, 27 Aug 2011 19:24:04 +0000 (22:24 +0300)]
Use FS::extpart for checking filename extension

13 years agoPut (most of) DevIL code in its own file
Mikko Rasa [Sat, 27 Aug 2011 19:23:10 +0000 (22:23 +0300)]
Put (most of) DevIL code in its own file
Always store image information in the private struct

13 years agoBetter PNG error reporting
Mikko Rasa [Fri, 26 Aug 2011 11:52:37 +0000 (14:52 +0300)]
Better PNG error reporting

13 years agoSeparate PNG loading to a separate file
Mikko Rasa [Fri, 26 Aug 2011 11:49:07 +0000 (14:49 +0300)]
Separate PNG loading to a separate file

13 years agoRename the entire library to mspgui
Mikko Rasa [Fri, 26 Aug 2011 10:44:18 +0000 (13:44 +0300)]
Rename the entire library to mspgui

13 years agoConsistently label the graphics part as graphics
Mikko Rasa [Fri, 26 Aug 2011 10:41:12 +0000 (13:41 +0300)]
Consistently label the graphics part as graphics
Fix multiple inclusion guards in the input headers

13 years agoException changes
Mikko Rasa [Thu, 25 Aug 2011 09:16:25 +0000 (12:16 +0300)]
Exception changes

13 years agoHeader updates
Mikko Rasa [Wed, 24 Aug 2011 09:48:28 +0000 (12:48 +0300)]
Header updates

13 years agoUpdate Build file
Mikko Rasa [Wed, 24 Aug 2011 08:35:06 +0000 (11:35 +0300)]
Update Build file

13 years agoComment changes
Mikko Rasa [Tue, 16 Aug 2011 12:55:47 +0000 (15:55 +0300)]
Comment changes

13 years agoStyle update: spaces around assignments
Mikko Rasa [Tue, 16 Aug 2011 12:50:01 +0000 (15:50 +0300)]
Style update: spaces around assignments

13 years agoDrop Id tags and copyright notices from files
Mikko Rasa [Tue, 16 Aug 2011 12:44:27 +0000 (15:44 +0300)]
Drop Id tags and copyright notices from files

13 years agoConvert svn:ignore to .gitignore
Mikko Rasa [Thu, 25 Aug 2011 09:18:11 +0000 (12:18 +0300)]
Convert svn:ignore to .gitignore

14 years agoAdd tick() method to SimpleWindow
Mikko Rasa [Tue, 2 Nov 2010 13:12:05 +0000 (13:12 +0000)]
Add tick() method to SimpleWindow

14 years agoFix an uninitialized variable
Mikko Rasa [Tue, 2 Nov 2010 13:11:50 +0000 (13:11 +0000)]
Fix an uninitialized variable
Add a missing virtual keyword

14 years agoAdd EventSource abstraction layer below Window
Mikko Rasa [Sun, 28 Feb 2010 11:28:36 +0000 (11:28 +0000)]
Add EventSource abstraction layer below Window

14 years agoFix a condition
Mikko Rasa [Thu, 11 Feb 2010 08:28:27 +0000 (08:28 +0000)]
Fix a condition

14 years agoDefault to using OpenGL and libpng since those are commonly needed
Mikko Rasa [Thu, 3 Dec 2009 08:32:21 +0000 (08:32 +0000)]
Default to using OpenGL and libpng since those are commonly needed

14 years agoFix compilation on 64-bit systems
Mikko Rasa [Thu, 3 Dec 2009 08:29:35 +0000 (08:29 +0000)]
Fix compilation on 64-bit systems

15 years agoGuard access to XF86VidModeSetViewPort
Mikko Rasa [Sat, 24 Oct 2009 23:34:04 +0000 (23:34 +0000)]
Guard access to XF86VidModeSetViewPort

15 years agoBump version to 1.1 1.1
Mikko Rasa [Mon, 5 Oct 2009 16:38:17 +0000 (16:38 +0000)]
Bump version to 1.1
Update Build file for builder 1.0

15 years agoVarious fixes to Window resizing and fullscreen handling on X11
Mikko Rasa [Mon, 3 Aug 2009 12:26:54 +0000 (12:26 +0000)]
Various fixes to Window resizing and fullscreen handling on X11
Add fullscreen parameter to SimpleWindow constructors

15 years agoSupport mouse wheel on win32
Mikko Rasa [Sun, 26 Jul 2009 18:10:27 +0000 (18:10 +0000)]
Support mouse wheel on win32
Fix fullscreen mode switching when the window is not visible
Fix a memory leak in Image

15 years agoMake xf86vidmode support optional
Mikko Rasa [Mon, 23 Mar 2009 11:07:37 +0000 (11:07 +0000)]
Make xf86vidmode support optional
Some fixes to Image

15 years agoSupport ignoring keyboard autorepeat
Mikko Rasa [Sun, 8 Mar 2009 15:45:46 +0000 (15:45 +0000)]
Support ignoring keyboard autorepeat

15 years agoAdd support for using libpng directly for PNG files
Mikko Rasa [Fri, 23 Jan 2009 19:47:37 +0000 (19:47 +0000)]
Add support for using libpng directly for PNG files

15 years agoFix a bug in SimpleWindow
Mikko Rasa [Wed, 21 Jan 2009 10:45:04 +0000 (10:45 +0000)]
Fix a bug in SimpleWindow

16 years agoAdd Window::warp_pointer (No win32 support for now)
Mikko Rasa [Sun, 2 Nov 2008 17:40:27 +0000 (17:40 +0000)]
Add Window::warp_pointer (No win32 support for now)
Delete Window's private data in destructor

16 years agoAdd Changelog.txt 1.0
Mikko Rasa [Tue, 14 Oct 2008 18:47:58 +0000 (18:47 +0000)]
Add Changelog.txt
Bump version

16 years agoSimplify invisible cursor creation
Mikko Rasa [Mon, 6 Oct 2008 19:44:07 +0000 (19:44 +0000)]
Simplify invisible cursor creation
Fullscreen mode fixes

16 years agoNormalize device axis ranges to [-1, 1]
Mikko Rasa [Mon, 6 Oct 2008 15:14:35 +0000 (15:14 +0000)]
Normalize device axis ranges to [-1, 1]
Make dead zone and threshold control-specific
Disable Control copy-c'tor and operator= as non-sensible
Properly support dead zone and threshold in SmoothControl
Implement get_axis_name in Mouse and Hub

16 years agoHide the platform-specific parts of other classes as well
Mikko Rasa [Sun, 5 Oct 2008 08:57:50 +0000 (08:57 +0000)]
Hide the platform-specific parts of other classes as well

16 years agoAdd SimpleWindow and SimpleGLWindow
Mikko Rasa [Sat, 4 Oct 2008 18:42:13 +0000 (18:42 +0000)]
Add SimpleWindow and SimpleGLWindow
Make OpenGL context support an optional feature
Use pimpl to hide platform-specific parts of GLContext

16 years agoBump version for release 0.9
Mikko Rasa [Mon, 18 Aug 2008 09:18:39 +0000 (09:18 +0000)]
Bump version for release
Add License.txt

16 years agoMove Image from mspgl to here
Mikko Rasa [Sun, 17 Aug 2008 21:34:32 +0000 (21:34 +0000)]
Move Image from mspgl to here
Support hiding the cursor
Update svn:ignore

16 years agoImplement video mode changing and fullscreen on win32
Mikko Rasa [Wed, 23 Jul 2008 15:14:27 +0000 (15:14 +0000)]
Implement video mode changing and fullscreen on win32
Implement resizable flag of WindowOptions
Guard against FPE in refresh rate calculation on X11
Handle window resizing on win32

16 years agoAdd a missing include
Mikko Rasa [Sun, 8 Jun 2008 23:44:17 +0000 (23:44 +0000)]
Add a missing include
Fix some gcc 4.3 style warnings

16 years agoOpenGL can now be required as a package on all archs
Mikko Rasa [Wed, 19 Mar 2008 11:42:50 +0000 (11:42 +0000)]
OpenGL can now be required as a package on all archs
Fix win32 compilation

16 years agoAdd platform independent constants for keys (win32 code untested)
Mikko Rasa [Mon, 10 Mar 2008 15:18:28 +0000 (15:18 +0000)]
Add platform independent constants for keys (win32 code untested)

16 years agoAdd set_source method to Control
Mikko Rasa [Mon, 10 Mar 2008 10:57:51 +0000 (10:57 +0000)]
Add set_source method to Control

16 years agoReorganize files to separate gbase and input
Mikko Rasa [Thu, 6 Mar 2008 12:54:18 +0000 (12:54 +0000)]
Reorganize files to separate gbase and input

16 years agoBugfixes
Mikko Rasa [Wed, 6 Feb 2008 10:32:49 +0000 (10:32 +0000)]
Bugfixes

16 years agoAdd DrawContext for 2D graphics
Mikko Rasa [Tue, 5 Feb 2008 16:41:32 +0000 (16:41 +0000)]
Add DrawContext for 2D graphics

16 years agoAdd names for input devices
Mikko Rasa [Mon, 31 Dec 2007 18:26:00 +0000 (18:26 +0000)]
Add names for input devices
Add support for retrieving button and axis names
Some minor tweaks

16 years agoWin32 compatibility (for most things)
Mikko Rasa [Sun, 30 Dec 2007 16:18:40 +0000 (16:18 +0000)]
Win32 compatibility (for most things)
Bind GLContext to a Window at creation time

16 years agoPlug some memory leaks
Mikko Rasa [Fri, 28 Dec 2007 20:05:18 +0000 (20:05 +0000)]
Plug some memory leaks

16 years agoSupport reconfiguring Windows on the fly
Mikko Rasa [Wed, 26 Dec 2007 13:56:05 +0000 (13:56 +0000)]
Support reconfiguring Windows on the fly

16 years agoImplement the rest of fullscreen mode (video mode switching, pointer grab)
Mikko Rasa [Mon, 24 Dec 2007 23:06:24 +0000 (23:06 +0000)]
Implement the rest of fullscreen mode (video mode switching, pointer grab)

16 years agoRedesign and refactor
Mikko Rasa [Thu, 13 Dec 2007 15:07:01 +0000 (15:07 +0000)]
Redesign and refactor
Add class Display for access to the graphical environemnt before any windows are created
Replace GLWindow with an independent GLContext class
Put stuff into namespace Graphics
Support for querying and changing video modes
Handle Xlib errors

16 years agoSet override_redirect attribute when fullscreen is requested
Mikko Rasa [Tue, 11 Dec 2007 13:37:23 +0000 (13:37 +0000)]
Set override_redirect attribute when fullscreen is requested
Fix smooth control pairing
capture_complete -> signal_capture_complete

17 years agocore/error.h renamed to except.h
Mikko Rasa [Thu, 4 Oct 2007 20:18:52 +0000 (20:18 +0000)]
core/error.h renamed to except.h

17 years agoBugfixes for SmoothControl pairing
Mikko Rasa [Wed, 26 Sep 2007 17:20:50 +0000 (17:20 +0000)]
Bugfixes for SmoothControl pairing

17 years agoAdd a control layer suitable for games
Mikko Rasa [Wed, 26 Sep 2007 17:00:10 +0000 (17:00 +0000)]
Add a control layer suitable for games

17 years agoAdd Window::set_title
Mikko Rasa [Sat, 22 Sep 2007 17:07:27 +0000 (17:07 +0000)]
Add Window::set_title

17 years agoThe xlib package now has a lowercase x
Mikko Rasa [Sat, 22 Sep 2007 16:59:32 +0000 (16:59 +0000)]
The xlib package now has a lowercase x

17 years agoAdd input hub
Mikko Rasa [Mon, 27 Aug 2007 14:29:12 +0000 (14:29 +0000)]
Add input hub
Connect Keyboard to key_release

17 years agoConvert GLWindow to use GLX 1.3
Mikko Rasa [Mon, 27 Aug 2007 14:18:07 +0000 (14:18 +0000)]
Convert GLWindow to use GLX 1.3
Restructure the code a bit