1 |
/* |
/* |
2 |
* Copyright (C) 2006-2014 Andreas Persson |
* Copyright (C) 2006-2015 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 |
540 |
|
|
541 |
// left mouse button double click |
// left mouse button double click |
542 |
if (event->type == GDK_2BUTTON_PRESS && event->button == 1) { |
if (event->type == GDK_2BUTTON_PRESS && event->button == 1) { |
543 |
// show dimension manager dialog for this region |
if (event->y < REGION_BLOCK_HEIGHT) { |
544 |
manage_dimensions(); |
// show dimension manager dialog for this region |
545 |
|
manage_dimensions(); |
546 |
|
} |
547 |
} |
} |
548 |
|
|
549 |
if (event->y >= REGION_BLOCK_HEIGHT) return true; |
if (event->y >= REGION_BLOCK_HEIGHT) return true; |
621 |
return 0; |
return 0; |
622 |
} |
} |
623 |
|
|
624 |
|
void RegionChooser::set_region(gig::Region* region) { |
625 |
|
this->region = region; |
626 |
|
queue_draw(); |
627 |
|
region_selected(); |
628 |
|
dimensionManager.set_region(region); |
629 |
|
} |
630 |
|
|
631 |
void RegionChooser::motion_resize_region(int x, int y) |
void RegionChooser::motion_resize_region(int x, int y) |
632 |
{ |
{ |
633 |
const int w = get_width() - 1; |
const int w = get_width() - 1; |