diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-03-20 08:44:00 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-03-20 08:44:00 +0000 |
| commit | f5a1bf8a5e3ad56f5e17992e81dd50f9d914ab05 (patch) | |
| tree | 55f96efdb96c600bf64d28b515647be7cf9a4d38 /src/device-manager.h | |
| parent | enable pen and pencil to correctly work with LPE; fix bug with disappearing p... (diff) | |
| download | inkscape-f5a1bf8a5e3ad56f5e17992e81dd50f9d914ab05.tar.gz inkscape-f5a1bf8a5e3ad56f5e17992e81dd50f9d914ab05.zip | |
Adding signals and linking
(bzr r5129)
Diffstat (limited to 'src/device-manager.h')
| -rw-r--r-- | src/device-manager.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/device-manager.h b/src/device-manager.h index 0b532aae2..f441180a6 100644 --- a/src/device-manager.h +++ b/src/device-manager.h @@ -16,14 +16,17 @@ namespace Inkscape { -class InputDevice { +class InputDevice : public Glib::Object { public: + virtual Glib::ustring getId() const = 0; virtual Glib::ustring getName() const = 0; virtual Gdk::InputSource getSource() const = 0; virtual Gdk::InputMode getMode() const = 0; virtual bool hasCursor() const = 0; virtual gint getNumAxes() const = 0; virtual gint getNumKeys() const = 0; + virtual Glib::ustring getLink() const = 0; + virtual gint getLiveButtons() const = 0; protected: InputDevice(); @@ -34,11 +37,17 @@ private: void operator=(InputDevice const &); // no assign }; -class DeviceManager { +class DeviceManager : public Glib::Object { public: static DeviceManager& getManager(); virtual std::list<InputDevice const *> getDevices() = 0; + virtual sigc::signal<void, const Glib::RefPtr<InputDevice>& > signalDeviceChanged() = 0; + virtual sigc::signal<void, const Glib::RefPtr<InputDevice>& > signalButtonsChanged() = 0; + virtual sigc::signal<void, const Glib::RefPtr<InputDevice>& > signalLinkChanged() = 0; + + virtual void addButton(Glib::ustring const & id, gint button) = 0; + virtual void setLinkedTo(Glib::ustring const & id, Glib::ustring const& link) = 0; protected: DeviceManager(); |
