[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10353: Drop stuff.
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10353: Drop stuff. |
Date: |
Tue, 25 Nov 2008 18:09:11 +0100 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 10353
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Tue 2008-11-25 18:09:11 +0100
message:
Drop stuff.
modified:
libcore/character.cpp
libcore/character.h
------------------------------------------------------------
revno: 10352.1.1
committer: Benjamin Wolsey <address@hidden>
branch nick: test
timestamp: Tue 2008-11-25 17:13:14 +0100
message:
Drop unused things in character.h
modified:
libcore/character.cpp
libcore/character.h
=== modified file 'libcore/character.cpp'
--- a/libcore/character.cpp 2008-11-25 15:23:03 +0000
+++ b/libcore/character.cpp 2008-11-25 16:13:14 +0000
@@ -841,27 +841,6 @@
{
_event_handlers[id].push_back(&code);
- //log_debug(_("Setting handler for event %s"), id);
-
- // Set the character as a listener iff the
- // kind of event is a KEY or MOUSE one
- switch (id.m_id)
- {
- case event_id::KEY_DOWN:
- case event_id::KEY_PRESS:
- case event_id::KEY_UP:
- has_key_event();
- break;
- case event_id::MOUSE_UP:
- case event_id::MOUSE_DOWN:
- case event_id::MOUSE_MOVE:
- //log_debug(_("Registering character as having mouse
events"));
- has_mouse_event();
- break;
- default:
- break;
- }
-
// todo: drop the character as a listener
// if it gets no valid handlers for
// mouse or Key events.
=== modified file 'libcore/character.h'
--- a/libcore/character.h 2008-10-25 10:38:32 +0000
+++ b/libcore/character.h 2008-11-25 16:13:14 +0000
@@ -249,32 +249,10 @@
bool _dynamicallyCreated;
-
-
/// @{ Common ActionScript getter-setters for characters
public: // TODO: make protected
-#if 0
- static as_value onrollover_getset(const fn_call& fn);
-
- static as_value onrollout_getset(const fn_call& fn);
-
- static as_value onload_getset(const fn_call& fn);
-
- static as_value onpress_getset(const fn_call& fn);
-
- static as_value onrelease_getset(const fn_call& fn);
-
- static as_value onreleaseoutside_getset(const fn_call& fn);
-
- static as_value onmouseup_getset(const fn_call& fn);
-
- static as_value onmousedown_getset(const fn_call& fn);
-
- static as_value onmousemove_getset(const fn_call& fn);
-#endif
-
/// Getter-setter for _x
static as_value x_getset(const fn_call& fn);
@@ -641,14 +619,6 @@
return false;
}
- // For edit_text support (Flash 5). More correct way
- // is to do "text_character.text = whatever", via
- // set_member().
- virtual const char* get_text_name() const { return ""; }
-
- // The Flash user can write moviclip="text", but it should not lead to
crash
- virtual void set_text_value(const char* /*new_text*/) { }
-
/// \brief
/// Get our concatenated SWFMatrix (all our ancestor transforms,
/// times our SWFMatrix).
@@ -695,28 +665,6 @@
///
void add_event_handler(const event_id& id, const action_buffer& code);
- /// \brief
- /// Call this when a character get equipped
- /// with a Key event handler
- //
- /// TODO: provide a function to *unset*
- /// the flag. This should happen
- /// when Key event handler is
- /// set to undefined or equivalent..
- ///
- virtual void has_key_event() {}
-
- /// \brief
- /// Call this when a character get equipped
- /// with a mouse event handler (move,down,up)
- //
- /// TODO: provide a function to *unset*
- /// the flag. This should happen
- /// when all mouse event handlers are
- /// set to undefined or equivalent..
- ///
- virtual void has_mouse_event() {}
-
/// Render this character
virtual void display() {}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10353: Drop stuff.,
Benjamin Wolsey <=