Files
oak-editor/docs/html/class_menu_helper.html
T
2019-02-19 03:57:47 -08:00

517 lines
25 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Olive: MenuHelper Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Olive
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_menu_helper-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">MenuHelper Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="menuhelper_8h_source.html">menuhelper.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for MenuHelper:</div>
<div class="dyncontent">
<div class="center">
<img src="class_menu_helper.png" alt=""/>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a89ebceb4b52b93ea82ec7fa7ac253718"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#a89ebceb4b52b93ea82ec7fa7ac253718">toggle_bool_action</a> ()</td></tr>
<tr class="memdesc:a89ebceb4b52b93ea82ec7fa7ac253718"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a QAction's Boolean reference to the opposite of its current value. <a href="#a89ebceb4b52b93ea82ec7fa7ac253718">More...</a><br /></td></tr>
<tr class="separator:a89ebceb4b52b93ea82ec7fa7ac253718"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c109452d8af3237cee07e9f53030e7c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#a9c109452d8af3237cee07e9f53030e7c">set_titlesafe_from_menu</a> ()</td></tr>
<tr class="memdesc:a9c109452d8af3237cee07e9f53030e7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Title/Action Safe Area from QAction. <a href="#a9c109452d8af3237cee07e9f53030e7c">More...</a><br /></td></tr>
<tr class="separator:a9c109452d8af3237cee07e9f53030e7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefd8a07595d457e27aabe366cd4d2dbb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#aefd8a07595d457e27aabe366cd4d2dbb">set_autoscroll</a> ()</td></tr>
<tr class="memdesc:aefd8a07595d457e27aabe366cd4d2dbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Autoscroll setting from QAction. <a href="#aefd8a07595d457e27aabe366cd4d2dbb">More...</a><br /></td></tr>
<tr class="separator:aefd8a07595d457e27aabe366cd4d2dbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a508f997ac25f7c5830b03161fda1b25f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#a508f997ac25f7c5830b03161fda1b25f">menu_click_button</a> ()</td></tr>
<tr class="memdesc:a508f997ac25f7c5830b03161fda1b25f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clicks a QPushButton referenced by a QAction when triggered. <a href="#a508f997ac25f7c5830b03161fda1b25f">More...</a><br /></td></tr>
<tr class="separator:a508f997ac25f7c5830b03161fda1b25f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ec427f151cf31a821db32cf71d66ef0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#a9ec427f151cf31a821db32cf71d66ef0">set_timecode_view</a> ()</td></tr>
<tr class="memdesc:a9ec427f151cf31a821db32cf71d66ef0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current timecode setting. <a href="#a9ec427f151cf31a821db32cf71d66ef0">More...</a><br /></td></tr>
<tr class="separator:a9ec427f151cf31a821db32cf71d66ef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae46d3ef4f566734c6d38512933cb353b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#ae46d3ef4f566734c6d38512933cb353b">open_recent_from_menu</a> ()</td></tr>
<tr class="memdesc:ae46d3ef4f566734c6d38512933cb353b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calls open_recent() in Olive::Global using the index from a QAction. <a href="#ae46d3ef4f566734c6d38512933cb353b">More...</a><br /></td></tr>
<tr class="separator:ae46d3ef4f566734c6d38512933cb353b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad4c34ddfd794f642f42ea08bf76124cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#ad4c34ddfd794f642f42ea08bf76124cc">make_new_menu</a> (QMenu *parent)</td></tr>
<tr class="memdesc:ad4c34ddfd794f642f42ea08bf76124cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a menu of new items that can be created. <a href="#ad4c34ddfd794f642f42ea08bf76124cc">More...</a><br /></td></tr>
<tr class="separator:ad4c34ddfd794f642f42ea08bf76124cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6bb56c91cb0980a16e447dd34074fe2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#aa6bb56c91cb0980a16e447dd34074fe2">make_inout_menu</a> (QMenu *parent)</td></tr>
<tr class="memdesc:aa6bb56c91cb0980a16e447dd34074fe2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a menu of options for working with in/out points. <a href="#aa6bb56c91cb0980a16e447dd34074fe2">More...</a><br /></td></tr>
<tr class="separator:aa6bb56c91cb0980a16e447dd34074fe2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7cc7086317b2ea8bb1774f2b749a9fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#ad7cc7086317b2ea8bb1774f2b749a9fd">make_clip_functions_menu</a> (QMenu *parent)</td></tr>
<tr class="memdesc:ad7cc7086317b2ea8bb1774f2b749a9fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a menu of clip functions. <a href="#ad7cc7086317b2ea8bb1774f2b749a9fd">More...</a><br /></td></tr>
<tr class="separator:ad7cc7086317b2ea8bb1774f2b749a9fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0138f049061657ff93a41708e1e06718"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#a0138f049061657ff93a41708e1e06718">make_edit_functions_menu</a> (QMenu *parent)</td></tr>
<tr class="memdesc:a0138f049061657ff93a41708e1e06718"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates standard edit menu (cut, copy, paste, etc.) <a href="#a0138f049061657ff93a41708e1e06718">More...</a><br /></td></tr>
<tr class="separator:a0138f049061657ff93a41708e1e06718"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03f62557c81dbffab88ad0edaf522762"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#a03f62557c81dbffab88ad0edaf522762">set_bool_action_checked</a> (QAction *a)</td></tr>
<tr class="memdesc:a03f62557c81dbffab88ad0edaf522762"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the checked state of a menu item based on a Boolean variable. <a href="#a03f62557c81dbffab88ad0edaf522762">More...</a><br /></td></tr>
<tr class="separator:a03f62557c81dbffab88ad0edaf522762"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab152c4e0a116a10735a4ab8e3da91736"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#ab152c4e0a116a10735a4ab8e3da91736">set_int_action_checked</a> (QAction *a, const int &amp;i)</td></tr>
<tr class="memdesc:ab152c4e0a116a10735a4ab8e3da91736"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the checked state of a menu item based on an integer variable. <a href="#ab152c4e0a116a10735a4ab8e3da91736">More...</a><br /></td></tr>
<tr class="separator:ab152c4e0a116a10735a4ab8e3da91736"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26de4da960087ca481b8520b129c7b7f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_helper.html#a26de4da960087ca481b8520b129c7b7f">set_button_action_checked</a> (QAction *a)</td></tr>
<tr class="memdesc:a26de4da960087ca481b8520b129c7b7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the checked state of a menu item based on a QPushButton. <a href="#a26de4da960087ca481b8520b129c7b7f">More...</a><br /></td></tr>
<tr class="separator:a26de4da960087ca481b8520b129c7b7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad7cc7086317b2ea8bb1774f2b749a9fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7cc7086317b2ea8bb1774f2b749a9fd">&#9670;&nbsp;</a></span>make_clip_functions_menu()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::make_clip_functions_menu </td>
<td>(</td>
<td class="paramtype">QMenu *&#160;</td>
<td class="paramname"><em>parent</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a menu of clip functions. </p>
<p>Adds a set of clip functions including:</p><ul>
<li>Add Default <a class="el" href="class_transition.html">Transition</a></li>
<li>Link/Unlink</li>
<li>Enable/Disable</li>
<li>Nest</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td>The menu to add items to. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0138f049061657ff93a41708e1e06718"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0138f049061657ff93a41708e1e06718">&#9670;&nbsp;</a></span>make_edit_functions_menu()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::make_edit_functions_menu </td>
<td>(</td>
<td class="paramtype">QMenu *&#160;</td>
<td class="paramname"><em>parent</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates standard edit menu (cut, copy, paste, etc.) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td>The menu to add items to. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="aa6bb56c91cb0980a16e447dd34074fe2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6bb56c91cb0980a16e447dd34074fe2">&#9670;&nbsp;</a></span>make_inout_menu()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::make_inout_menu </td>
<td>(</td>
<td class="paramtype">QMenu *&#160;</td>
<td class="paramname"><em>parent</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a menu of options for working with in/out points. </p>
<p>Adds a set of options for working with sequence/footage in/out points, e.g. setting in/out points, clearing in/out points, etc.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td>The menu to add items to. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ad4c34ddfd794f642f42ea08bf76124cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4c34ddfd794f642f42ea08bf76124cc">&#9670;&nbsp;</a></span>make_new_menu()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::make_new_menu </td>
<td>(</td>
<td class="paramtype">QMenu *&#160;</td>
<td class="paramname"><em>parent</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a menu of new items that can be created. </p>
<p>Adds the full set of creatable items to a QMenu (e.g. new project, new sequence, new folder, etc.)</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent</td><td>The menu to add items to. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a508f997ac25f7c5830b03161fda1b25f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a508f997ac25f7c5830b03161fda1b25f">&#9670;&nbsp;</a></span>menu_click_button</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::menu_click_button </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Clicks a QPushButton referenced by a QAction when triggered. </p>
<p>Some menu items function largely as a proxy to a QPushButton. Assuming the QAction's data variable is a pointer to a QPushButton, this triggers a click() event on that QPushButton. </p>
</div>
</div>
<a id="ae46d3ef4f566734c6d38512933cb353b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae46d3ef4f566734c6d38512933cb353b">&#9670;&nbsp;</a></span>open_recent_from_menu</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::open_recent_from_menu </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Calls open_recent() in Olive::Global using the index from a QAction. </p>
<p>Assumes the sender() is a QAction with an integer as its data variable. The data variable is an index of the internal auto-recovery project list. </p>
</div>
</div>
<a id="aefd8a07595d457e27aabe366cd4d2dbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefd8a07595d457e27aabe366cd4d2dbb">&#9670;&nbsp;</a></span>set_autoscroll</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::set_autoscroll </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set Autoscroll setting from QAction. </p>
<p>Assumes the sender() is a QAction with an integer as its data variable. The data variable should be <code>AUTOSCROLL_NO_SCROLL</code>, <code>AUTOSCROLL_PAGE_SCROLL</code> (default) or <code>AUTOSCROLL_SMOOTH_SCROLL</code>. </p>
</div>
</div>
<a id="a03f62557c81dbffab88ad0edaf522762"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03f62557c81dbffab88ad0edaf522762">&#9670;&nbsp;</a></span>set_bool_action_checked()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::set_bool_action_checked </td>
<td>(</td>
<td class="paramtype">QAction *&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the checked state of a menu item based on a Boolean variable. </p>
<p>Many menu items simply toggle a Boolean variable. This is a convenience function, assuming the QAction's data variable is a pointer to a Boolean variable, that sets the checked state of the QAction to the enabled state of the Boolean. Used heavily in functions like toolMenu_About_To_Be_Shown()</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The QAction to set the checked state of. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a26de4da960087ca481b8520b129c7b7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26de4da960087ca481b8520b129c7b7f">&#9670;&nbsp;</a></span>set_button_action_checked()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::set_button_action_checked </td>
<td>(</td>
<td class="paramtype">QAction *&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the checked state of a menu item based on a QPushButton. </p>
<p>Some menu items function largely as a proxy to a QPushButton. Assuming the QAction's data variable is a pointer to a QPushButton, this sets a QAction's checked state to the checked state of the QPushButton.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ab152c4e0a116a10735a4ab8e3da91736"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab152c4e0a116a10735a4ab8e3da91736">&#9670;&nbsp;</a></span>set_int_action_checked()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::set_int_action_checked </td>
<td>(</td>
<td class="paramtype">QAction *&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int &amp;&#160;</td>
<td class="paramname"><em>i</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the checked state of a menu item based on an integer variable. </p>
<p>Many menu items simply set a variable to a particular integer. This is a convenience function, assuming the QAction's data variable is an integer to set a variable to, that sets the checked state of the QAction to whether the QAction's integer equals the integer variable. Used heavily in functions like viewMenu_About_To_Be_Shown()</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The QAction to set the checked state of</td></tr>
<tr><td class="paramname">i</td><td>The integer variable to compare the QAction's integer to </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a9ec427f151cf31a821db32cf71d66ef0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ec427f151cf31a821db32cf71d66ef0">&#9670;&nbsp;</a></span>set_timecode_view</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::set_timecode_view </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the current timecode setting. </p>
<p>Assumes the sender() is a QAction with an integer as its data variable. The data variable should be <code>AUTOSCROLL_NO_AUTOSCROLL</code>, <code>AUTOSCROLL_PAGE_AUTOSCROLL</code> (default) or <code>AUTOSCROLL_SMOOTH_AUTOSCROLL</code>. </p>
</div>
</div>
<a id="a9c109452d8af3237cee07e9f53030e7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c109452d8af3237cee07e9f53030e7c">&#9670;&nbsp;</a></span>set_titlesafe_from_menu</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::set_titlesafe_from_menu </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set Title/Action Safe Area from QAction. </p>
<p>A receiver for several Title/Action Safe Area setting items. Assumes the sender() is a QAction with a data variable as a <code>double</code>. The <code>double</code> can be the following values:</p><ul>
<li>NaN (qSNaN()) - Disable Title/Action Safe Area</li>
<li>0 - Enable Title/Action Safe Area, default aspect ratio (match current active <a class="el" href="class_sequence.html">Sequence</a>'s aspect ratio).</li>
<li>Negative Value - Enable Title/Action Safe Area, any negative number assumes a custom aspect ratio. Will ask the user to enter an aspect ratio and will use the result.</li>
<li>Positive Value - Enable Title/Action Safe Area, use value as the aspect ratio. </li>
</ul>
</div>
</div>
<a id="a89ebceb4b52b93ea82ec7fa7ac253718"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89ebceb4b52b93ea82ec7fa7ac253718">&#9670;&nbsp;</a></span>toggle_bool_action</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MenuHelper::toggle_bool_action </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a QAction's Boolean reference to the opposite of its current value. </p>
<p>Many menu items simply toggle a Boolean variable. This is a convenience function, assuming the QAction's data variable is a pointer to a Boolean variable, that sets the Boolean variable to the opposite of its current value. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>ui/<a class="el" href="menuhelper_8h_source.html">menuhelper.h</a></li>
<li>ui/<a class="el" href="menuhelper_8cpp.html">menuhelper.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>