this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Toggle label at current position ( l )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Labels");
}
EditLabelbutton::~EditLabelbutton()
{
if( get_keypress() == 'l' && !alt_down() )
return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int EditLabelbutton::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Next label ( ctrl -> )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Labels");
}
EditNextLabel::~EditNextLabel()
{
return 1;
}
}
- return 0;
+ return context_help_check_and_show();
}
int EditNextLabel::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Previous label ( ctrl <- )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Labels");
}
EditPrevLabel::~EditPrevLabel()
{
return 1;
}
}
- return 0;
+ return context_help_check_and_show();
}
int EditPrevLabel::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Previous edit (alt <- )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Snapping while Cutting and Dragging");
}
EditPrevEdit::~EditPrevEdit()
{
return 1;
}
}
- return 0;
+ return context_help_check_and_show();
}
int EditPrevEdit::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Next edit ( alt -> )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Snapping while Cutting and Dragging");
}
EditNextEdit::~EditNextEdit()
{
return 1;
}
}
- return 0;
+ return context_help_check_and_show();
}
int EditNextEdit::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Copy ( c )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Cut and Paste Editing");
}
EditCopy::~EditCopy()
{
int EditCopy::keypress_event()
{
- if( alt_down() ) return 0;
+ if( alt_down() ) return context_help_check_and_show();
if( (get_keypress() == 'c' && !ctrl_down()) ||
(panel->is_vwindow() && get_keypress() == 'C') ) {
return handle_event();
}
- return 0;
+ return context_help_check_and_show();
}
int EditCopy::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Overwrite ( b )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Two Screen Editing");
}
EditOverwrite::~EditOverwrite()
{
}
int EditOverwrite::keypress_event()
{
- if( alt_down() ) return 0;
+ if( alt_down() ) return context_help_check_and_show();
if( get_keypress() == 'b' ||
(panel->is_vwindow() && get_keypress() == 'B') ) {
handle_event();
return 1;
}
- return 0;
+ return context_help_check_and_show();
}
//set_inpoint
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("In point ( [ or < )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("In\\/Out Points");
}
EditInPoint::~EditInPoint()
{
return 1;
}
}
- return 0;
+ return context_help_check_and_show();
}
//set_outpoint
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Out point ( ] or > )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("In\\/Out Points");
}
EditOutPoint::~EditOutPoint()
{
return 1;
}
}
- return 0;
+ return context_help_check_and_show();
}
//splice_selection
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Splice ( v )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Two Screen Editing");
}
EditSplice::~EditSplice()
{
}
int EditSplice::keypress_event()
{
- if( alt_down() ) return 0;
+ if( alt_down() ) return context_help_check_and_show();
if( (get_keypress() == 'v' && !ctrl_down()) ||
(panel->is_vwindow() && get_keypress() == 'V') ) {
handle_event();
return 1;
}
- return 0;
+ return context_help_check_and_show();
}
//to_clip
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("To clip ( i )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Two Screen Editing");
}
EditToClip::~EditToClip()
{
int EditToClip::keypress_event()
{
- if( alt_down() ) return 0;
+ if( alt_down() ) return context_help_check_and_show();
if( get_keypress() == 'i' ||
(panel->is_vwindow() && get_keypress() == 'I') ) {
handle_event();
return 1;
}
- return 0;
+ return context_help_check_and_show();
}
//cut
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Split | Cut ( x )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Cut and Paste Editing");
}
EditCut::~EditCut()
{
int EditCut::keypress_event()
{
if( ctrl_down() || shift_down() || alt_down() )
- return 0;
+ return context_help_check_and_show();
if( get_keypress() == 'x' )
return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int EditCut::handle_event()
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Paste ( v )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Cut and Paste Editing");
}
EditPaste::~EditPaste()
{
{
if( get_keypress() == 'v' && !ctrl_down() )
return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int EditPaste::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Fit selection to display ( f )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Transport and Buttons Bar");
}
EditFit::~EditFit()
{
handle_event();
return 1;
}
- return 0;
+ return context_help_check_and_show();
}
int EditFit::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Fit all autos to display ( Alt + f )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Using Autos");
}
EditFitAutos::~EditFitAutos()
{
panel->panel_fit_autos(!ctrl_down() ? 1 : 0);
return 1;
}
- return 0;
+ return context_help_check_and_show();
}
int EditFitAutos::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Drag and drop editing mode"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Drag and Drop Editing");
}
int ArrowButton::handle_event()
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Cut and paste editing mode"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Cut and Paste Editing");
}
int IBeamButton::handle_event()
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Generate keyframes while tweeking (j)"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Generate Keyframes while Tweaking");
}
int KeyFrameButton::handle_event()
panel->panel_set_auto_keyframes(value);
return 1;
}
- return 0;
+ return context_help_check_and_show();
}
//set_span_keyframes
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Allow keyframe spanning"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Allow Keyframe Spanning");
}
int SpanKeyFrameButton::handle_event()
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Lock labels from moving with edits"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Labels");
}
int LockLabelsButton::handle_event()
this->panel = panel;
mangoto = new ManualGoto(mwindow, panel);
set_tooltip(_("Manual goto ( g )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Transport and Buttons Bar");
}
EditManualGoto::~EditManualGoto()
{
handle_event();
return 1;
}
- return 0;
+ return context_help_check_and_show();
}
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Click to play (p)"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Click to Play in Viewer and Compositor");
}
int EditClick2Play::handle_event()
{
panel->set_click_to_play(value);
return 1;
}
- return 0;
+ return context_help_check_and_show();
}
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Commercial ( shift A )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("The commercial DB");
}
EditCommercial::~EditCommercial()
{
int EditCommercial::keypress_event()
{
if( ctrl_down() || !shift_down() || alt_down() )
- return 0;
+ return context_help_check_and_show();
if( get_keypress() == 'A' )
return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int EditCommercial::handle_event()
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Undo ( z or Ctrl-z)"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Transport and Buttons Bar");
}
EditUndo::~EditUndo()
{
int EditUndo::keypress_event()
{
if( ctrl_down() || shift_down() || alt_down() )
- return 0;
+ return context_help_check_and_show();
if( get_keypress() == 'z' )
return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int EditUndo::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("Redo ( shift Z )"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Transport and Buttons Bar");
}
EditRedo::~EditRedo()
{
int EditRedo::keypress_event()
{
if( ctrl_down() || !shift_down() || alt_down() )
- return 0;
+ return context_help_check_and_show();
if( get_keypress() == 'Z' )
return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int EditRedo::handle_event()
{
this->mwindow = mwindow;
this->panel = panel;
set_tooltip(_("View scope"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Videoscope");
}
EditPanelScope::~EditPanelScope()
this->panel = panel;
int gang = mwindow->edl->local_session->gang_tracks;
set_tooltip(_(gang_tips[gang]));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Displaying tracks: Ganged mode");
}
EditPanelGangTracks::~EditPanelGangTracks()
this->panel = panel;
tc_dialog = 0;
set_tooltip(_("Set Timecode"));
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Align Timecodes");
}
EditPanelTimecode::~EditPanelTimecode()
TCW_W, TCW_H, TCW_W, TCW_H, 0, 0, 1)
{
this->tc_dialog = tc_dialog;
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Align Timecodes");
}
EditPanelTcWindow::~EditPanelTcWindow()
int EditPanelTcInt::keypress_event()
{
+ if( get_keypress() == 'h' && alt_down() ) {
+ context_help_show("Align Timecodes");
+ return 1;
+ }
+
if( (int)strlen(get_text()) >= digits )
BC_TextBox::update("");
int key = get_keypress();