GpgFrontend-Doxygen/docs/html/classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html

642 lines
38 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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GpgFrontend Project: GpgFrontend::UI::PlainTextEditorPage 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.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">GpgFrontend Project
</div>
<div id="projectbrief">A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<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>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="summary">
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">GpgFrontend::UI::PlainTextEditorPage Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Class for handling a single tab of the tabwidget.
<a href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="PlainTextEditorPage_8h_source.html">PlainTextEditorPage.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for GpgFrontend::UI::PlainTextEditorPage:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1UI_1_1PlainTextEditorPage__inherit__graph.png" border="0" usemap="#GpgFrontend_1_1UI_1_1PlainTextEditorPage_inherit__map" alt="Inheritance graph"/></div>
<map name="GpgFrontend_1_1UI_1_1PlainTextEditorPage_inherit__map" id="GpgFrontend_1_1UI_1_1PlainTextEditorPage_inherit__map">
<area shape="rect" title="Class for handling a single tab of the tabwidget." alt="" coords="5,131,208,545"/>
<area shape="rect" title=" " alt="" coords="67,5,146,83"/>
</map>
</div>
<div class="dynheader">
Collaboration diagram for GpgFrontend::UI::PlainTextEditorPage:</div>
<div class="dyncontent">
<div class="center"><img src="classGpgFrontend_1_1UI_1_1PlainTextEditorPage__coll__graph.png" border="0" usemap="#GpgFrontend_1_1UI_1_1PlainTextEditorPage_coll__map" alt="Collaboration graph"/></div>
<map name="GpgFrontend_1_1UI_1_1PlainTextEditorPage_coll__map" id="GpgFrontend_1_1UI_1_1PlainTextEditorPage_coll__map">
<area shape="rect" title="Class for handling a single tab of the tabwidget." alt="" coords="50,469,253,840"/>
<area shape="rect" title=" " alt="" coords="5,307,84,385"/>
<area shape="rect" title="STL class." alt="" coords="108,307,195,385"/>
<area shape="rect" title="STL class." alt="" coords="81,145,219,237"/>
<area shape="rect" title=" " alt="" coords="237,300,385,392"/>
<area shape="rect" title="STL class." alt="" coords="243,153,401,230"/>
<area shape="rect" title=" " alt="" coords="303,5,341,83"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:afd3749488fdd3d1c53446fb8c833f3f4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#afd3749488fdd3d1c53446fb8c833f3f4">SignalUIBytesDisplayed</a> ()</td></tr>
<tr class="memdesc:afd3749488fdd3d1c53446fb8c833f3f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">this signal is emitted when the bytes has been append in texteditor. <a href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#afd3749488fdd3d1c53446fb8c833f3f4">More...</a><br /></td></tr>
<tr class="separator:afd3749488fdd3d1c53446fb8c833f3f4"><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:a8759224e57d4c322933ed3df6d96e5f1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a8759224e57d4c322933ed3df6d96e5f1">PlainTextEditorPage</a> (QString file_path={}, QWidget *parent=nullptr)</td></tr>
<tr class="separator:a8759224e57d4c322933ed3df6d96e5f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff81f0f98a399fa55b6b0ebf2230d4cf"><td class="memItemLeft" align="right" valign="top">const QString &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#aff81f0f98a399fa55b6b0ebf2230d4cf">GetFilePath</a> () const</td></tr>
<tr class="separator:aff81f0f98a399fa55b6b0ebf2230d4cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9e82690824c82e7628ba4ace9d6e2fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#aa9e82690824c82e7628ba4ace9d6e2fe">SetFilePath</a> (const QString &amp;filePath)</td></tr>
<tr class="separator:aa9e82690824c82e7628ba4ace9d6e2fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6218e6e12bdba0228e4ab4276f7fed7a"><td class="memItemLeft" align="right" valign="top">QPlainTextEdit *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a6218e6e12bdba0228e4ab4276f7fed7a">GetTextPage</a> ()</td></tr>
<tr class="separator:a6218e6e12bdba0228e4ab4276f7fed7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5dfdfd48ef64cc46e524ec70a22fe3a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#af5dfdfd48ef64cc46e524ec70a22fe3a">ShowNotificationWidget</a> (QWidget *widget, const char *className)</td></tr>
<tr class="separator:af5dfdfd48ef64cc46e524ec70a22fe3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee4f46e54f29da671838ed232e526700"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#aee4f46e54f29da671838ed232e526700">CloseNoteByClass</a> (const char *className)</td></tr>
<tr class="separator:aee4f46e54f29da671838ed232e526700"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3404f71f0f93cd7f5cb64d5d56624d7"><td class="memItemLeft" align="right" valign="top"><a id="ac3404f71f0f93cd7f5cb64d5d56624d7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>ReadFile</b> ()</td></tr>
<tr class="separator:ac3404f71f0f93cd7f5cb64d5d56624d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1902b063decfeebe7f0908cbfe618ce"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#ac1902b063decfeebe7f0908cbfe618ce">ReadDone</a> () const</td></tr>
<tr class="separator:ac1902b063decfeebe7f0908cbfe618ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c1c0174ed1ed9c5a90739eafc5c3267"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a1c1c0174ed1ed9c5a90739eafc5c3267">WillCharsetChange</a> () const</td></tr>
<tr class="memdesc:a1c1c0174ed1ed9c5a90739eafc5c3267"><td class="mdescLeft">&#160;</td><td class="mdescRight">detect if the charset of the file will change <a href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a1c1c0174ed1ed9c5a90739eafc5c3267">More...</a><br /></td></tr>
<tr class="separator:a1c1c0174ed1ed9c5a90739eafc5c3267"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29b3d63ba9590e775f42c779c76102e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a29b3d63ba9590e775f42c779c76102e5">NotifyFileSaved</a> ()</td></tr>
<tr class="memdesc:a29b3d63ba9590e775f42c779c76102e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">notify the user that the file has been saved. <a href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a29b3d63ba9590e775f42c779c76102e5">More...</a><br /></td></tr>
<tr class="separator:a29b3d63ba9590e775f42c779c76102e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr class="memitem:a45267bcfc8fc83851894061c0fe2a9c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a45267bcfc8fc83851894061c0fe2a9c2">slot_format_gpg_header</a> ()</td></tr>
<tr class="separator:a45267bcfc8fc83851894061c0fe2a9c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a184985104f23da8fdf2b9aaf7b27405b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a184985104f23da8fdf2b9aaf7b27405b">slot_insert_text</a> (QByteArray bytes_data)</td></tr>
<tr class="separator:a184985104f23da8fdf2b9aaf7b27405b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a14b7431a786ce59e98576e3680cb9a58"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a14b7431a786ce59e98576e3680cb9a58">detect_encoding</a> (const std::string &amp;data)</td></tr>
<tr class="separator:a14b7431a786ce59e98576e3680cb9a58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af08be6a1eaec76403b12dc6e42df546c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#af08be6a1eaec76403b12dc6e42df546c">detect_cr_lf</a> (const std::string &amp;data)</td></tr>
<tr class="separator:af08be6a1eaec76403b12dc6e42df546c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a0e0a36396ea55f5dbe6197284cf98192"><td class="memItemLeft" align="right" valign="top"><a id="a0e0a36396ea55f5dbe6197284cf98192"></a>
std::shared_ptr&lt; Ui_PlainTextEditor &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ui_</b></td></tr>
<tr class="separator:a0e0a36396ea55f5dbe6197284cf98192"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae867b6329fcb1978479a9d70f7b017db"><td class="memItemLeft" align="right" valign="top"><a id="ae867b6329fcb1978479a9d70f7b017db"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#ae867b6329fcb1978479a9d70f7b017db">full_file_path_</a></td></tr>
<tr class="memdesc:ae867b6329fcb1978479a9d70f7b017db"><td class="mdescLeft">&#160;</td><td class="mdescRight">The path to the file handled in the tab. <br /></td></tr>
<tr class="separator:ae867b6329fcb1978479a9d70f7b017db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f94e9ef7889a169bda5a47b7f657358"><td class="memItemLeft" align="right" valign="top"><a id="a4f94e9ef7889a169bda5a47b7f657358"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a4f94e9ef7889a169bda5a47b7f657358">sign_marked_</a> {}</td></tr>
<tr class="memdesc:a4f94e9ef7889a169bda5a47b7f657358"><td class="mdescLeft">&#160;</td><td class="mdescRight">true, if the signed header is marked, false if not <br /></td></tr>
<tr class="separator:a4f94e9ef7889a169bda5a47b7f657358"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b8ce290e1b949b56734227e8d42adba"><td class="memItemLeft" align="right" valign="top"><a id="a5b8ce290e1b949b56734227e8d42adba"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>read_done_</b> = false</td></tr>
<tr class="separator:a5b8ce290e1b949b56734227e8d42adba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43d23c1bcac73b772aa0154151538bbf"><td class="memItemLeft" align="right" valign="top"><a id="a43d23c1bcac73b772aa0154151538bbf"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>binary_mode_</b> = false</td></tr>
<tr class="separator:a43d23c1bcac73b772aa0154151538bbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a010bae8d8d967c8cc81cd42547de5dcb"><td class="memItemLeft" align="right" valign="top"><a id="a010bae8d8d967c8cc81cd42547de5dcb"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>read_bytes_</b> = 0</td></tr>
<tr class="separator:a010bae8d8d967c8cc81cd42547de5dcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec4ec03dbf1363d1517aa37d160c31e7"><td class="memItemLeft" align="right" valign="top"><a id="aec4ec03dbf1363d1517aa37d160c31e7"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>charset_name_</b></td></tr>
<tr class="separator:aec4ec03dbf1363d1517aa37d160c31e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1108b77925647d1a930e5252fa956b8"><td class="memItemLeft" align="right" valign="top"><a id="ab1108b77925647d1a930e5252fa956b8"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>language_name_</b></td></tr>
<tr class="separator:ab1108b77925647d1a930e5252fa956b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae756fc49724212d8d9937601a48b436b"><td class="memItemLeft" align="right" valign="top"><a id="ae756fc49724212d8d9937601a48b436b"></a>
int32_t&#160;</td><td class="memItemRight" valign="bottom"><b>charset_confidence_</b> {}</td></tr>
<tr class="separator:ae756fc49724212d8d9937601a48b436b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e64bcd36cf90b0eec2f05361c6c6fb3"><td class="memItemLeft" align="right" valign="top"><a id="a0e64bcd36cf90b0eec2f05361c6c6fb3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_crlf_</b> = false</td></tr>
<tr class="separator:a0e64bcd36cf90b0eec2f05361c6c6fb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class for handling a single tab of the tabwidget. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8759224e57d4c322933ed3df6d96e5f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8759224e57d4c322933ed3df6d96e5f1">&#9670;&nbsp;</a></span>PlainTextEditorPage()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">GpgFrontend::UI::PlainTextEditorPage::PlainTextEditorPage </td>
<td>(</td>
<td class="paramtype">QString&#160;</td>
<td class="paramname"><em>file_path</em> = <code>{}</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QWidget *&#160;</td>
<td class="paramname"><em>parent</em> = <code>nullptr</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Add layout and add plaintextedit</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">file_path</td><td>Path of the file handled in this tab </td></tr>
<tr><td class="paramname">parent</td><td>Pointer to the parent widget </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1UI_1_1SettingsObject.html#a5ddcc2e0bc6d4c2f88e6e00371d4792e">GpgFrontend::UI::SettingsObject::Check()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#ae867b6329fcb1978479a9d70f7b017db">full_file_path_</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aee4f46e54f29da671838ed232e526700"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee4f46e54f29da671838ed232e526700">&#9670;&nbsp;</a></span>CloseNoteByClass()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::CloseNoteByClass </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>className</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Hide all widgets with the given className</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">className</td><td>The classname of the widgets to hide </td></tr>
</table>
</dd>
</dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#ae28089efbd236708601470f30f26faaa">GpgFrontend::UI::MainWindow::slot_find()</a>.</p>
</div>
</div>
<a id="af08be6a1eaec76403b12dc6e42df546c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af08be6a1eaec76403b12dc6e42df546c">&#9670;&nbsp;</a></span>detect_cr_lf()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::detect_cr_lf </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>data</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a184985104f23da8fdf2b9aaf7b27405b">slot_insert_text()</a>.</p>
</div>
</div>
<a id="a14b7431a786ce59e98576e3680cb9a58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14b7431a786ce59e98576e3680cb9a58">&#9670;&nbsp;</a></span>detect_encoding()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::detect_encoding </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>data</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1CharsetOperator.html#a5a444a0fbd508f6af6a56f4151c21c1f">GpgFrontend::CharsetOperator::Detect()</a>.</p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a184985104f23da8fdf2b9aaf7b27405b">slot_insert_text()</a>.</p>
</div>
</div>
<a id="aff81f0f98a399fa55b6b0ebf2230d4cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff81f0f98a399fa55b6b0ebf2230d4cf">&#9670;&nbsp;</a></span>GetFilePath()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const QString &amp; GpgFrontend::UI::PlainTextEditorPage::GetFilePath </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the filepath of the currently activated tab. </p>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#ae867b6329fcb1978479a9d70f7b017db">full_file_path_</a>.</p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a8fad090a19479a9fe89432300cca2b6c">GpgFrontend::UI::TextEdit::maybe_save_current_tab()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#ace0b8f4c161db9f4f5db5ecbfd7a91c0">GpgFrontend::UI::TextEdit::SlotSave()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a02fa44ba0c56f3f6ae125f8490faf254">GpgFrontend::UI::TextEdit::SlotSaveAs()</a>.</p>
</div>
</div>
<a id="a6218e6e12bdba0228e4ab4276f7fed7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6218e6e12bdba0228e4ab4276f7fed7a">&#9670;&nbsp;</a></span>GetTextPage()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QPlainTextEdit * GpgFrontend::UI::PlainTextEditorPage::GetTextPage </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return pointer tp the textedit of the currently activated tab. </p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a72ed46454c833adb038c36d8d4322d18">GpgFrontend::UI::TextEdit::LoadFile()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a8fad090a19479a9fe89432300cca2b6c">GpgFrontend::UI::TextEdit::maybe_save_current_tab()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a66b6f6633e7ac71e5fe8b7814a81cadf">GpgFrontend::UI::TextEdit::save_file()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1FindWidget.html#a0c531f2c673caed29225a323e750205f">GpgFrontend::UI::FindWidget::set_background()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a821247d738457c4ee046162aad6728f9">GpgFrontend::UI::MainWindow::slot_add_pgp_header()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a76bf3784d751db78ed13bd9962e14472">GpgFrontend::UI::MainWindow::slot_append_selected_keys()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#aea9274389c3b049793fe5aa5a6adf63c">GpgFrontend::UI::MainWindow::slot_clean_double_line_breaks()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a7f5a88922d06bee977335fb4b5f1d86d">GpgFrontend::UI::MainWindow::slot_cut_pgp_header()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#ae2d89e2cc6c99ff0e16b396d2381f904">GpgFrontend::UI::MainWindow::slot_decrypt()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a1d61ea803e6c825bd54f42ba9ae85919">GpgFrontend::UI::MainWindow::slot_decrypt_verify()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#ae11d01211c2914ecc148e13dd7de506e">GpgFrontend::UI::MainWindow::slot_encrypt()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a304efe91afa31b32725caa00c27475a4">GpgFrontend::UI::MainWindow::slot_encrypt_sign()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a55926649e28a96318b89afba01b966bf">GpgFrontend::UI::MainWindow::slot_import_key_from_edit()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a184985104f23da8fdf2b9aaf7b27405b">slot_insert_text()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#a3f3d03b0ec22385bee559fbd2aeb881b">GpgFrontend::UI::MainWindow::slot_sign()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#aa9c986dd95984811479ea93230c74b5d">GpgFrontend::UI::MainWindow::slot_verify()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#aa21659aa7acba98dfd6286d69e00ab9b">GpgFrontend::UI::TextEdit::SlotCloseTab()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a3599bd01636a873cf3437ab6b9d38780">GpgFrontend::UI::TextEdit::SlotCopy()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#ae1e710c6722910b8d35df97aaabb3162">GpgFrontend::UI::TextEdit::SlotCut()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#af466ec2b8ab3f695d206efc0574bbe20">GpgFrontend::UI::TextEdit::SlotFillTextEditWithText()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#aa2230418dc8f72c400f5a90082a983c9">GpgFrontend::UI::TextEdit::SlotPaste()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#adca2bbfa746b5598f2a4f74026b84224">GpgFrontend::UI::TextEdit::SlotPrint()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#ae2b3bf422789d56087face98b6a9e929">GpgFrontend::UI::TextEdit::SlotRedo()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a6c814253dfc061bfdae0fa71c6196c55">GpgFrontend::UI::TextEdit::SlotSelectAll()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a4a81e69f6dc74ea649ca9a2358342fd5">GpgFrontend::UI::TextEdit::SlotUndo()</a>.</p>
</div>
</div>
<a id="a29b3d63ba9590e775f42c779c76102e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29b3d63ba9590e775f42c779c76102e5">&#9670;&nbsp;</a></span>NotifyFileSaved()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::NotifyFileSaved </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>notify the user that the file has been saved. </p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a66b6f6633e7ac71e5fe8b7814a81cadf">GpgFrontend::UI::TextEdit::save_file()</a>.</p>
</div>
</div>
<a id="ac1902b063decfeebe7f0908cbfe618ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1902b063decfeebe7f0908cbfe618ce">&#9670;&nbsp;</a></span>ReadDone()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool GpgFrontend::UI::PlainTextEditorPage::ReadDone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a8fad090a19479a9fe89432300cca2b6c">GpgFrontend::UI::TextEdit::maybe_save_current_tab()</a>.</p>
</div>
</div>
<a id="aa9e82690824c82e7628ba4ace9d6e2fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9e82690824c82e7628ba4ace9d6e2fe">&#9670;&nbsp;</a></span>SetFilePath()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::SetFilePath </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>filePath</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set filepath of currently activated tab.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filePath</td><td>The path to be set </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#ae867b6329fcb1978479a9d70f7b017db">full_file_path_</a>.</p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a72ed46454c833adb038c36d8d4322d18">GpgFrontend::UI::TextEdit::LoadFile()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a66b6f6633e7ac71e5fe8b7814a81cadf">GpgFrontend::UI::TextEdit::save_file()</a>.</p>
</div>
</div>
<a id="af5dfdfd48ef64cc46e524ec70a22fe3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5dfdfd48ef64cc46e524ec70a22fe3a">&#9670;&nbsp;</a></span>ShowNotificationWidget()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::ShowNotificationWidget </td>
<td>(</td>
<td class="paramtype">QWidget *&#160;</td>
<td class="paramname"><em>widget</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>className</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Show additional widget at buttom of currently active tab</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">widget</td><td>The widget to be added </td></tr>
<tr><td class="paramname">className</td><td>The name to handle the added widget </td></tr>
</table>
</dd>
</dl>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1MainWindow.html#ae28089efbd236708601470f30f26faaa">GpgFrontend::UI::MainWindow::slot_find()</a>.</p>
</div>
</div>
<a id="afd3749488fdd3d1c53446fb8c833f3f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd3749488fdd3d1c53446fb8c833f3f4">&#9670;&nbsp;</a></span>SignalUIBytesDisplayed</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::SignalUIBytesDisplayed </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>this signal is emitted when the bytes has been append in texteditor. </p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a184985104f23da8fdf2b9aaf7b27405b">slot_insert_text()</a>.</p>
</div>
</div>
<a id="a45267bcfc8fc83851894061c0fe2a9c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45267bcfc8fc83851894061c0fe2a9c2">&#9670;&nbsp;</a></span>slot_format_gpg_header</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::slot_format_gpg_header </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Format the gpg header in another font-style </p>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a4f94e9ef7889a169bda5a47b7f657358">sign_marked_</a>.</p>
</div>
</div>
<a id="a184985104f23da8fdf2b9aaf7b27405b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a184985104f23da8fdf2b9aaf7b27405b">&#9670;&nbsp;</a></span>slot_insert_text</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void GpgFrontend::UI::PlainTextEditorPage::slot_insert_text </td>
<td>(</td>
<td class="paramtype">QByteArray&#160;</td>
<td class="paramname"><em>bytes_data</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td></td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#af08be6a1eaec76403b12dc6e42df546c">detect_cr_lf()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a14b7431a786ce59e98576e3680cb9a58">detect_encoding()</a>, <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a6218e6e12bdba0228e4ab4276f7fed7a">GetTextPage()</a>, and <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#afd3749488fdd3d1c53446fb8c833f3f4">SignalUIBytesDisplayed()</a>.</p>
</div>
</div>
<a id="a1c1c0174ed1ed9c5a90739eafc5c3267"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c1c0174ed1ed9c5a90739eafc5c3267">&#9670;&nbsp;</a></span>WillCharsetChange()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool GpgFrontend::UI::PlainTextEditorPage::WillCharsetChange </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>detect if the charset of the file will change </p>
<p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1TextEdit.html#a66b6f6633e7ac71e5fe8b7814a81cadf">GpgFrontend::UI::TextEdit::save_file()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/ui/widgets/<a class="el" href="PlainTextEditorPage_8h_source.html">PlainTextEditorPage.h</a></li>
<li>src/ui/widgets/PlainTextEditorPage.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a></li><li class="navelem"><a class="el" href="namespaceGpgFrontend_1_1UI.html">UI</a></li><li class="navelem"><a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html">PlainTextEditorPage</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
</ul>
</div>
</body>
</html>