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

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

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

revision 1303 by persson, Sun Aug 26 09:29:52 2007 UTC revision 2151 by persson, Sun Nov 21 12:38:41 2010 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2006, 2007 Andreas Persson   * Copyright (C) 2006-2010 Andreas Persson
3   *   *
4   * This program is free software; you can redistribute it and/or   * This program is free software; you can redistribute it and/or
5   * modify it under the terms of the GNU General Public License as   * modify it under the terms of the GNU General Public License as
# Line 26  Line 26 
26    
27  #include <gig.h>  #include <gig.h>
28    
29    #include <set>
30    
31  class DimRegionChooser : public Gtk::DrawingArea  class DimRegionChooser : public Gtk::DrawingArea
32  {  {
33  public:  public:
# Line 34  public: Line 36  public:
36    
37      void set_region(gig::Region* region);      void set_region(gig::Region* region);
38    
39      sigc::signal<void> signal_dimregion_selected();      sigc::signal<void>& signal_dimregion_selected();
40      sigc::signal<void> signal_region_changed();      sigc::signal<void>& signal_region_changed();
41    
42      gig::DimensionRegion* get_dimregion() { return dimreg; }      gig::DimensionRegion* get_dimregion() const { return dimreg; }
43        void get_dimregions(const gig::Region* region, bool stereo,
44                            std::set<gig::DimensionRegion*>& dimregs) const;
45    
46  protected:  protected:
     virtual void on_realize();  
47      virtual bool on_expose_event(GdkEventExpose* e);      virtual bool on_expose_event(GdkEventExpose* e);
48      virtual void on_size_request(GtkRequisition* requisition);      virtual void on_size_request(GtkRequisition* requisition);
49      virtual bool on_button_press_event(GdkEventButton* event);      virtual bool on_button_press_event(GdkEventButton* event);
# Line 48  protected: Line 51  protected:
51      virtual bool on_motion_notify_event(GdkEventMotion* event);      virtual bool on_motion_notify_event(GdkEventMotion* event);
52      virtual bool on_focus(Gtk::DirectionType direction);      virtual bool on_focus(Gtk::DirectionType direction);
53    
     Glib::RefPtr<Gdk::GC> gc;  
54      Gdk::Color blue, red, black, white, green;      Gdk::Color blue, red, black, white, green;
55    
56      gig::Instrument* instrument;      gig::Instrument* instrument;
# Line 83  protected: Line 85  protected:
85      bool is_in_resize_zone(double x, double y);      bool is_in_resize_zone(double x, double y);
86    
87      int h;      int h;
     int w;  
88  };  };
89    
90  #endif  #endif

Legend:
Removed from v.1303  
changed lines
  Added in v.2151

  ViewVC Help
Powered by ViewVC