Started to fix bug #106920 in a more genreral way:
2004-06-16 Michael Natterer <mitch@gimp.org> Started to fix bug #106920 in a more genreral way: * libgimpwidgets/Makefile.am * libgimpwidgets/gimpwidgetstypes.h * libgimpwidgets/gimpwidgetsmarshal.list * libgimpwidgets/gimpcontroller.[ch]: new abstract base class which provides an API for pluggable input controller modules (mouse wheel, usb/midi stuff etc.). * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpcontrollerwheel.[ch]: subclass of the above which maps wheel mouse scroll events to controller events. * app/widgets/gimpcontrollers.[ch]: manager for controllers. reads $(gimpdir)/controllerrc and keeps a mapping of controller events to GtkActions. * app/gui/gui.c: initialize and shut down the controller stuff. * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_canvas_tool_events): if a wheel controller exists, dispatch GdkEventScroll to it first and return if it was handled.
This commit is contained in:
committed by
Michael Natterer
parent
7070931e6a
commit
d0117ef5b9
36
app/widgets/gimpcontrollers.h
Normal file
36
app/widgets/gimpcontrollers.h
Normal file
@ -0,0 +1,36 @@
|
||||
/* The GIMP -- an image manipulation program
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* gimpcontrollers.h
|
||||
* Copyright (C) 2004 Michael Natterer <mitch@gimp.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_CONTROLLERS_H__
|
||||
#define __GIMP_CONTROLLERS_H__
|
||||
|
||||
|
||||
void gimp_controllers_init (Gimp *gimp);
|
||||
void gimp_controllers_exit (Gimp *gimp);
|
||||
|
||||
void gimp_controllers_restore (Gimp *gimp,
|
||||
GimpUIManager *ui_manager);
|
||||
void gimp_controllers_save (Gimp *gimp);
|
||||
|
||||
GimpController * gimp_controllers_get_wheel (Gimp *gimp);
|
||||
|
||||
|
||||
#endif /* __GIMP_CONTROLLERS_H__ */
|
||||
Reference in New Issue
Block a user