This website works better with JavaScript.
Home
Help
Sign In
linuxaudio
/
new-session-manager
mirror of
https://github.com/linuxaudio/new-session-manager
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
17
Wiki
Activity
Browse Source
Make 'crop' command crop to rectangle too.
tags/non-sequencer-v1.9.4
Jonathan Moore Liles
17 years ago
parent
d8fe1ad003
commit
db1b2f63e7
3 changed files
with
24 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
canvas.C
+19
-0
grid.C
+1
-0
grid.H
+ 4
- 1
canvas.C
View File
@@ -798,7 +798,10 @@ Canvas::invert_selection ( void )
void
Canvas::crop ( void )
{
m.grid->crop( m.p1, m.p2 );
if ( m.p3 == m.p4 )
m.grid->crop( m.p1, m.p2 );
else
m.grid->crop( m.p1, m.p2, rtn( m.p3 ), rtn( m.p4 ) );
m.vp->x = 0;
+ 19
- 0
grid.C
View File
@@ -594,6 +594,25 @@ Grid::crop ( int l, int r )
unlock();
}
void
Grid::crop ( int l, int r, int t, int b )
{
lock();
_rw->events.push_selection();
select( l, r, t, b );
_rw->events.invert_selection();
_rw->events.remove_selected();
_rw->events.pop_selection();
crop( l, r );
unlock();
}
void
Grid::_relink ( void )
+ 1
- 0
grid.H
View File
@@ -213,6 +213,7 @@ public:
void move_selected ( int l );
void crop ( int l, int r );
void crop ( int l, int r, int t, int b );
void toggle_select ( int x, int y );
void insert_time ( int x, int r );
Write
Preview
Loading…
Cancel
Save