Files
musrfit/musredit/html/PGetTheoryBlockDialog_8cpp_source.html
T
2026-07-31 18:47:29 +00:00

250 lines
32 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" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>musredit: /workspace/LMU/musrfit/src/musredit_qt6/musredit/PGetTheoryBlockDialog.cpp Source File</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>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.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 id="projectrow">
<td id="projectalign">
<div id="projectname">musredit<span id="projectnumber">&#160;1.0.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',false);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- 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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_6ae224fd33464317177bff8e805aed3f.html">musredit_qt6</a></li><li class="navelem"><a class="el" href="dir_26071d482d956b9a852e608ffe64cea0.html">musredit</a></li> </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
<div class="headertitle"><div class="title">PGetTheoryBlockDialog.cpp</div></div>
</div><!--header-->
<div class="contents">
<a href="PGetTheoryBlockDialog_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/****************************************************************************</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"></span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> PGetTheoryBlockDialog.cpp</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"></span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> Author: Andreas Suter</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> e-mail: andreas.suter@psi.ch</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"></span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment">*****************************************************************************/</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">/***************************************************************************</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * Copyright (C) 2009-2026 by Andreas Suter *</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * andreas.suter@psi.ch *</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * *</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * This program is free software; you can redistribute it and/or modify *</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * it under the terms of the GNU General Public License as published by *</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * (at your option) any later version. *</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> * *</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment"> * This program is distributed in the hope that it will be useful, *</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of *</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment"> * GNU General Public License for more details. *</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment"> * *</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="comment"> * You should have received a copy of the GNU General Public License *</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="comment"> * along with this program; if not, write to the *</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="comment"> * Free Software Foundation, Inc., *</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="comment"> * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="comment"> ***************************************************************************/</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="preprocessor">#include &lt;QMessageBox&gt;</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="preprocessor">#include &lt;QTextEdit&gt;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="preprocessor">#include &lt;QComboBox&gt;</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="preprocessor">#include &lt;QPixmap&gt;</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="preprocessor">#include &lt;QImage&gt;</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="preprocessor">#include &lt;QDesktopServices&gt;</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="preprocessor">#include &lt;QUrl&gt;</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><span class="preprocessor">#include &lt;QtDebug&gt;</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="preprocessor">#include &quot;<a class="code" href="PGetTheoryBlockDialog_8h.html">PGetTheoryBlockDialog.h</a>&quot;</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="comment">//----------------------------------------------------------------------------------------------------</span></div>
<div class="foldopen" id="foldopen00084" data-start="{" data-end="}">
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classPGetTheoryBlockDialog.html#aa36eaec3547d973a7602a0784fad86d2"> 84</a></span><a class="code hl_function" href="classPGetTheoryBlockDialog.html#aa36eaec3547d973a7602a0784fad86d2">PGetTheoryBlockDialog::PGetTheoryBlockDialog</a>(<a class="code hl_class" href="classPAdmin.html">PAdmin</a> *admin, <span class="keyword">const</span> QString helpUrl) :</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_variable" href="classPGetTheoryBlockDialog.html#a6074cf6c8ab11b321b6c821881a78831">fAdmin</a>(admin),</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_variable" href="classPGetTheoryBlockDialog.html#a665712aec1635ab7f93ab609afc4b643">fHelpUrl</a>(helpUrl)</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span>{</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> setupUi(<span class="keyword">this</span>);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> setModal(<span class="keyword">true</span>);</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="comment">// feed theory function combo box</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> fTheoryFunction_comboBox-&gt;setIconSize(QSize(250, 20));</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_struct" href="structPTheory.html">PTheory</a> *theoItem;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> QIcon *icon;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> QString iconName;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;<a class="code hl_variable" href="classPGetTheoryBlockDialog.html#a6074cf6c8ab11b321b6c821881a78831">fAdmin</a>-&gt;getTheoryCounts(); i++) {</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> theoItem = <a class="code hl_variable" href="classPGetTheoryBlockDialog.html#a6074cf6c8ab11b321b6c821881a78831">fAdmin</a>-&gt;getTheoryItem(i);</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">if</span> (theoItem-&gt;<a class="code hl_variable" href="structPTheory.html#addaa30dca1f4e856cc73b7660c36b0db">pixmapName</a>.length() &gt; 0) {</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> iconName = QString(<span class="stringliteral">&quot;:/latex_images/&quot;</span>) + theoItem-&gt;<a class="code hl_variable" href="structPTheory.html#addaa30dca1f4e856cc73b7660c36b0db">pixmapName</a>;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> icon = <span class="keyword">new</span> QIcon(QPixmap(iconName));</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> fTheoryFunction_comboBox-&gt;insertItem(i, *icon, theoItem-&gt;<a class="code hl_variable" href="structPTheory.html#a7e28ee4fe48c28bf48342c393daa7772">label</a>);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> fTheoryFunction_comboBox-&gt;insertItem(i, theoItem-&gt;<a class="code hl_variable" href="structPTheory.html#a7e28ee4fe48c28bf48342c393daa7772">label</a>);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> }</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> }</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span>}</div>
</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span><span class="comment">//----------------------------------------------------------------------------------------------------</span></div>
<div class="foldopen" id="foldopen00145" data-start="{" data-end="}">
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="classPGetTheoryBlockDialog.html#a1e2df9b59726ce874e296703177aa190"> 145</a></span>QString <a class="code hl_slot" href="classPGetTheoryBlockDialog.html#a1e2df9b59726ce874e296703177aa190">PGetTheoryBlockDialog::getTheoFuncString</a>()</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span>{</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> QString str = <span class="stringliteral">&quot;????&quot;</span>;</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordtype">int</span> idx = fTheoryFunction_comboBox-&gt;currentIndex();</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_struct" href="structPTheory.html">PTheory</a> *theoItem = <a class="code hl_variable" href="classPGetTheoryBlockDialog.html#a6074cf6c8ab11b321b6c821881a78831">fAdmin</a>-&gt;getTheoryItem(idx);</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">if</span> (theoItem == 0)</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keywordflow">return</span> str;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="comment">// add theory function name</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> str = theoItem-&gt;<a class="code hl_variable" href="structPTheory.html#a0789fffc8d1edeb9cf8ad7eebf9fe920">name</a> + <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordflow">if</span> (theoItem-&gt;<a class="code hl_variable" href="structPTheory.html#a0789fffc8d1edeb9cf8ad7eebf9fe920">name</a> == <span class="stringliteral">&quot;userFcn&quot;</span>) {</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> str += <span class="stringliteral">&quot;libMyLibrary.so TMyFunction &quot;</span>;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> }</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// add pseudo parameters</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;theoItem-&gt;<a class="code hl_variable" href="structPTheory.html#a88a8f08b16a689c5805f12c3d3ad6cdd">params</a>; i++) {</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> str += QString(<span class="stringliteral">&quot;%1&quot;</span>).arg(i+1) + <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> }</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="comment">// add comment</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> str += theoItem-&gt;<a class="code hl_variable" href="structPTheory.html#a4f96f6484e98b76c3c5583b973d27198">comment</a>;</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keywordflow">return</span> str;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span>}</div>
</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span><span class="comment">//----------------------------------------------------------------------------------------------------</span></div>
<div class="foldopen" id="foldopen00192" data-start="{" data-end="}">
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"><a class="line" href="classPGetTheoryBlockDialog.html#a444e0ba744ade36f57b637d59431a363"> 192</a></span><span class="keywordtype">void</span> <a class="code hl_slot" href="classPGetTheoryBlockDialog.html#a444e0ba744ade36f57b637d59431a363">PGetTheoryBlockDialog::addPlus</a>()</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span>{</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> QString str = <a class="code hl_slot" href="classPGetTheoryBlockDialog.html#a1e2df9b59726ce874e296703177aa190">getTheoFuncString</a>() + <span class="stringliteral">&quot;\n+&quot;</span>;</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> fTheoryBlock_plainTextEdit-&gt;appendPlainText(str);</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span>}</div>
</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> </div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span><span class="comment">//----------------------------------------------------------------------------------------------------</span></div>
<div class="foldopen" id="foldopen00222" data-start="{" data-end="}">
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"><a class="line" href="classPGetTheoryBlockDialog.html#ae2242c46e63fa7d2cad70d6d414b0716"> 222</a></span><span class="keywordtype">void</span> <a class="code hl_slot" href="classPGetTheoryBlockDialog.html#ae2242c46e63fa7d2cad70d6d414b0716">PGetTheoryBlockDialog::addMultiply</a>()</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span>{</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> QString str = <a class="code hl_slot" href="classPGetTheoryBlockDialog.html#a1e2df9b59726ce874e296703177aa190">getTheoFuncString</a>();</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> fTheoryBlock_plainTextEdit-&gt;appendPlainText(str);</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span>}</div>
</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span><span class="comment">//----------------------------------------------------------------------------------------------------</span></div>
<div class="foldopen" id="foldopen00250" data-start="{" data-end="}">
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="classPGetTheoryBlockDialog.html#aa09a7e12009a82477d7011673e0ae758"> 250</a></span><span class="keywordtype">void</span> <a class="code hl_slot" href="classPGetTheoryBlockDialog.html#aa09a7e12009a82477d7011673e0ae758">PGetTheoryBlockDialog::helpContent</a>()</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span>{</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classPGetTheoryBlockDialog.html#a665712aec1635ab7f93ab609afc4b643">fHelpUrl</a>.isEmpty()) {</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> QMessageBox::information(<span class="keyword">this</span>, <span class="stringliteral">&quot;INFO&quot;</span>, <span class="stringliteral">&quot;Will eventually show a help window&quot;</span>);</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="keywordtype">bool</span> ok = QDesktopServices::openUrl(QUrl(<a class="code hl_variable" href="classPGetTheoryBlockDialog.html#a665712aec1635ab7f93ab609afc4b643">fHelpUrl</a>, QUrl::TolerantMode));</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <span class="keywordflow">if</span> (!ok) {</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> QString msg = QString(<span class="stringliteral">&quot;&lt;p&gt;Sorry: Couldn&#39;t open default web-browser for the help.&lt;br&gt;Please try: &lt;a href=\&quot;%1\&quot;&gt;musrfit docu&lt;/a&gt; in your web-browser.&quot;</span>).arg(<a class="code hl_variable" href="classPGetTheoryBlockDialog.html#a665712aec1635ab7f93ab609afc4b643">fHelpUrl</a>);</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> QMessageBox::critical( <span class="keyword">nullptr</span>, tr(<span class="stringliteral">&quot;FATAL ERROR&quot;</span>), msg, QMessageBox::Close );</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> }</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> }</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span>}</div>
</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> </div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span><span class="comment">//----------------------------------------------------------------------------------------------------</span></div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span><span class="comment">// END</span></div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span><span class="comment">//----------------------------------------------------------------------------------------------------</span></div>
<div class="ttc" id="aPGetTheoryBlockDialog_8h_html"><div class="ttname"><a href="PGetTheoryBlockDialog_8h.html">PGetTheoryBlockDialog.h</a></div><div class="ttdoc">Dialog for creating THEORY blocks in msr files.</div></div>
<div class="ttc" id="aclassPAdmin_html"><div class="ttname"><a href="classPAdmin.html">PAdmin</a></div><div class="ttdoc">Central administration class for musredit configuration management.</div><div class="ttdef"><b>Definition</b> <a href="PAdmin_8h_source.html#l00208">PAdmin.h:209</a></div></div>
<div class="ttc" id="aclassPGetTheoryBlockDialog_html_a1e2df9b59726ce874e296703177aa190"><div class="ttname"><a href="classPGetTheoryBlockDialog.html#a1e2df9b59726ce874e296703177aa190">PGetTheoryBlockDialog::getTheoFuncString</a></div><div class="ttdeci">QString getTheoFuncString()</div><div class="ttdoc">Generates the theory function string for the selected function.</div><div class="ttdef"><b>Definition</b> <a href="#l00145">PGetTheoryBlockDialog.cpp:145</a></div></div>
<div class="ttc" id="aclassPGetTheoryBlockDialog_html_a444e0ba744ade36f57b637d59431a363"><div class="ttname"><a href="classPGetTheoryBlockDialog.html#a444e0ba744ade36f57b637d59431a363">PGetTheoryBlockDialog::addPlus</a></div><div class="ttdeci">void addPlus()</div><div class="ttdoc">Adds the selected function followed by a &#39;+&#39; operator.</div><div class="ttdef"><b>Definition</b> <a href="#l00192">PGetTheoryBlockDialog.cpp:192</a></div></div>
<div class="ttc" id="aclassPGetTheoryBlockDialog_html_a6074cf6c8ab11b321b6c821881a78831"><div class="ttname"><a href="classPGetTheoryBlockDialog.html#a6074cf6c8ab11b321b6c821881a78831">PGetTheoryBlockDialog::fAdmin</a></div><div class="ttdeci">PAdmin * fAdmin</div><div class="ttdoc">Pointer to the administration object for accessing theory function definitions.</div><div class="ttdef"><b>Definition</b> <a href="PGetTheoryBlockDialog_8h_source.html#l00214">PGetTheoryBlockDialog.h:214</a></div></div>
<div class="ttc" id="aclassPGetTheoryBlockDialog_html_a665712aec1635ab7f93ab609afc4b643"><div class="ttname"><a href="classPGetTheoryBlockDialog.html#a665712aec1635ab7f93ab609afc4b643">PGetTheoryBlockDialog::fHelpUrl</a></div><div class="ttdeci">QString fHelpUrl</div><div class="ttdoc">URL to the online documentation for THEORY blocks.</div><div class="ttdef"><b>Definition</b> <a href="PGetTheoryBlockDialog_8h_source.html#l00215">PGetTheoryBlockDialog.h:215</a></div></div>
<div class="ttc" id="aclassPGetTheoryBlockDialog_html_aa09a7e12009a82477d7011673e0ae758"><div class="ttname"><a href="classPGetTheoryBlockDialog.html#aa09a7e12009a82477d7011673e0ae758">PGetTheoryBlockDialog::helpContent</a></div><div class="ttdeci">void helpContent()</div><div class="ttdoc">Opens the online help for THEORY blocks.</div><div class="ttdef"><b>Definition</b> <a href="#l00250">PGetTheoryBlockDialog.cpp:250</a></div></div>
<div class="ttc" id="aclassPGetTheoryBlockDialog_html_aa36eaec3547d973a7602a0784fad86d2"><div class="ttname"><a href="classPGetTheoryBlockDialog.html#aa36eaec3547d973a7602a0784fad86d2">PGetTheoryBlockDialog::PGetTheoryBlockDialog</a></div><div class="ttdeci">PGetTheoryBlockDialog(PAdmin *admin=0, const QString helpUrl=&quot;&quot;)</div><div class="ttdoc">Constructs a dialog for creating THEORY blocks.</div><div class="ttdef"><b>Definition</b> <a href="#l00084">PGetTheoryBlockDialog.cpp:84</a></div></div>
<div class="ttc" id="aclassPGetTheoryBlockDialog_html_ae2242c46e63fa7d2cad70d6d414b0716"><div class="ttname"><a href="classPGetTheoryBlockDialog.html#ae2242c46e63fa7d2cad70d6d414b0716">PGetTheoryBlockDialog::addMultiply</a></div><div class="ttdeci">void addMultiply()</div><div class="ttdoc">Adds the selected function (multiplication with next line).</div><div class="ttdef"><b>Definition</b> <a href="#l00222">PGetTheoryBlockDialog.cpp:222</a></div></div>
<div class="ttc" id="astructPTheory_html"><div class="ttname"><a href="structPTheory.html">PTheory</a></div><div class="ttdoc">Structure holding information about a musrfit theory function.</div><div class="ttdef"><b>Definition</b> <a href="PAdmin_8h_source.html#l00090">PAdmin.h:90</a></div></div>
<div class="ttc" id="astructPTheory_html_a0789fffc8d1edeb9cf8ad7eebf9fe920"><div class="ttname"><a href="structPTheory.html#a0789fffc8d1edeb9cf8ad7eebf9fe920">PTheory::name</a></div><div class="ttdeci">QString name</div><div class="ttdoc">Internal function name used in msr files (e.g., &quot;asymmetry&quot;, &quot;simplExpo&quot;).</div><div class="ttdef"><b>Definition</b> <a href="PAdmin_8h_source.html#l00091">PAdmin.h:91</a></div></div>
<div class="ttc" id="astructPTheory_html_a4f96f6484e98b76c3c5583b973d27198"><div class="ttname"><a href="structPTheory.html#a4f96f6484e98b76c3c5583b973d27198">PTheory::comment</a></div><div class="ttdeci">QString comment</div><div class="ttdoc">Human-readable description of the theory function.</div><div class="ttdef"><b>Definition</b> <a href="PAdmin_8h_source.html#l00092">PAdmin.h:92</a></div></div>
<div class="ttc" id="astructPTheory_html_a7e28ee4fe48c28bf48342c393daa7772"><div class="ttname"><a href="structPTheory.html#a7e28ee4fe48c28bf48342c393daa7772">PTheory::label</a></div><div class="ttdeci">QString label</div><div class="ttdoc">Short label for GUI menus and buttons.</div><div class="ttdef"><b>Definition</b> <a href="PAdmin_8h_source.html#l00093">PAdmin.h:93</a></div></div>
<div class="ttc" id="astructPTheory_html_a88a8f08b16a689c5805f12c3d3ad6cdd"><div class="ttname"><a href="structPTheory.html#a88a8f08b16a689c5805f12c3d3ad6cdd">PTheory::params</a></div><div class="ttdeci">int params</div><div class="ttdoc">Number of parameters required by this theory function.</div><div class="ttdef"><b>Definition</b> <a href="PAdmin_8h_source.html#l00096">PAdmin.h:96</a></div></div>
<div class="ttc" id="astructPTheory_html_addaa30dca1f4e856cc73b7660c36b0db"><div class="ttname"><a href="structPTheory.html#addaa30dca1f4e856cc73b7660c36b0db">PTheory::pixmapName</a></div><div class="ttdeci">QString pixmapName</div><div class="ttdoc">Filename of the pixmap image showing the mathematical formula.</div><div class="ttdef"><b>Definition</b> <a href="PAdmin_8h_source.html#l00094">PAdmin.h:94</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>