Mercurial > fife-parpg
comparison engine/core/eventchannel/base/ec_inputevent.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 | 64738befdf3b |
children |
comparison
equal
deleted
inserted
replaced
629:e37469251b22 | 630:010da1d1ee1c |
---|---|
41 */ | 41 */ |
42 class InputEvent: public Event { | 42 class InputEvent: public Event { |
43 public: | 43 public: |
44 /** Constructor. | 44 /** Constructor. |
45 */ | 45 */ |
46 InputEvent(): | 46 InputEvent(): |
47 Event(), | 47 Event(), |
48 m_consumedbywidgets(false), | 48 m_consumedbywidgets(false), |
49 m_isshiftpressed(false), | 49 m_isshiftpressed(false), |
50 m_iscontrolpressed(false), | 50 m_iscontrolpressed(false), |
51 m_isaltpressed(false), | 51 m_isaltpressed(false), |
52 m_ismetapressed(false) {} | 52 m_ismetapressed(false) {} |
53 | 53 |
54 /** Destructor. | 54 /** Destructor. |
55 */ | 55 */ |
56 ~InputEvent() {} | 56 ~InputEvent() {} |
57 | 57 |
58 /** Checks whether alt is pressed. | 58 /** Checks whether alt is pressed. |
59 */ | 59 */ |
60 virtual bool isAltPressed() const { return m_isaltpressed; } | 60 virtual bool isAltPressed() const { return m_isaltpressed; } |
61 virtual void setAltPressed(bool pressed) { m_isaltpressed = pressed; } | 61 virtual void setAltPressed(bool pressed) { m_isaltpressed = pressed; } |
62 | 62 |
63 /** Checks whether control is pressed. | 63 /** Checks whether control is pressed. |
64 */ | 64 */ |
65 virtual bool isControlPressed() const { return m_iscontrolpressed; } | 65 virtual bool isControlPressed() const { return m_iscontrolpressed; } |
66 virtual void setControlPressed(bool pressed) { m_iscontrolpressed = pressed; } | 66 virtual void setControlPressed(bool pressed) { m_iscontrolpressed = pressed; } |
67 | 67 |
68 /** Checks whether meta is pressed. | 68 /** Checks whether meta is pressed. |
69 */ | 69 */ |
70 virtual bool isMetaPressed() const { return m_ismetapressed; } | 70 virtual bool isMetaPressed() const { return m_ismetapressed; } |
71 virtual void setMetaPressed(bool pressed) { m_ismetapressed = pressed; } | 71 virtual void setMetaPressed(bool pressed) { m_ismetapressed = pressed; } |
72 | 72 |
73 /** Checks whether shift is pressed. | 73 /** Checks whether shift is pressed. |
74 */ | 74 */ |
75 virtual bool isShiftPressed() const { return m_isshiftpressed; } | 75 virtual bool isShiftPressed() const { return m_isshiftpressed; } |
76 virtual void setShiftPressed(bool pressed) { m_isshiftpressed = pressed; } | 76 virtual void setShiftPressed(bool pressed) { m_isshiftpressed = pressed; } |
77 | 77 |
78 /** Marks events as consumed by widget library. | 78 /** Marks events as consumed by widget library. |
79 */ | 79 */ |
80 virtual void consumedByWidgets() { m_consumedbywidgets = true; } | 80 virtual void consumedByWidgets() { m_consumedbywidgets = true; } |
81 virtual bool isConsumedByWidgets() const { return m_consumedbywidgets; } | 81 virtual bool isConsumedByWidgets() const { return m_consumedbywidgets; } |
82 | 82 |
83 virtual void consume() { Event::consume(); } | 83 virtual void consume() { Event::consume(); } |
84 virtual bool isConsumed() const { return Event::isConsumed(); } | 84 virtual bool isConsumed() const { return Event::isConsumed(); } |
85 virtual IEventSource* getSource() { return Event::getSource(); } | 85 virtual IEventSource* getSource() { return Event::getSource(); } |
86 virtual void setSource(IEventSource* source) { Event::setSource(source); } | 86 virtual void setSource(IEventSource* source) { Event::setSource(source); } |
87 virtual gcn::Widget* getSourceWidget() { return Event::getSourceWidget(); } | |
88 virtual void setSourceWidget(gcn::Widget* widget) { Event::setSourceWidget(widget); } | |
89 virtual int getTimeStamp() const { return Event::getTimeStamp(); } | 87 virtual int getTimeStamp() const { return Event::getTimeStamp(); } |
90 virtual void setTimeStamp(int timestamp ) { Event::setTimeStamp(timestamp); } | 88 virtual void setTimeStamp(int timestamp ) { Event::setTimeStamp(timestamp); } |
91 | 89 |
92 virtual const std::string& getName() const { | 90 virtual const std::string& getName() const { |
93 const static std::string eventName("InputEvent"); | 91 const static std::string eventName("InputEvent"); |