190 lines
20 KiB
HTML
190 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.9.1"/>
|
|
<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.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&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&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>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#ifndef GPGFRONTEND_FILEPAGE_H</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#define GPGFRONTEND_FILEPAGE_H</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "ui/GpgFrontendUI.h"</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "ui/widgets/InfoBoardWidget.h"</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">class </span>Ui_FilePage;</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <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>  </div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1FilePage.html"> 43</a></span> <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="l00044"></a><span class="lineno"> 44</span>  Q_OBJECT</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <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="l00052"></a><span class="lineno"> 52</span>  </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  [[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="l00059"></a><span class="lineno"> 59</span>  </div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">public</span> slots:</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> SlotGoPath();</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  signals:</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1FilePage.html#aec462d16a2097024a4ced24012b905a7"> 74</a></span>  <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#aec462d16a2097024a4ced24012b905a7">SignalPathChanged</a>(<span class="keyword">const</span> QString& path);</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classGpgFrontend_1_1UI_1_1FilePage.html#a301c5c7747ad251b14c490d58b5d678f"> 82</a></span>  <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#a301c5c7747ad251b14c490d58b5d678f">SignalRefreshInfoBoard</a>(<span class="keyword">const</span> QString& text,</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="namespaceGpgFrontend_1_1UI.html#acbaebd342a317b1f067942e5144bb00d">InfoBoardStatus</a> verify_label_status);</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">private</span> slots:</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <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& index);</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <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& index);</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">void</span> slot_up_level();</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordtype">void</span> slot_open_item();</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordtype">void</span> slot_open_item_by_system_application();</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">void</span> slot_rename_item();</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">void</span> slot_delete_item();</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">void</span> slot_calculate_hash();</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">void</span> slot_mkdir();</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  </div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordtype">void</span> slot_create_empty_file();</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <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="l00154"></a><span class="lineno"> 154</span>  </div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keyword">protected</span>:</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <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="l00162"></a><span class="lineno"> 162</span>  </div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">void</span> <a class="code" href="classGpgFrontend_1_1UI_1_1FilePage.html#aa80dc1b74a0ec65d06e5dffaa21cc785">onCustomContextMenu</a>(<span class="keyword">const</span> QPoint& point);</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <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="l00176"></a><span class="lineno"> 176</span>  </div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  std::shared_ptr<Ui_FilePage> ui_; </div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  QFileSystemModel* dir_model_; </div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  QCompleter* path_edit_completer_; </div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  QStringListModel* path_complete_model_; </div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  std::filesystem::path m_path_; </div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  std::filesystem::path selected_path_; </div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  QMenu* popup_menu_{}; </div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  QMenu* option_popup_menu_{}; </div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  QWidget* first_parent_{}; </div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> };</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  </div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> } <span class="comment">// namespace GpgFrontend::UI</span></div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  </div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</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: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:478</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 &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:187</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 &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:222</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 &point)</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:301</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 &index)</div><div class="ttdef"><b>Definition:</b> FilePage.cpp:176</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:464</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 &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> FileReadTask.cpp:29</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.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|