/[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 2626 by schoenebeck, Thu Jun 12 15:12:00 2014 UTC revision 3105 by schoenebeck, Fri Feb 10 18:40:26 2017 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2006-2014 Andreas Persson   * Copyright (C) 2006-2017 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 27  Line 27 
27    
28  #include "compat.h"  #include "compat.h"
29    
30  #include <gig.h>  #ifdef LIBGIG_HEADER_FILE
31    # include LIBGIG_HEADER_FILE(gig.h)
32    #else
33    # include <gig.h>
34    #endif
35    
36  #include <set>  #include <set>
37  #include <map>  #include <map>
# Line 46  public: Line 50  public:
50      gig::DimensionRegion* get_main_dimregion() const;      gig::DimensionRegion* get_main_dimregion() const;
51      void get_dimregions(const gig::Region* region, bool stereo,      void get_dimregions(const gig::Region* region, bool stereo,
52                          std::set<gig::DimensionRegion*>& dimregs) const;                          std::set<gig::DimensionRegion*>& dimregs) const;
53        bool select_dimregion(gig::DimensionRegion* dimrgn);
54    
55        // those 3 are ATM only relevant when resizing custom dimension region zones
56        void setModifyBothChannels(bool b);
57        void setModifyAllDimensionRegions(bool b);
58        void setModifyAllRegions(bool b);
59    
60  protected:  protected:
61  #if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION < 90) || GTKMM_MAJOR_VERSION < 2  #if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION < 90) || GTKMM_MAJOR_VERSION < 2
# Line 62  protected: Line 72  protected:
72      void refresh_all();      void refresh_all();
73      void split_dimension_zone();      void split_dimension_zone();
74      void delete_dimension_zone();      void delete_dimension_zone();
75        void resetSelectedZones();
76    
77      Gdk::RGBA red, black, white;      Gdk::RGBA red, black, white;
78    
# Line 71  protected: Line 82  protected:
82      sigc::signal<void> dimregion_selected;      sigc::signal<void> dimregion_selected;
83      sigc::signal<void> region_changed;      sigc::signal<void> region_changed;
84    
85        // those 3 are ATM only relevant when resizing custom dimension region zones
86        bool modifybothchannels;
87        bool modifyalldimregs;
88        bool modifyallregions;
89    
90      //std::set<gig::DimensionRegion*> dimregs; ///< Reflects which dimension regions are currently selected.      //std::set<gig::DimensionRegion*> dimregs; ///< Reflects which dimension regions are currently selected.
91      int focus_line;      int focus_line;
92      std::map<gig::dimension_t, std::set<int> > dimzones; ///< Reflects which zone(s) of the individual dimension are currently selected.      std::map<gig::dimension_t, std::set<int> > dimzones; ///< Reflects which zone(s) of the individual dimension are currently selected.
# Line 98  protected: Line 114  protected:
114          int min;          int min;
115          int max;          int max;
116          int dimension;          int dimension;
117          int offset;          gig::dimension_def_t dimensionDef;
118            int zone;
119      } resize;      } resize;
120    
121      bool multiSelectKeyDown;      bool multiSelectKeyDown;
# Line 113  protected: Line 130  protected:
130      Glib::RefPtr<Gtk::UIManager> uiManager;      Glib::RefPtr<Gtk::UIManager> uiManager;
131      Gtk::Menu* popup_menu_inside_dimregion;      Gtk::Menu* popup_menu_inside_dimregion;
132      Gtk::Menu* popup_menu_outside_dimregion;      Gtk::Menu* popup_menu_outside_dimregion;
133    
134    private:
135        Glib::RefPtr<Gtk::Action> actionDeleteDimZone;
136        Glib::RefPtr<Gtk::Action> actionSplitDimZone;
137  };  };
138    
139  #endif  #endif

Legend:
Removed from v.2626  
changed lines
  Added in v.3105

  ViewVC Help
Powered by ViewVC