diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-04-08 07:49:42 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-04-08 07:49:42 +0000 |
| commit | 2177dbe64b6ece6261b1d6827d202b608dd77501 (patch) | |
| tree | befed24da9a6aabb92ce35e6876d7045e2ddaad2 /src/device-manager.h | |
| parent | Fix "show handles" button state on Ctrl+H (diff) | |
| download | inkscape-2177dbe64b6ece6261b1d6827d202b608dd77501.tar.gz inkscape-2177dbe64b6ece6261b1d6827d202b608dd77501.zip | |
Cleanup of device internal handling and API.
(bzr r9300)
Diffstat (limited to 'src/device-manager.h')
| -rw-r--r-- | src/device-manager.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/device-manager.h b/src/device-manager.h index 1bfb5120c..c32a79bfa 100644 --- a/src/device-manager.h +++ b/src/device-manager.h @@ -1,7 +1,7 @@ /* * Inkscape::DeviceManager - a view of input devices available. * - * Copyright 2006 Jon A. Cruz <jon@joncruz.org> + * Copyright 2010 Jon A. Cruz <jon@joncruz.org> * * Released under GNU GPL, read the file 'COPYING' for more information */ @@ -42,7 +42,11 @@ class DeviceManager : public Glib::Object { public: static DeviceManager& getManager(); - virtual std::list<InputDevice const *> getDevices() = 0; + virtual void loadConfig() = 0; + virtual void saveConfig() = 0; + + virtual std::list<Glib::RefPtr<InputDevice const> > getDevices() = 0; + virtual sigc::signal<void, const Glib::RefPtr<InputDevice>& > signalDeviceChanged() = 0; virtual sigc::signal<void, const Glib::RefPtr<InputDevice>& > signalAxesChanged() = 0; virtual sigc::signal<void, const Glib::RefPtr<InputDevice>& > signalButtonsChanged() = 0; @@ -52,6 +56,10 @@ public: virtual void addButton(Glib::ustring const & id, gint button) = 0; virtual void setLinkedTo(Glib::ustring const & id, Glib::ustring const& link) = 0; + virtual void setMode( Glib::ustring const & id, Gdk::InputMode mode ) = 0; + virtual void setAxisUse( Glib::ustring const & id, guint index, Gdk::AxisUse use ) = 0; + virtual void setKey( Glib::ustring const & id, guint index, guint keyval, Gdk::ModifierType mods ) = 0; + protected: DeviceManager(); virtual ~DeviceManager(); |
