/[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 1623 by persson, Fri Jan 4 19:42:45 2008 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2006, 2007 Andreas Persson   * Copyright (C) 2006-2008 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:
47      virtual void on_realize();      virtual void on_realize();
# Line 83  protected: Line 87  protected:
87      bool is_in_resize_zone(double x, double y);      bool is_in_resize_zone(double x, double y);
88    
89      int h;      int h;
     int w;  
90  };  };
91    
92  #endif  #endif

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

  ViewVC Help
Powered by ViewVC