Mercurial > fife-parpg
comparison engine/core/eventchannel/key/ec_keyevent.h @ 630:010da1d1ee1c
* Removed old and unused functions: set/getSourceWidget()
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 04 Oct 2010 21:29:12 +0000 |
parents | abfe54ebae15 |
children |
comparison
equal
deleted
inserted
replaced
629:e37469251b22 | 630:010da1d1ee1c |
---|---|
47 enum KeyEventType { | 47 enum KeyEventType { |
48 UNKNOWN = -1, | 48 UNKNOWN = -1, |
49 PRESSED = 0, | 49 PRESSED = 0, |
50 RELEASED | 50 RELEASED |
51 }; | 51 }; |
52 | 52 |
53 /** Constructor | 53 /** Constructor |
54 */ | 54 */ |
55 KeyEvent(): | 55 KeyEvent(): |
56 InputEvent(), | 56 InputEvent(), |
57 m_eventtype(UNKNOWN), | 57 m_eventtype(UNKNOWN), |
58 m_isnumericpad(false), | 58 m_isnumericpad(false), |
59 m_key(Key()) {} | 59 m_key(Key()) {} |
60 | 60 |
61 /** Destructor. | 61 /** Destructor. |
62 */ | 62 */ |
63 virtual ~KeyEvent() {} | 63 virtual ~KeyEvent() {} |
64 | 64 |
65 KeyEventType getType() const { return m_eventtype; } | 65 KeyEventType getType() const { return m_eventtype; } |
66 void setType(KeyEventType type) { m_eventtype = type; } | 66 void setType(KeyEventType type) { m_eventtype = type; } |
67 | 67 |
68 bool isNumericPad() const { return m_isnumericpad; } | 68 bool isNumericPad() const { return m_isnumericpad; } |
69 void setNumericPad(bool ispad) { m_isnumericpad = ispad; } | 69 void setNumericPad(bool ispad) { m_isnumericpad = ispad; } |
70 | 70 |
71 const Key& getKey() const { return m_key; } | 71 const Key& getKey() const { return m_key; } |
72 void setKey(const Key& key) { m_key = key; } | 72 void setKey(const Key& key) { m_key = key; } |
73 | 73 |
74 virtual bool isAltPressed() const { return InputEvent::isAltPressed(); } | 74 virtual bool isAltPressed() const { return InputEvent::isAltPressed(); } |
75 virtual void setAltPressed(bool pressed) { InputEvent::setAltPressed(pressed); } | 75 virtual void setAltPressed(bool pressed) { InputEvent::setAltPressed(pressed); } |
84 virtual bool isConsumed() const { return InputEvent::isConsumed(); } | 84 virtual bool isConsumed() const { return InputEvent::isConsumed(); } |
85 virtual void consumedByWidgets() { InputEvent::consumedByWidgets(); } | 85 virtual void consumedByWidgets() { InputEvent::consumedByWidgets(); } |
86 virtual bool isConsumedByWidgets() const { return InputEvent::isConsumedByWidgets(); } | 86 virtual bool isConsumedByWidgets() const { return InputEvent::isConsumedByWidgets(); } |
87 virtual IEventSource* getSource() { return InputEvent::getSource(); } | 87 virtual IEventSource* getSource() { return InputEvent::getSource(); } |
88 virtual void setSource(IEventSource* source) { InputEvent::setSource(source); } | 88 virtual void setSource(IEventSource* source) { InputEvent::setSource(source); } |
89 virtual gcn::Widget* getSourceWidget() { return InputEvent::getSourceWidget(); } | |
90 virtual void setSourceWidget(gcn::Widget* widget) { InputEvent::setSourceWidget(widget); } | |
91 virtual int getTimeStamp() const { return InputEvent::getTimeStamp(); } | 89 virtual int getTimeStamp() const { return InputEvent::getTimeStamp(); } |
92 virtual void setTimeStamp(int timestamp ) { InputEvent::setTimeStamp(timestamp); } | 90 virtual void setTimeStamp(int timestamp ) { InputEvent::setTimeStamp(timestamp); } |
93 | 91 |
94 virtual const std::string& getName() const { | 92 virtual const std::string& getName() const { |
95 const static std::string eventName("KeyEvent"); | 93 const static std::string eventName("KeyEvent"); |