GpgFrontend-Doxygen/docs/html/FilePage_8h_source.html
2022-05-08 22:01:23 +00:00

195 lines
20 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: src/ui/widgets/FilePage.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>
<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('FilePage_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">
<div class="headertitle">
<div class="title">FilePage.h</div> </div>
</div><!--header-->
<div class="contents">
<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">#ifndef GPGFRONTEND_FILEPAGE_H</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#define GPGFRONTEND_FILEPAGE_H</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;ui/GpgFrontendUI.h&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &quot;ui/widgets/InfoBoardWidget.h&quot;</span></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">class </span>Ui_FilePage;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceGpgFrontend_1_1UI.html">GpgFrontend::UI</a> {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1FilePage.html"> 45</a></span>&#160;<span class="keyword">class </span><a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html">FilePage</a> : <span class="keyword">public</span> QWidget {</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; Q_OBJECT</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#a48fb14a3296f19f9b1c3b9b48c3a1bf3">FilePage</a>(QWidget* parent = <span class="keyword">nullptr</span>);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; [[nodiscard]] QString <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#a3c114d414b96d3e4b2ca833ab6a48605">GetSelected</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keyword">public</span> slots:</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordtype">void</span> SlotGoPath();</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; signals:</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#aec462d16a2097024a4ced24012b905a7">SignalPathChanged</a>(<span class="keyword">const</span> QString&amp; path);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#a301c5c7747ad251b14c490d58b5d678f">SignalRefreshInfoBoard</a>(<span class="keyword">const</span> QString&amp; text,</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="namespaceGpgFrontend_1_1UI.html#acbaebd342a317b1f067942e5144bb00d">InfoBoardStatus</a> verify_label_status);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keyword">private</span> slots:</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#a676917817d6f519e043742d1d87f97f1">slot_file_tree_view_item_clicked</a>(<span class="keyword">const</span> QModelIndex&amp; index);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#ad3c54320bdafbbb2c06a20d6c7dea9d6">slot_file_tree_view_item_double_clicked</a>(<span class="keyword">const</span> QModelIndex&amp; index);</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> slot_up_level();</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordtype">void</span> slot_open_item();</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordtype">void</span> slot_rename_item();</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordtype">void</span> slot_delete_item();</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordtype">void</span> slot_calculate_hash();</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordtype">void</span> slot_mkdir();</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordtype">void</span> slot_create_empty_file();</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#a250b1950f874c1d11549cd5c0ea9693f">slot_compress_files</a>();</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#aea388ad7876e287f71e93085e6715495">keyPressEvent</a>(QKeyEvent* event) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#aa80dc1b74a0ec65d06e5dffaa21cc785">onCustomContextMenu</a>(<span class="keyword">const</span> QPoint&amp; point);</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#a73e4b62f4926b1aeb3f2183a1d05d871">create_popup_menu</a>();</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; std::shared_ptr&lt;Ui_FilePage&gt; ui_; </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; QFileSystemModel* dir_model_; </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; QCompleter* path_edit_completer_; </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; QStringListModel* path_complete_model_; </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; std::filesystem::path m_path_; </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; std::filesystem::path selected_path_; </div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; QMenu* popup_menu_{}; </div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; QMenu* option_popup_menu_{}; </div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; QWidget* first_parent_{}; </div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;};</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; </div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;} <span class="comment">// namespace GpgFrontend::UI</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;<span class="preprocessor">#endif // GPGFRONTEND_FILEPAGE_H</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_ad3c54320bdafbbb2c06a20d6c7dea9d6"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#ad3c54320bdafbbb2c06a20d6c7dea9d6">GpgFrontend::UI::FilePage::slot_file_tree_view_item_double_clicked</a></div><div class="ttdeci">void slot_file_tree_view_item_double_clicked(const QModelIndex &amp;index)</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:173</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_a676917817d6f519e043742d1d87f97f1"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#a676917817d6f519e043742d1d87f97f1">GpgFrontend::UI::FilePage::slot_file_tree_view_item_clicked</a></div><div class="ttdeci">void slot_file_tree_view_item_clicked(const QModelIndex &amp;index)</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:101</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> VerifyDetailsDialog.cpp:33</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_aec462d16a2097024a4ced24012b905a7"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#aec462d16a2097024a4ced24012b905a7">GpgFrontend::UI::FilePage::SignalPathChanged</a></div><div class="ttdeci">void SignalPathChanged(const QString &amp;path)</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_aa80dc1b74a0ec65d06e5dffaa21cc785"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#aa80dc1b74a0ec65d06e5dffaa21cc785">GpgFrontend::UI::FilePage::onCustomContextMenu</a></div><div class="ttdeci">void onCustomContextMenu(const QPoint &amp;point)</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:289</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1FileOperator_html_a08baef750a723ee709804120a34d19c9"><div class="ttname"><a href="classGpgFrontend_1_1FileOperator.html#a08baef750a723ee709804120a34d19c9">GpgFrontend::FileOperator::CalculateHash</a></div><div class="ttdeci">static std::string CalculateHash(const std::filesystem::path &amp;file_path)</div><div class="ttdef"><b>Definition:</b> FileOperator.cpp:72</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_aea388ad7876e287f71e93085e6715495"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#aea388ad7876e287f71e93085e6715495">GpgFrontend::UI::FilePage::keyPressEvent</a></div><div class="ttdeci">void keyPressEvent(QKeyEvent *event) override</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:438</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html">GpgFrontend::UI::FilePage</a></div><div class="ttdef"><b>Definition:</b> FilePage.h:45</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:43</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_a250b1950f874c1d11549cd5c0ea9693f"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#a250b1950f874c1d11549cd5c0ea9693f">GpgFrontend::UI::FilePage::slot_compress_files</a></div><div class="ttdeci">void slot_compress_files()</div><div class="ttdoc">compress directory into gpg-zip</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:452</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1SignalStation_html_a94d4c7d79e0deb7026083689bc5dc2ad"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1SignalStation.html#a94d4c7d79e0deb7026083689bc5dc2ad">GpgFrontend::UI::SignalStation::SignalRefreshInfoBoard</a></div><div class="ttdeci">void SignalRefreshInfoBoard(const QString &amp;text, InfoBoardStatus verify_label_status)</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_a48fb14a3296f19f9b1c3b9b48c3a1bf3"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#a48fb14a3296f19f9b1c3b9b48c3a1bf3">GpgFrontend::UI::FilePage::FilePage</a></div><div class="ttdeci">FilePage(QWidget *parent=nullptr)</div><div class="ttdoc">Construct a new File Page object.</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:41</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_a3c114d414b96d3e4b2ca833ab6a48605"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#a3c114d414b96d3e4b2ca833ab6a48605">GpgFrontend::UI::FilePage::GetSelected</a></div><div class="ttdeci">QString GetSelected() const</div><div class="ttdoc">Get the Selected object.</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:184</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1SignalStation_html_abe381ce56a7b157a3760b2fd9c3b7419"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1SignalStation.html#abe381ce56a7b157a3760b2fd9c3b7419">GpgFrontend::UI::SignalStation::GetInstance</a></div><div class="ttdeci">static SignalStation * GetInstance()</div><div class="ttdoc">Get the Instance object.</div><div class="ttdef"><b>Definition:</b> SignalStation.cpp:35</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_a301c5c7747ad251b14c490d58b5d678f"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#a301c5c7747ad251b14c490d58b5d678f">GpgFrontend::UI::FilePage::SignalRefreshInfoBoard</a></div><div class="ttdeci">void SignalRefreshInfoBoard(const QString &amp;text, InfoBoardStatus verify_label_status)</div></div>
<div class="ttc" id="aclassGpgFrontend_1_1UI_1_1FilePage_html_a73e4b62f4926b1aeb3f2183a1d05d871"><div class="ttname"><a href="classGpgFrontend_1_1UI_1_1FilePage.html#a73e4b62f4926b1aeb3f2183a1d05d871">GpgFrontend::UI::FilePage::create_popup_menu</a></div><div class="ttdeci">void create_popup_menu()</div><div class="ttdoc">Create a popup menu object.</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:219</div></div>
<!-- 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>FilePage.h</b></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>