53 |
void get_dimregions(const gig::Region* region, bool stereo, |
void get_dimregions(const gig::Region* region, bool stereo, |
54 |
std::set<gig::DimensionRegion*>& dimregs) const; |
std::set<gig::DimensionRegion*>& dimregs) const; |
55 |
bool select_dimregion(gig::DimensionRegion* dimrgn); |
bool select_dimregion(gig::DimensionRegion* dimrgn); |
56 |
void select_next_dimzone(); |
void select_next_dimzone(bool add = false); |
57 |
void select_prev_dimzone(); |
void select_prev_dimzone(bool add = false); |
58 |
void select_next_dimension(); |
void select_next_dimension(); |
59 |
void select_prev_dimension(); |
void select_prev_dimension(); |
60 |
|
|
61 |
// those 3 are ATM only relevant when resizing custom dimension region zones |
// those 3 are ATM only relevant when resizing custom dimension region zones |
62 |
|
// and for painting those auto selected zones with gray hatched pattern |
63 |
void setModifyBothChannels(bool b); |
void setModifyBothChannels(bool b); |
64 |
void setModifyAllDimensionRegions(bool b); |
void setModifyAllDimensionRegions(bool b); |
65 |
void setModifyAllRegions(bool b); |
void setModifyAllRegions(bool b); |
80 |
void split_dimension_zone(); |
void split_dimension_zone(); |
81 |
void delete_dimension_zone(); |
void delete_dimension_zone(); |
82 |
void resetSelectedZones(); |
void resetSelectedZones(); |
83 |
void select_dimzone_by_dir(int dir); |
void select_dimzone_by_dir(int dir, bool add = false); |
84 |
|
void drawIconsFor(gig::dimension_t dimension, uint zone, |
85 |
Gdk::RGBA red, black, white; |
const Cairo::RefPtr<Cairo::Context>& cr, |
86 |
|
int x, int y, int w, int h); |
87 |
|
|
88 |
|
Gdk::RGBA red, blue, black, white; |
89 |
|
Glib::RefPtr<Gdk::Pixbuf> blueHatchedPatternARGB; |
90 |
|
Cairo::RefPtr<Cairo::SurfacePattern> blueHatchedSurfacePattern; |
91 |
|
Glib::RefPtr<Gdk::Pixbuf> blueHatchedPattern2ARGB; |
92 |
|
Cairo::RefPtr<Cairo::SurfacePattern> blueHatchedSurfacePattern2; |
93 |
|
Glib::RefPtr<Gdk::Pixbuf> grayBlueHatchedPatternARGB; |
94 |
|
Cairo::RefPtr<Cairo::SurfacePattern> grayBlueHatchedSurfacePattern; |
95 |
|
|
96 |
gig::Instrument* instrument; |
gig::Instrument* instrument; |
97 |
gig::Region* region; |
gig::Region* region; |
100 |
sigc::signal<void> region_changed; |
sigc::signal<void> region_changed; |
101 |
|
|
102 |
// those 3 are ATM only relevant when resizing custom dimension region zones |
// those 3 are ATM only relevant when resizing custom dimension region zones |
103 |
|
// and for painting those auto selected zones with gray hatched pattern |
104 |
bool modifybothchannels; |
bool modifybothchannels; |
105 |
bool modifyalldimregs; |
bool modifyalldimregs; |
106 |
bool modifyallregions; |
bool modifyallregions; |
136 |
} resize; |
} resize; |
137 |
|
|
138 |
bool multiSelectKeyDown; |
bool multiSelectKeyDown; |
139 |
|
bool primaryKeyDown; // on Mac: Cmd key, on all other OSs: Ctrl key |
140 |
|
bool shiftKeyDown; |
141 |
|
|
142 |
bool cursor_is_resize; |
bool cursor_is_resize; |
143 |
bool is_in_resize_zone(double x, double y); |
bool is_in_resize_zone(double x, double y); |