Author: ilor
Date: Wed Jul  9 17:09:11 2008
New Revision: 27874

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27874&view=rev
Log:
update some comments

Modified:
    trunk/src/editor2/editor_controller.cpp
    trunk/src/editor2/mouse_action.hpp

Modified: trunk/src/editor2/editor_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_controller.cpp?rev=27874&r1=27873&r2=27874&view=diff
==============================================================================
--- trunk/src/editor2/editor_controller.cpp (original)
+++ trunk/src/editor2/editor_controller.cpp Wed Jul  9 17:09:11 2008
@@ -88,6 +88,7 @@
        undo_stack_.push_back(undo);
        trim_stack(undo_stack_);
        clear_stack(redo_stack_);
+       //TODO rebuild and ivalidate only what's really needed
        gui().rebuild_all();
        gui().invalidate_all();
 }

Modified: trunk/src/editor2/mouse_action.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/mouse_action.hpp?rev=27874&r1=27873&r2=27874&view=diff
==============================================================================
--- trunk/src/editor2/mouse_action.hpp (original)
+++ trunk/src/editor2/mouse_action.hpp Wed Jul  9 17:09:11 2008
@@ -23,6 +23,12 @@
 
 namespace editor2 {
 
+
+/**
+ * A mouse action receives events from the controller, and responds to them by 
creating 
+ * an appropriate editor_action object. Mouse actions may store some temporary 
data
+ * such as the last clicked hex for better handling of click-drag.
+ */
 class mouse_action
 {
 public:
@@ -30,12 +36,22 @@
        : mode_(mode)
        {
        }
+       
+       /**
+        * A click, possibly the beginning of a drag
+        */
        virtual editor_action* click(editor_display& disp, int x, int y) = 0;
+       
+       /**
+        * Drag operation. A click should have occured earlier.
+        */
        virtual editor_action* drag(editor_display& disp, int x, int y);
+       
+       /**
+        * The end of dragging.
+        */
        virtual editor_action* drag_end(editor_display& disp, int x, int y);
-//     virtual void drag_start();
-//     virtual void drag_through();
-//     virtual void drag_end();
+
 protected:
        editor_mode& mode_;
 };


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to