#include "trackcanvas.h"
#include "tracks.h"
#include "transportque.h"
-#include "wintv.h"
#include <unistd.h>
Track *track = mwindow->edl->tracks->first;
for( ; track; track=track->next ) {
if( track->data_type != TRACK_VIDEO ) continue;
- if( track->record ) break;
+ if( track->is_armed() ) break;
}
return track;
}
Track *track = mwindow->edl->tracks->first;
for( ; track; track=track->next ) {
if( track->data_type != TRACK_VIDEO ) continue;
- if( track->record && track->get_id() == mask_track_id ) break;
+ if( track->is_armed() && track->get_id() == mask_track_id ) break;
}
return track;
}
if( y_auto )
*y_auto = (FloatAuto*) calculate_affected_auto(track->automation->autos[iy],
create_y, &y_created, redraw);
- if( z_auto ) *z_auto = (FloatAuto*) calculate_affected_auto(track->automation->autos[iz],
+ if( z_auto )
+ *z_auto = (FloatAuto*) calculate_affected_auto(track->automation->autos[iz],
create_z, &z_created, redraw);
}
refresh_frame(change_type, mwindow->edl, dir);
}
-CWindowRemoteHandler::
-CWindowRemoteHandler(RemoteControl *remote_control)
+CWindowKeyEvHandler::
+CWindowKeyEvHandler(RemoteControl *remote_control)
: RemoteHandler(remote_control->gui, RED)
{
this->remote_control = remote_control;
key = -1;
}
-CWindowRemoteHandler::
-~CWindowRemoteHandler()
+CWindowKeyEvHandler::
+~CWindowKeyEvHandler()
{
}
-int CWindowRemoteHandler::process_key(int key)
+int CWindowKeyEvHandler::remote_key(int key)
{
return remote_process_key(remote_control, key);
}
-int CWindowRemoteHandler::remote_process_key(RemoteControl *remote_control, int key)
+int CWindowKeyEvHandler::remote_process_key(RemoteControl *remote_control, int key)
{
EDL *edl = mwindow->edl;
if( !edl ) return 0;
case 'a': remote_control->gui->tile_windows(0); return 1;
case 'b': remote_control->gui->tile_windows(1); return 1;
case 'c': remote_control->gui->tile_windows(2); return 1;
-#ifdef HAVE_DVB
- case 'd':
- mwindow->gui->channel_info->toggle_scan();
- return 1;
-#endif
- case 'e':
- break;
+ case KPFSCRN:
case 'f': {
CWindowCanvas *canvas = mwindow->cwindow->gui->canvas;
int on = canvas->get_fullscreen() ? 0 : 1;