/[svn]/gigedit/trunk/src/gigedit/regionchooser.h
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/regionchooser.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1225 by schoenebeck, Sun Jun 10 10:56:11 2007 UTC revision 1262 by persson, Sun Jul 22 15:07:08 2007 UTC
# Line 38  public: Line 38  public:
38    
39      void set_instrument(gig::Instrument* instrument);      void set_instrument(gig::Instrument* instrument);
40    
41      sigc::signal<void> signal_sel_changed();      sigc::signal<void> signal_region_selected();
42        sigc::signal<void> signal_instrument_changed();
43    
44      gig::Region* get_region() { return region; }      gig::Region* get_region() { return region; }
45    
# Line 53  protected: Line 54  protected:
54      gig::Region* get_region(int key);      gig::Region* get_region(int key);
55    
56      Glib::RefPtr<Gdk::GC> gc;      Glib::RefPtr<Gdk::GC> gc;
57      Gdk::Color blue, red, black, white, green, grey1;      Gdk::Color blue, red, grey1;
58    
59      void draw_region(int from, int to, const Gdk::Color& color);      void draw_region(int from, int to, const Gdk::Color& color);
60    
61      sigc::signal<void> sel_changed_signal;      sigc::signal<void> region_selected;
62        sigc::signal<void> instrument_changed;
63    
64      gig::Instrument* instrument;      gig::Instrument* instrument;
65      gig::Region* region;      gig::Region* region;
66    
67        void motion_resize_region(int x, int y);
68        void motion_move_region(int x, int y);
69    
70      // information needed during a resize      // information needed during a resize
71      struct {      struct {
72          bool active;          bool active;
# Line 77  protected: Line 82  protected:
82          gig::Region* prev_region;          gig::Region* prev_region;
83      } resize;      } resize;
84    
85        // information needed during a region move
86        struct {
87            bool active;
88            double from_x;
89            int pos;
90            bool touch_left;
91            bool touch_right;
92        } move;
93    
94      bool cursor_is_resize;      bool cursor_is_resize;
95      bool is_in_resize_zone(double x, double y);      bool is_in_resize_zone(double x, double y);
96    

Legend:
Removed from v.1225  
changed lines
  Added in v.1262

  ViewVC Help
Powered by ViewVC