GpgFrontend-Doxygen/docs/html/InfoBoardWidget_8h_source.html

171 lines
18 KiB
HTML
Raw Permalink Normal View History

2022-05-08 19:59:26 +00:00
<!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"/>
2022-05-08 22:01:23 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
2022-05-08 19:59:26 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GpgFrontend Project: src/ui/widgets/InfoBoardWidget.h 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>
<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>
2022-05-08 22:01:23 +00:00
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
2022-05-08 19:59:26 +00:00
<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.9.1 -->
2022-05-08 19:59:26 +00:00
<script type="text/javascript">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
2022-05-08 19:59:26 +00:00
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2022-05-08 19:59:26 +00:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-05-08 22:01:23 +00:00
/* @license-end */</script>
2022-05-08 19:59:26 +00:00
<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">
2022-05-08 22:01:23 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2022-05-08 19:59:26 +00:00
$(document).ready(function(){initNavTree('InfoBoardWidget_8h_source.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">
2022-05-08 22:01:23 +00:00
<div class="headertitle">
<div class="title">InfoBoardWidget.h</div> </div>
2022-05-08 19:59:26 +00:00
</div><!--header-->
<div class="contents">
2022-05-08 22:01:23 +00:00
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &quot;PlainTextEditorPage.h&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &quot;core/function/result_analyse/GpgVerifyResultAnalyse.h&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &quot;ui/dialog/details/VerifyDetailsDialog.h&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">class </span>Ui_InfoBoard;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceGpgFrontend_1_1UI.html">GpgFrontend::UI</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="namespaceGpgFrontend_1_1UI.html#acbaebd342a317b1f067942e5144bb00d"> 42</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; INFO_ERROR_OK = 0,</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; INFO_ERROR_WARN = 1,</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; INFO_ERROR_CRITICAL = 2,</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; INFO_ERROR_NEUTRAL = 3,</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;} <a class="code" href="namespaceGpgFrontend_1_1UI.html#acbaebd342a317b1f067942e5144bb00d">InfoBoardStatus</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html"> 52</a></span>&#160;<span class="keyword">class </span><a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html">InfoBoardWidget</a> : <span class="keyword">public</span> QWidget {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; Q_OBJECT</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#adeef521a8838bf2a1692c25d9b108010">InfoBoardWidget</a>(QWidget* parent);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a4fd6f91eb435feb41ae93e44485646ab">AssociateTextEdit</a>(QTextEdit* edit);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#adfa4acd435d2ec29f951f4e7e6a43f38">AssociateTabWidget</a>(QTabWidget* tab);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a456f15315a03107f7757d84362c1af71">AddOptionalAction</a>(<span class="keyword">const</span> QString&amp; name,</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span>()&gt;&amp; action);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a7d7504339221bd680fb18698dd829b32">ResetOptionActionsMenu</a>();</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#ac936cfc8e1b3af65d0d71b74fb3f0b02">SetInfoBoard</a>(<span class="keyword">const</span> QString&amp; text,</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <a class="code" href="namespaceGpgFrontend_1_1UI.html#acbaebd342a317b1f067942e5144bb00d">GpgFrontend::UI::InfoBoardStatus</a> verify_label_status);</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">public</span> slots:</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordtype">void</span> SlotReset();</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a68f984815100f4ce281b9794f193e516">SlotRefresh</a>(<span class="keyword">const</span> QString&amp; text,</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="code" href="namespaceGpgFrontend_1_1UI.html#acbaebd342a317b1f067942e5144bb00d">GpgFrontend::UI::InfoBoardStatus</a> status);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keyword">private</span> slots:</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordtype">void</span> slot_copy();</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordtype">void</span> slot_save();</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; std::shared_ptr&lt;Ui_InfoBoard&gt; ui_; </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a6380776ea1bf9a020370589e1e20efd3"> 132</a></span>&#160; QTextEdit* <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a6380776ea1bf9a020370589e1e20efd3">m_text_page_</a>{</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">nullptr</span>}; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; QTabWidget* m_tab_widget_{<span class="keyword">nullptr</span>}; </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a852c1fe10c7d3153a2146bcea4dbe9ad">delete_widgets_in_layout</a>(QLayout* layout, <span class="keywordtype">int</span> start_index = 0);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;};</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;} <span class="comment">// namespace GpgFrontend::UI</span></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html">GpgFrontend::UI::InfoBoardWidget</a></div><div class="ttdoc">Class for handling the verify label shown at bottom of a textedit-page.</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.h:52</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_a456f15315a03107f7757d84362c1af71"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a456f15315a03107f7757d84362c1af71">GpgFrontend::UI::InfoBoardWidget::AddOptionalAction</a></div><div class="ttdeci">void AddOptionalAction(const QString &amp;name, const std::function&lt; void()&gt; &amp;action)</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.cpp:116</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_a4fd6f91eb435feb41ae93e44485646ab"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a4fd6f91eb435feb41ae93e44485646ab">GpgFrontend::UI::InfoBoardWidget::AssociateTextEdit</a></div><div class="ttdeci">void AssociateTextEdit(QTextEdit *edit)</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.cpp:97</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_a6380776ea1bf9a020370589e1e20efd3"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a6380776ea1bf9a020370589e1e20efd3">GpgFrontend::UI::InfoBoardWidget::m_text_page_</a></div><div class="ttdeci">QTextEdit * m_text_page_</div><div class="ttdoc">TextEdit associated to the notification.</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.h:132</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_a68f984815100f4ce281b9794f193e516"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a68f984815100f4ce281b9794f193e516">GpgFrontend::UI::InfoBoardWidget::SlotRefresh</a></div><div class="ttdeci">void SlotRefresh(const QString &amp;text, GpgFrontend::UI::InfoBoardStatus status)</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.cpp:91</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_a7d7504339221bd680fb18698dd829b32"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a7d7504339221bd680fb18698dd829b32">GpgFrontend::UI::InfoBoardWidget::ResetOptionActionsMenu</a></div><div class="ttdeci">void ResetOptionActionsMenu()</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.cpp:132</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_a852c1fe10c7d3153a2146bcea4dbe9ad"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#a852c1fe10c7d3153a2146bcea4dbe9ad">GpgFrontend::UI::InfoBoardWidget::delete_widgets_in_layout</a></div><div class="ttdeci">void delete_widgets_in_layout(QLayout *layout, int start_index=0)</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.cpp:146</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_ac936cfc8e1b3af65d0d71b74fb3f0b02"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#ac936cfc8e1b3af65d0d71b74fb3f0b02">GpgFrontend::UI::InfoBoardWidget::SetInfoBoard</a></div><div class="ttdeci">void SetInfoBoard(const QString &amp;text, GpgFrontend::UI::InfoBoardStatus verify_label_status)</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.cpp:61</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_adeef521a8838bf2a1692c25d9b108010"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#adeef521a8838bf2a1692c25d9b108010">GpgFrontend::UI::InfoBoardWidget::InfoBoardWidget</a></div><div class="ttdeci">InfoBoardWidget(QWidget *parent)</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.cpp:39</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1InfoBoardWidget_html_adfa4acd435d2ec29f951f4e7e6a43f38"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1InfoBoardWidget.html#adfa4acd435d2ec29f951f4e7e6a43f38">GpgFrontend::UI::InfoBoardWidget::AssociateTabWidget</a></div><div class="ttdeci">void AssociateTabWidget(QTabWidget *tab)</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.cpp:106</div></div>
<div class="ttc" id="anamespaceGpgFrontend_1_1UI_html"><div class="ttname"><a href="namespaceGpgFrontend_1_1UI.html">GpgFrontend::UI</a></div><div class="ttdef"><b>Definition:</b> FileReadTask.cpp:31</div></div>
<div class="ttc" id="anamespaceGpgFrontend_1_1UI_html_acbaebd342a317b1f067942e5144bb00d"><div class="ttname"><a href="namespaceGpgFrontend_1_1UI.html#acbaebd342a317b1f067942e5144bb00d">GpgFrontend::UI::InfoBoardStatus</a></div><div class="ttdeci">InfoBoardStatus</div><div class="ttdef"><b>Definition:</b> InfoBoardWidget.h:42</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
2022-05-08 19:59:26 +00:00
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_da5c6b39c0a2f54e57df6799511cd3ab.html">ui</a></li><li class="navelem"><a class="el" href="dir_f3911b9629b0e27ea480d06d47573cbf.html">widgets</a></li><li class="navelem"><b>InfoBoardWidget.h</b></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
2022-05-08 19:59:26 +00:00
</ul>
</div>
</body>
</html>