--- gigedit/trunk/src/gigedit/regionchooser.h 2007/07/05 17:12:20 1261 +++ gigedit/trunk/src/gigedit/regionchooser.h 2007/07/22 15:07:08 1262 @@ -54,7 +54,7 @@ gig::Region* get_region(int key); Glib::RefPtr gc; - Gdk::Color blue, red, black, white, green, grey1; + Gdk::Color blue, red, grey1; void draw_region(int from, int to, const Gdk::Color& color); @@ -64,6 +64,9 @@ gig::Instrument* instrument; gig::Region* region; + void motion_resize_region(int x, int y); + void motion_move_region(int x, int y); + // information needed during a resize struct { bool active; @@ -79,6 +82,15 @@ gig::Region* prev_region; } resize; + // information needed during a region move + struct { + bool active; + double from_x; + int pos; + bool touch_left; + bool touch_right; + } move; + bool cursor_is_resize; bool is_in_resize_zone(double x, double y);