321 lines
25 KiB
HTML
321 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" 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/PTextEdit.cpp File 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>
|
|
<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"> 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&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&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&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&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">PTextEdit.cpp File Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Implementation of the main window class for musredit.
|
|
<a href="#details">More...</a></p>
|
|
<div class="textblock"><code>#include <iostream></code><br />
|
|
<code>#include <fstream></code><br />
|
|
<code>#include <QString></code><br />
|
|
<code>#include <QStringList></code><br />
|
|
<code>#include <QTextEdit></code><br />
|
|
<code>#include <QStatusBar></code><br />
|
|
<code>#include <QAction></code><br />
|
|
<code>#include <QMenuBar></code><br />
|
|
<code>#include <QMenu></code><br />
|
|
<code>#include <QToolBar></code><br />
|
|
<code>#include <QTabWidget></code><br />
|
|
<code>#include <QApplication></code><br />
|
|
<code>#include <QFontDatabase></code><br />
|
|
<code>#include <QComboBox></code><br />
|
|
<code>#include <QLineEdit></code><br />
|
|
<code>#include <QFileInfo></code><br />
|
|
<code>#include <QFile></code><br />
|
|
<code>#include <QFileDialog></code><br />
|
|
<code>#include <QtPrintSupport/QPrinter></code><br />
|
|
<code>#include <QtPrintSupport/QPrintDialog></code><br />
|
|
<code>#include <QColorDialog></code><br />
|
|
<code>#include <QPainter></code><br />
|
|
<code>#include <QMessageBox></code><br />
|
|
<code>#include <QDialog></code><br />
|
|
<code>#include <QTextCursor></code><br />
|
|
<code>#include <QTextBlock></code><br />
|
|
<code>#include <QTextDocumentFragment></code><br />
|
|
<code>#include <QTextList></code><br />
|
|
<code>#include <QProcess></code><br />
|
|
<code>#include <QFileSystemWatcher></code><br />
|
|
<code>#include <QDesktopServices></code><br />
|
|
<code>#include <QUrl></code><br />
|
|
<code>#include <QRegularExpression></code><br />
|
|
<code>#include <QElapsedTimer></code><br />
|
|
<code>#include <QThread></code><br />
|
|
<code>#include <QtDebug></code><br />
|
|
<code>#include "<a class="el" href="PTextEdit_8h_source.html">PTextEdit.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PSubTextEdit_8h_source.html">PSubTextEdit.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PAdmin_8h_source.html">PAdmin.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PFindDialog_8h_source.html">PFindDialog.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PReplaceDialog_8h_source.html">PReplaceDialog.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PReplaceConfirmationDialog_8h_source.html">PReplaceConfirmationDialog.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PFitOutputHandler_8h_source.html">PFitOutputHandler.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PDumpOutputHandler_8h_source.html">PDumpOutputHandler.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PPrefsDialog_8h_source.html">PPrefsDialog.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PGetMusrFTOptionsDialog_8h_source.html">PGetMusrFTOptionsDialog.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PMusrEditAbout_8h_source.html">PMusrEditAbout.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="PMsr2DataDialog_8h_source.html">PMsr2DataDialog.h</a>"</code><br />
|
|
</div><div class="textblock"><div class="dynheader">
|
|
Include dependency graph for PTextEdit.cpp:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="PTextEdit_8cpp__incl.png" border="0" usemap="#a_2workspace_2LMU_2musrfit_2src_2musredit__qt6_2musredit_2PTextEdit_8cpp" alt=""/></div>
|
|
<map name="a_2workspace_2LMU_2musrfit_2src_2musredit__qt6_2musredit_2PTextEdit_8cpp" id="a_2workspace_2LMU_2musrfit_2src_2musredit__qt6_2musredit_2PTextEdit_8cpp">
|
|
<area shape="rect" title="Implementation of the main window class for musredit." alt="" coords="2276,5,2463,67"/>
|
|
<area shape="rect" title=" " alt="" coords="5,115,80,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,41,1843,45,1218,57,889,67,577,80,305,97,95,118,95,112,305,91,577,75,889,62,1218,52,1843,40,2275,35"/>
|
|
<area shape="rect" title=" " alt="" coords="104,115,173,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,41,1855,47,1252,60,640,83,385,99,192,118,188,118,187,113,192,112,385,93,640,78,1252,55,1855,42,2275,36"/>
|
|
<area shape="rect" title=" " alt="" coords="530,266,598,294"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,40,1803,42,1150,51,831,61,557,75,361,93,301,105,272,117,261,132,256,145,257,158,262,170,287,194,325,214,372,232,423,247,515,268,514,273,421,252,370,237,323,219,284,198,258,173,252,159,251,145,256,129,269,113,299,100,360,88,557,69,830,56,1149,46,1803,37,2275,35"/>
|
|
<area shape="rect" title=" " alt="" coords="834,191,923,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,41,1906,47,1416,60,1180,70,980,83,836,99,792,108,771,117,765,126,764,134,775,152,798,168,827,182,824,187,795,172,771,155,759,135,760,124,767,113,790,103,835,94,979,78,1180,65,1416,55,1906,42,2275,36"/>
|
|
<area shape="rect" title=" " alt="" coords="1530,191,1611,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,40,2163,45,2027,57,1879,80,1805,97,1734,117,1709,130,1685,145,1610,185,1608,181,1682,140,1707,125,1732,113,1804,92,1878,75,2026,52,2163,40,2275,35"/>
|
|
<area shape="rect" title=" " alt="" coords="2165,115,2253,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2317,70,2247,109,2244,105,2315,65"/>
|
|
<area shape="rect" title=" " alt="" coords="1788,191,1857,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,57,2159,83,2033,118,1941,152,1864,186,1862,181,1939,147,2031,112,2157,78,2274,52"/>
|
|
<area shape="rect" title=" " alt="" coords="2278,115,2362,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2355,69,2337,103,2332,100,2350,66"/>
|
|
<area shape="rect" title=" " alt="" coords="2386,115,2451,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2388,66,2407,100,2402,103,2383,69"/>
|
|
<area shape="rect" title=" " alt="" coords="2475,115,2554,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2419,65,2482,104,2479,109,2416,70"/>
|
|
<area shape="rect" title=" " alt="" coords="2579,115,2677,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2457,65,2577,107,2575,112,2455,70"/>
|
|
<area shape="rect" title=" " alt="" coords="2701,115,2800,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2464,57,2686,110,2685,115,2463,62"/>
|
|
<area shape="rect" title=" " alt="" coords="2824,115,2941,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2464,51,2810,112,2809,117,2463,57"/>
|
|
<area shape="rect" title=" " alt="" coords="1881,191,1980,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2276,61,2186,85,2093,117,2023,151,1965,185,1962,180,2021,146,2091,113,2184,80,2274,56"/>
|
|
<area shape="rect" title=" " alt="" coords="2965,115,3045,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2464,44,2682,70,2950,112,2949,117,2681,76,2463,50"/>
|
|
<area shape="rect" title=" " alt="" coords="2003,191,2082,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2276,60,2204,83,2133,117,2094,148,2064,181,2060,177,2091,144,2130,113,2202,78,2274,55"/>
|
|
<area shape="rect" title=" " alt="" coords="3069,115,3122,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,39,2580,48,2726,61,2888,83,3054,112,3053,117,2888,88,2725,67,2580,53,2463,45"/>
|
|
<area shape="rect" title=" " alt="" coords="3147,115,3239,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,41,2758,66,2943,86,3132,112,3131,117,2942,92,2757,71,2463,46"/>
|
|
<area shape="rect" title=" " alt="" coords="3263,115,3432,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2464,42,2805,69,3248,112,3247,117,2805,75,2463,47"/>
|
|
<area shape="rect" title=" " alt="" coords="3456,115,3653,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,40,2883,67,3442,112,3441,117,2883,73,2463,46"/>
|
|
<area shape="rect" title=" " alt="" coords="3677,115,3781,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2464,36,2676,42,2971,54,3312,77,3488,93,3662,112,3661,117,3488,98,3312,82,2971,60,2676,47,2463,42"/>
|
|
<area shape="rect" title=" " alt="" coords="3805,115,3880,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,38,3122,63,3501,85,3663,98,3790,112,3790,118,3662,103,3501,90,3121,68,2463,43"/>
|
|
<area shape="rect" title=" " alt="" coords="1306,191,1411,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,40,2031,43,1730,53,1587,63,1463,76,1371,94,1341,105,1323,117,1317,130,1319,146,1337,177,1333,180,1313,147,1311,129,1319,113,1339,100,1370,89,1462,71,1586,58,1730,48,2031,37,2275,35"/>
|
|
<area shape="rect" title=" " alt="" coords="1049,191,1119,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,42,1963,50,1562,66,1371,76,1208,88,1092,102,1057,109,1040,117,1034,131,1037,146,1047,163,1060,178,1056,182,1042,166,1032,148,1029,130,1037,113,1055,104,1091,96,1208,83,1370,70,1562,60,1963,45,2275,37"/>
|
|
<area shape="rect" title=" " alt="" coords="3903,115,4000,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,35,2709,37,3060,48,3469,71,3680,89,3888,112,3888,117,3680,94,3468,76,3060,53,2709,42,2463,40"/>
|
|
<area shape="rect" title=" " alt="" coords="4024,115,4114,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2464,37,3225,62,3671,84,3860,97,4009,112,4008,117,3860,103,3671,89,3225,67,2463,42"/>
|
|
<area shape="rect" title=" " alt="" coords="4138,115,4318,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,36,2742,43,3150,56,3629,79,4123,112,4122,117,3629,84,3150,61,2742,48,2463,42"/>
|
|
<area shape="rect" title=" " alt="" coords="4342,115,4420,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,36,2841,43,3373,57,3917,79,4148,95,4327,112,4326,118,4147,100,3916,85,3373,62,2840,48,2463,41"/>
|
|
<area shape="rect" title=" " alt="" coords="1636,191,1713,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2276,46,2151,57,2010,72,1879,93,1826,104,1786,117,1761,131,1737,147,1698,182,1694,178,1734,143,1758,126,1784,113,1824,99,1878,87,2009,67,2151,52,2275,41"/>
|
|
<area shape="rect" title=" " alt="" coords="2106,191,2254,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2276,47,2239,56,2203,70,2171,90,2145,116,2139,131,2141,146,2159,177,2155,180,2136,148,2134,130,2140,114,2167,85,2201,65,2238,51,2274,42"/>
|
|
<area shape="rect" title=" " alt="" coords="4445,115,4573,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,34,2785,36,3268,45,3547,54,3840,68,4137,87,4430,112,4429,118,4137,93,3839,74,3547,60,3268,50,2785,41,2463,40"/>
|
|
<area shape="rect" title=" " alt="" coords="4598,115,4647,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,35,2885,36,3492,45,3812,54,4115,68,4379,88,4583,113,4582,118,4379,93,4115,74,3812,60,3492,50,2885,41,2463,40"/>
|
|
<area shape="rect" title=" " alt="" coords="4671,115,4814,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,34,2816,35,3354,43,3667,53,3995,67,4328,86,4656,112,4656,117,4328,92,3995,72,3667,58,3354,49,2816,40,2463,39"/>
|
|
<area shape="rect" title=" " alt="" coords="4837,115,4952,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,36,2925,43,3601,57,4298,80,4593,95,4822,112,4821,118,4593,100,4298,85,3601,63,2925,48,2463,41"/>
|
|
<area shape="rect" title=" " alt="" coords="4976,115,5050,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,35,2949,37,3666,48,4046,57,4406,71,4720,89,4961,112,4961,118,4719,94,4406,76,4046,63,3666,53,2949,43,2463,40"/>
|
|
<area shape="rect" title=" " alt="" coords="2278,191,2354,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2276,49,2242,58,2209,72,2179,91,2155,116,2151,129,2155,141,2168,149,2195,160,2264,184,2262,189,2193,165,2166,154,2151,144,2145,129,2151,114,2176,87,2206,67,2240,53,2274,44"/>
|
|
<area shape="rect" href="PTextEdit_8h.html" title="Main window class for the musredit application." alt="" coords="1797,115,1888,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2276,55,1907,118,1904,118,1903,113,1906,112,2275,50"/>
|
|
<area shape="rect" href="PAdmin_8h.html" title="Administration and configuration management for musredit." alt="" coords="451,191,530,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,40,1807,42,1158,52,842,61,571,75,376,94,317,105,288,117,279,133,281,147,294,159,316,169,374,185,436,195,435,200,373,191,314,174,291,163,276,149,273,132,285,113,315,100,375,88,571,70,842,56,1158,46,1807,37,2275,35"/>
|
|
<area shape="rect" href="PSubTextEdit_8h.html" title="Enhanced text editor widget for editing msr files in musredit." alt="" coords="298,115,411,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,39,1969,40,1515,49,1253,58,979,72,700,92,426,118,426,112,700,87,978,67,1253,53,1515,43,1969,35,2275,34"/>
|
|
<area shape="rect" href="PFindDialog_8h.html" title="Find dialog for text searching in musredit." alt="" coords="5075,115,5181,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,36,2965,41,3710,54,4481,77,4807,93,5059,112,5059,118,4807,98,4480,82,3710,59,2965,46,2463,41"/>
|
|
<area shape="rect" href="PReplaceDialog_8h.html" title="Find and replace dialog for the musredit text editor." alt="" coords="5205,115,5331,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,36,2987,42,3770,55,4581,78,4925,94,5190,112,5189,117,4925,99,4581,84,3770,61,2987,47,2463,41"/>
|
|
<area shape="rect" href="PReplaceConfirmationDialog_8h.html" title="Confirmation dialog for find-and-replace operations in musredit." alt="" coords="1051,115,1258,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,46,1844,74,1277,118,1273,118,1273,113,1277,112,1843,69,2275,41"/>
|
|
<area shape="rect" href="PFitOutputHandler_8h.html" title="Dialog for displaying musrfit fitting process output." alt="" coords="1333,115,1480,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,47,1936,74,1496,117,1495,112,1935,68,2275,41"/>
|
|
<area shape="rect" href="PDumpOutputHandler_8h.html" title="Dialog for displaying dump_header command output." alt="" coords="1504,115,1672,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2276,51,1691,118,1687,118,1687,113,1690,112,2275,45"/>
|
|
<area shape="rect" href="PPrefsDialog_8h.html" title="Preferences dialog for musredit application settings." alt="" coords="435,115,546,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,40,1988,41,1567,51,1325,60,1071,74,815,93,561,118,561,112,814,88,1071,69,1324,55,1567,45,1988,36,2275,34"/>
|
|
<area shape="rect" href="PGetMusrFTOptionsDialog_8h.html" title="Dialog for configuring musrFT command-line options." alt="" coords="781,115,976,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,44,1731,69,1366,91,995,118,991,118,991,113,994,112,1366,85,1731,64,2275,38"/>
|
|
<area shape="rect" href="PMusrEditAbout_8h.html" title="About dialog for the musredit application." alt="" coords="5355,115,5484,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2463,36,3012,42,3838,55,4696,78,5060,94,5340,112,5339,118,5060,99,4696,83,3838,60,3012,47,2463,41"/>
|
|
<area shape="rect" href="PMsr2DataDialog_8h.html" title="Dialog interface for the msr2data batch processing tool." alt="" coords="570,115,707,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2275,41,2009,47,1626,60,1180,83,950,98,725,118,722,118,722,113,725,112,950,93,1180,77,1626,55,2009,42,2275,36"/>
|
|
<area shape="poly" title=" " alt="" coords="1829,145,1777,188,1749,208,1726,221,1656,234,1536,246,1207,264,860,275,613,281,613,275,859,270,1207,258,1536,241,1655,229,1724,216,1746,204,1774,184,1826,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1797,136,1684,145,1037,193,939,201,938,196,1037,188,1684,140,1796,131"/>
|
|
<area shape="poly" title=" " alt="" coords="1841,144,1833,176,1827,175,1836,143"/>
|
|
<area shape="poly" title=" " alt="" coords="1860,141,1905,179,1902,183,1857,145"/>
|
|
<area shape="poly" title=" " alt="" coords="1879,141,1994,182,1992,188,1877,146"/>
|
|
<area shape="poly" title=" " alt="" coords="1814,146,1719,187,1717,182,1811,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1889,137,2105,184,2104,189,1887,143"/>
|
|
<area shape="poly" title=" " alt="" coords="1888,133,2050,153,2263,188,2262,193,2049,158,1887,138"/>
|
|
<area shape="rect" title=" " alt="" coords="1435,191,1506,218"/>
|
|
<area shape="poly" title=" " alt="" coords="1797,140,1677,162,1522,193,1521,188,1676,156,1796,135"/>
|
|
<area shape="poly" title=" " alt="" coords="1797,137,1684,145,1015,182,546,204,546,198,1014,177,1684,140,1796,131"/>
|
|
<area shape="poly" title=" " alt="" coords="505,217,542,253,538,257,502,221"/>
|
|
<area shape="poly" title=" " alt="" coords="380,141,454,181,452,185,378,146"/>
|
|
<area shape="poly" title=" " alt="" coords="1144,145,1109,181,1105,178,1140,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1400,145,1378,179,1373,176,1396,142"/>
|
|
<area shape="poly" title=" " alt="" coords="1349,146,1135,194,1133,189,1348,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1455,141,1622,186,1620,191,1454,146"/>
|
|
<area shape="poly" title=" " alt="" coords="1420,141,1451,177,1447,181,1416,145"/>
|
|
<area shape="poly" title=" " alt="" coords="1587,144,1580,176,1575,175,1582,143"/>
|
|
<area shape="poly" title=" " alt="" coords="1548,146,1415,188,1413,183,1546,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1504,145,1135,198,1134,193,1504,140"/>
|
|
<area shape="poly" title=" " alt="" coords="1605,141,1649,179,1646,183,1602,145"/>
|
|
<area shape="poly" title=" " alt="" coords="1568,145,1505,185,1502,180,1565,141"/>
|
|
<area shape="poly" title=" " alt="" coords="493,143,493,175,488,175,488,143"/>
|
|
<area shape="poly" title=" " alt="" coords="881,143,881,175,876,175,876,143"/>
|
|
<area shape="poly" title=" " alt="" coords="916,141,1035,183,1033,188,914,146"/>
|
|
<area shape="poly" title=" " alt="" coords="635,144,580,253,575,251,630,142"/>
|
|
<area shape="poly" title=" " alt="" coords="708,139,1034,192,1033,198,707,144"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="PTextEdit_8cpp_source.html">Go to the source code of this file.</a></p>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Implementation of the main window class for musredit. </p>
|
|
<p>This file provides the complete implementation of the <a class="el" href="classPTextEdit.html" title="Main window class for the musredit application.">PTextEdit</a> class which serves as the main application window for musredit. It handles all user interactions including file operations, text editing, menu and toolbar actions, dialog management, external process execution, and integration with the musrfit analysis framework.</p>
|
|
<p><b>Key Implementation Areas:</b></p>
|
|
<ul>
|
|
<li><b>Menu and Toolbar Setup</b>: Configures all application menus (File, Edit, Text, Musr, Help) with appropriate icons, shortcuts, and signal-slot connections. Theme-aware icon selection supports both light and dark modes.</li>
|
|
<li><b>File Operations</b>: Implements new file creation, opening, saving, closing, printing, and recent file tracking. Includes save-before-close prompts and file system change monitoring.</li>
|
|
<li><b>Text Editing</b>: Provides comprehensive editing operations including undo/ redo, cut/copy/paste, select all, comment/uncomment, and font management.</li>
|
|
<li><b>Find and Replace</b>: Implements full-featured search with options for case sensitivity, whole word matching, search direction, and scope (selection or entire document). Replace operations support interactive confirmation or batch processing.</li>
|
|
<li><b>MSR File Block Insertion</b>: Delegates to <a class="el" href="classPSubTextEdit.html" title="Enhanced text editor for msr file editing with block insertion support.">PSubTextEdit</a> for dialog-based insertion of all msr file block types (FITPARAMETER, THEORY, FUNCTIONS, RUN, COMMANDS, FOURIER, PLOT, STATISTIC).</li>
|
|
<li><b>External Tool Integration</b>: Spawns and manages external processes:<ul>
|
|
<li>musrfit: Fitting engine execution with output capture</li>
|
|
<li>musrview: Data visualization</li>
|
|
<li>musrWiz: Interactive msr file creation wizard</li>
|
|
<li>musrT0: Timing parameter determination</li>
|
|
<li>musrStep: Step size configuration</li>
|
|
<li>msr2data: Batch data conversion</li>
|
|
<li>mupp: Parameter evolution plotting</li>
|
|
</ul>
|
|
</li>
|
|
<li><b>Tab Management</b>: Implements multi-document interface with tab creation, switching, reordering, and closing. Maintains filename associations and tracks modification state for each tab.</li>
|
|
<li><b>File System Monitoring</b>: Uses QFileSystemWatcher to detect external changes to open files, prompting user to reload when modifications occur.</li>
|
|
<li><b>Theme Detection</b>: Automatically detects system theme (light/dark) and selects appropriate icon variants for optimal visibility.</li>
|
|
<li><b>Configuration Persistence</b>: Loads and saves application settings via <a class="el" href="classPAdmin.html" title="Central administration class for musredit configuration management.">PAdmin</a> including fonts, window dimensions, default paths, recent files, and theme preferences.</li>
|
|
</ul>
|
|
<dl class="section author"><dt>Author</dt><dd>Andreas Suter </dd></dl>
|
|
<dl class="section date"><dt>Date</dt><dd>2010-2026</dd></dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="PTextEdit_8h.html" title="Main window class for the musredit application.">PTextEdit.h</a> for class interface documentation </dd>
|
|
<dd>
|
|
<a class="el" href="classPSubTextEdit.html" title="Enhanced text editor for msr file editing with block insertion support.">PSubTextEdit</a> for the text editor widget implementation </dd>
|
|
<dd>
|
|
<a class="el" href="classPAdmin.html" title="Central administration class for musredit configuration management.">PAdmin</a> for configuration management </dd></dl>
|
|
|
|
<p class="definition">Definition in file <a class="el" href="PTextEdit_8cpp_source.html">PTextEdit.cpp</a>.</p>
|
|
</div></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <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>
|