/[svn]/gigedit/trunk/src/gigedit/regionchooser.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/regionchooser.cpp

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

revision 2641 by schoenebeck, Mon Jun 16 15:24:54 2014 UTC revision 2695 by schoenebeck, Tue Jan 6 18:11:27 2015 UTC
# Line 1  Line 1 
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
# Line 540  bool RegionChooser::on_button_press_even Line 540  bool RegionChooser::on_button_press_even
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;
# Line 619  gig::Region* RegionChooser::get_region(i Line 621  gig::Region* RegionChooser::get_region(i
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;

Legend:
Removed from v.2641  
changed lines
  Added in v.2695

  ViewVC Help
Powered by ViewVC