GpgFrontend-Doxygen/docs/html/FilePage_8h_source.html

190 lines
20 KiB
HTML
Raw 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"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<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 id="projectrow">
<td id="projectalign">
<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.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(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 id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#ifndef GPGFRONTEND_FILEPAGE_H</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#define GPGFRONTEND_FILEPAGE_H</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include &quot;ui/GpgFrontendUI.h&quot;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#include &quot;ui/widgets/InfoBoardWidget.h&quot;</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">class </span>Ui_FilePage;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceGpgFrontend_1_1UI.html">GpgFrontend::UI</a> {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1FilePage.html"> 45</a></span><span class="keyword">class </span><a class="code hl_class" href="classGpgFrontend_1_1UI_1_1FilePage.html">FilePage</a> : <span class="keyword">public</span> QWidget {</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> Q_OBJECT</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">explicit</span> <a class="code hl_function" href="classGpgFrontend_1_1UI_1_1FilePage.html#a48fb14a3296f19f9b1c3b9b48c3a1bf3">FilePage</a>(QWidget* parent = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> [[nodiscard]] QString <a class="code hl_function" href="classGpgFrontend_1_1UI_1_1FilePage.html#a3c114d414b96d3e4b2ca833ab6a48605">GetSelected</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">public</span> slots:</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordtype">void</span> SlotGoPath();</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> signals:</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1FilePage.html#aec462d16a2097024a4ced24012b905a7"> 76</a></span> <span class="keywordtype">void</span> <a class="code hl_signal" href="classGpgFrontend_1_1UI_1_1FilePage.html#aec462d16a2097024a4ced24012b905a7">SignalPathChanged</a>(<span class="keyword">const</span> QString&amp; path);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1FilePage.html#a301c5c7747ad251b14c490d58b5d678f"> 84</a></span> <span class="keywordtype">void</span> <a class="code hl_signal" href="classGpgFrontend_1_1UI_1_1FilePage.html#a301c5c7747ad251b14c490d58b5d678f">SignalRefreshInfoBoard</a>(<span class="keyword">const</span> QString&amp; text,</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_enumeration" href="namespaceGpgFrontend_1_1UI.html#acbaebd342a317b1f067942e5144bb00d">InfoBoardStatus</a> verify_label_status);</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">private</span> slots:</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordtype">void</span> <a class="code hl_slot" 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 id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordtype">void</span> <a class="code hl_slot" 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 id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">void</span> slot_up_level();</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keywordtype">void</span> slot_open_item();</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordtype">void</span> slot_rename_item();</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keywordtype">void</span> slot_delete_item();</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordtype">void</span> slot_calculate_hash();</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordtype">void</span> slot_mkdir();</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordtype">void</span> slot_create_empty_file();</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <span class="keywordtype">void</span> <a class="code hl_slot" href="classGpgFrontend_1_1UI_1_1FilePage.html#a250b1950f874c1d11549cd5c0ea9693f">slot_compress_files</a>();</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classGpgFrontend_1_1UI_1_1FilePage.html#aea388ad7876e287f71e93085e6715495">keyPressEvent</a>(QKeyEvent* event) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classGpgFrontend_1_1UI_1_1FilePage.html#aa80dc1b74a0ec65d06e5dffaa21cc785">onCustomContextMenu</a>(<span class="keyword">const</span> QPoint&amp; point);</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> </div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classGpgFrontend_1_1UI_1_1FilePage.html#a73e4b62f4926b1aeb3f2183a1d05d871">create_popup_menu</a>();</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> std::shared_ptr&lt;Ui_FilePage&gt; ui_; </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> QFileSystemModel* dir_model_; </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> QCompleter* path_edit_completer_; </div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> QStringListModel* path_complete_model_; </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> std::filesystem::path m_path_; </div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> std::filesystem::path selected_path_; </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> QMenu* popup_menu_{}; </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> QMenu* option_popup_menu_{}; </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> QWidget* first_parent_{}; </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span>};</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span>} <span class="comment">// namespace GpgFrontend::UI</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><span class="preprocessor">#endif </span><span class="comment">// GPGFRONTEND_FILEPAGE_H</span></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="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_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_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_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_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="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>
<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_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_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_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="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="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><!-- fragment --></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="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="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>
</html>