X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Fperformanceprefs.C;h=77ca2d5f5d7d81926cd6dac55f9ea731401474b0;hb=HEAD;hp=e13cb2f65f2d4b0a3523146d4822973758ae964c;hpb=45a8ba3455cf252332c03533a7590df5267ce9aa;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/performanceprefs.C b/cinelerra-5.1/cinelerra/performanceprefs.C index e13cb2f6..77ca2d5f 100644 --- a/cinelerra-5.1/cinelerra/performanceprefs.C +++ b/cinelerra-5.1/cinelerra/performanceprefs.C @@ -2,6 +2,7 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams + * Copyright (C) 2003-2016 Cinelerra CV contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,6 +42,8 @@ PerformancePrefs::PerformancePrefs(MWindow *mwindow, PreferencesWindow *pwindow) : PreferencesDialog(mwindow, pwindow) { hot_node = -1; +// *** CONTEXT_HELP *** + context_help_set_keyword("Performance"); } PerformancePrefs::~PerformancePrefs() @@ -63,6 +66,7 @@ void PerformancePrefs::create_objects() char string[BCTEXTLEN]; BC_Resources *resources = BC_WindowBase::get_resources(); BC_WindowBase *win; + BC_Title *title; node_list = 0; generate_node_list(); @@ -72,9 +76,11 @@ void PerformancePrefs::create_objects() int y0 = y; win = add_subwindow(new BC_Title(x, y + ys5, _("Cache size (MB):"), MEDIUMFONT, resources->text_default)); + win->context_help_set_keyword("Performance section"); int maxw = win->get_w(); int y1 = y += ys30; win = add_subwindow(new BC_Title(x, y1 + ys5, _("Seconds to preroll renders:"))); + win->context_help_set_keyword("Performance section"); maxw = bmax(win->get_w(), maxw); int x2 = x + maxw + xs5; int y2 = y += ys30; @@ -87,9 +93,12 @@ void PerformancePrefs::create_objects() int x1 = x + xmargin4; add_subwindow(cache_transitions = new CacheTransitions(x1, y0, pwindow, this)); + cache_transitions->context_help_set_keyword("Performance section"); win = add_subwindow(new BC_Title(x1, y1, _("Use HW Device:"))); + win->context_help_set_keyword("Performance section"); maxw = win->get_w(); win = add_subwindow(new BC_Title(x1, y2, _("Project SMP cpus:"))); + win->context_help_set_keyword("Performance section"); maxw = bmax(win->get_w(), maxw); x2 = x1 + maxw + xs5; PrefsUseHWDev *use_hw_dev = new PrefsUseHWDev(pwindow, this, x2, y1); @@ -102,19 +111,23 @@ void PerformancePrefs::create_objects() y += ys5; - add_subwindow(new BC_Title(x, y, _("Background Rendering (Video only)"), LARGEFONT, resources->text_default)); + add_subwindow(title = new BC_Title(x, y, _("Background Rendering (Video only)"), LARGEFONT, resources->text_default)); + title->context_help_set_keyword("Background Rendering"); y1 = y += ys30; win = add_subwindow(new PrefsUseBRender(pwindow, x, y)); + win->context_help_set_keyword("Background Rendering"); y += win->get_h() + ys10; win = add_subwindow(new BC_Title(x, y, _("Frames per background rendering job:"))); + win->context_help_set_keyword("Background Rendering"); y += win->get_h() + ys5; PrefsBRenderFragment *brender_fragment = new PrefsBRenderFragment(pwindow, this, x + xmargin3, y); brender_fragment->create_objects(); y += brender_fragment->get_h() + ys5; win = add_subwindow(new BC_Title(x, y, _("Frames to preroll background:"))); + win->context_help_set_keyword("Background Rendering"); y += win->get_h() + ys5; PrefsBRenderPreroll *bpreroll = new PrefsBRenderPreroll(pwindow, this, x + xmargin3, y + ys5); @@ -122,7 +135,8 @@ void PerformancePrefs::create_objects() y += bpreroll->get_h() + ys20; x += xmargin4; - add_subwindow(new BC_Title(x, y1, _("Output for background rendering:"))); + add_subwindow(title = new BC_Title(x, y1, _("Output for background rendering:"))); + title->context_help_set_keyword("Background Rendering"); y1 += ys20; brender_tools = new FormatTools(mwindow, this, pwindow->thread->preferences->brender_asset); @@ -143,21 +157,28 @@ void PerformancePrefs::create_objects() // Renderfarm add_subwindow(new BC_Bar(xs5, y, get_w() - xs10)); y += ys5; - add_subwindow(new BC_Title(x, y, _("Render Farm"), LARGEFONT, resources->text_default)); + add_subwindow(title = new BC_Title(x, y, _("Render Farm"), LARGEFONT, resources->text_default)); + title->context_help_set_keyword("Render Farm Menu"); x1 = get_w() - BC_GenericButton::calculate_w(this, _("Reset rates")) - x; add_subwindow(new PrefsRenderFarmReset(pwindow, this, x1, y)); x1 = x + xmargin4; BC_Title *node_title = new BC_Title(x1, y, _("Nodes:")); add_subwindow(node_title); + node_title->context_help_set_keyword("Render Farm Menu"); x1 += node_title->get_w() + xS(15); sprintf(string, _(MASTER_NODE_FRAMERATE_TEXT), pwindow->thread->preferences->local_rate); add_subwindow(master_rate = new BC_Title(x1, y, string)); + master_rate->context_help_set_keyword("Render Farm Menu"); add_subwindow(node_list = new PrefsRenderFarmNodes(pwindow, this, x + xmargin4, y+=yS(25))); + node_list->context_help_set_keyword("Render Farm Menu"); add_subwindow(new PrefsRenderFarm(pwindow, x, y+=ys5)); - add_subwindow(new BC_Title(x, y+=ys30, _("Hostname:"))); - add_subwindow(new BC_Title(x + xmargin3, y, _("Port:"))); + add_subwindow(title = new BC_Title(x, y+=ys30, _("Hostname:"))); + title->context_help_set_keyword("Render Farm Menu"); + add_subwindow(title = new BC_Title(x + xmargin3, y, _("Port:"))); + title->context_help_set_keyword("Render Farm Menu"); add_subwindow(edit_node = new PrefsRenderFarmEditNode(pwindow, this, x, y+=yS(25))); + edit_node->context_help_set_keyword("Render Farm Menu"); edit_port = new PrefsRenderFarmPort(pwindow, this, x+xmargin3, y); edit_port->create_objects(); @@ -165,16 +186,19 @@ void PerformancePrefs::create_objects() add_subwindow(new PrefsRenderFarmNewNode(pwindow, this, x+xmargin2, y)); add_subwindow(new PrefsRenderFarmSortNodes(pwindow, this, x, y+=ys30)); add_subwindow(new PrefsRenderFarmDelNode(pwindow, this, x+xmargin2, y)); - add_subwindow(new BC_Title(x, y+=ys35, _("Client Watchdog Timeout:"))); + add_subwindow(title = new BC_Title(x, y+=ys35, _("Client Watchdog Timeout:"))); + title->context_help_set_keyword("Render Farm Menu"); renderfarm_watchdog = new PrefsRenderFarmWatchdog(pwindow, this, x+xmargin3, y-ys5); renderfarm_watchdog->create_objects(); - add_subwindow(new BC_Title(x, y+=ys35, _("Total jobs to create:"))); + add_subwindow(title = new BC_Title(x, y+=ys35, _("Total jobs to create:"))); + title->context_help_set_keyword("Render Farm Menu"); PrefsRenderFarmJobs *jobs = new PrefsRenderFarmJobs(pwindow, this, x + xmargin3, y-ys5); jobs->create_objects(); y += jobs->get_h() + ys5; win = add_subwindow(new BC_Title(x, y, _("(overridden if new file at each label is checked)"))); + win->context_help_set_keyword("Render Farm Menu"); // y += win->get_h() + ys5; // add_subwindow(new PrefsRenderFarmVFS(pwindow, this, x, y)); // add_subwindow(new BC_Title(x, y, @@ -406,6 +430,8 @@ PrefsRenderFarm::PrefsRenderFarm(PreferencesWindow *pwindow, int x, int y) _("Use render farm")) { this->pwindow = pwindow; +// *** CONTEXT_HELP *** + context_help_set_keyword("Render Farm section"); } PrefsRenderFarm::~PrefsRenderFarm() { @@ -424,6 +450,8 @@ PrefsForceUniprocessor::PrefsForceUniprocessor(PreferencesWindow *pwindow, int x _("Force single processor use")) { this->pwindow = pwindow; +// *** CONTEXT_HELP *** + context_help_set_keyword("Performance section"); } PrefsForceUniprocessor::~PrefsForceUniprocessor() { @@ -556,6 +584,8 @@ PrefsRenderFarmNewNode::PrefsRenderFarmNewNode(PreferencesWindow *pwindow, Perfo { this->pwindow = pwindow; this->subwindow = subwindow; +// *** CONTEXT_HELP *** + context_help_set_keyword("Render Farm Menu"); } PrefsRenderFarmNewNode::~PrefsRenderFarmNewNode() { @@ -586,6 +616,8 @@ PrefsRenderFarmReplaceNode::PrefsRenderFarmReplaceNode(PreferencesWindow *pwindo { this->pwindow = pwindow; this->subwindow = subwindow; +// *** CONTEXT_HELP *** + context_help_set_keyword("Render Farm Menu"); } PrefsRenderFarmReplaceNode::~PrefsRenderFarmReplaceNode() { @@ -610,6 +642,8 @@ PrefsRenderFarmDelNode::PrefsRenderFarmDelNode(PreferencesWindow *pwindow, Perfo { this->pwindow = pwindow; this->subwindow = subwindow; +// *** CONTEXT_HELP *** + context_help_set_keyword("Render Farm Menu"); } PrefsRenderFarmDelNode::~PrefsRenderFarmDelNode() { @@ -636,6 +670,8 @@ PrefsRenderFarmSortNodes::PrefsRenderFarmSortNodes(PreferencesWindow *pwindow, { this->pwindow = pwindow; this->subwindow = subwindow; +// *** CONTEXT_HELP *** + context_help_set_keyword("Render Farm Menu"); } PrefsRenderFarmSortNodes::~PrefsRenderFarmSortNodes() @@ -658,6 +694,8 @@ PrefsRenderFarmReset::PrefsRenderFarmReset(PreferencesWindow *pwindow, { this->pwindow = pwindow; this->subwindow = subwindow; +// *** CONTEXT_HELP *** + context_help_set_keyword("Render Farm Menu"); } int PrefsRenderFarmReset::handle_event()