GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::UI::FileTreeView Class Reference
Inheritance diagram for GpgFrontend::UI::FileTreeView:
Inheritance graph
Collaboration diagram for GpgFrontend::UI::FileTreeView:
Collaboration graph

Public Slots

void SlotGoPath (const QString &)
 
void SlotUpLevel ()
 
void SlotShowSystemFile (bool)
 
void SlotShowHiddenFile (bool)
 
auto SlotDeleteSelectedItem () -> void
 
void SlotMkdir ()
 
void SlotMkdirBelowAtSelectedItem ()
 
void SlotTouch ()
 
void SlotTouchBelowAtSelectedItem ()
 
void SlotRenameSelectedItem ()
 
void SlotOpenSelectedItemBySystemApplication ()
 

Signals

void SignalPathChanged (const QString &)
 
void SignalSelectedChanged (const QString &)
 
void SignalOpenFile (const QString &)
 

Public Member Functions

 FileTreeView (QWidget *parent, const QString &target_path)
 
auto GetCurrentPath () -> QString
 Get the Current Path object. More...
 
auto GetSelectedPath () -> QString
 Get the Selected Path object. More...
 
auto GetPathByClickPoint (const QPoint &point) -> QString
 Get the Path By Click Point object. More...
 
auto GetMousePointGlobal (const QPoint &point) -> QPoint
 Get the Mouse Point Global object. More...
 

Protected Member Functions

void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 
void keyPressEvent (QKeyEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 

Private Slots

void slot_file_tree_view_item_double_clicked (const QModelIndex &index)
 
void slot_calculate_hash ()
 
void slot_compress_files ()
 compress directory into gpg-zip
 
void slot_show_custom_context_menu (const QPoint &point)
 
void slot_create_popup_menu ()
 Create a popup menu object.
 
void slot_adjust_column_widths ()
 

Private Attributes

QFileSystemModel * dir_model_
 
QString current_path_
 
QString selected_path_
 
QMenu * popup_menu_
 
QMenu * new_item_action_menu_
 
QAction * action_open_file_
 
QAction * action_rename_file_
 
QAction * action_delete_file_
 
QAction * action_calculate_hash_
 
QAction * action_create_empty_file_
 
QAction * action_make_directory_
 
QAction * action_compress_files_
 
bool initial_resize_done_ = false
 

Member Function Documentation

◆ GetCurrentPath()

auto GpgFrontend::UI::FileTreeView::GetCurrentPath ( ) -> QString

Get the Current Path object.

Returns
QString

Referenced by GpgFrontend::UI::FilePage::FilePage().

◆ GetMousePointGlobal()

auto GpgFrontend::UI::FileTreeView::GetMousePointGlobal ( const QPoint &  point) -> QPoint

Get the Mouse Point Global object.

Parameters
point
Returns
QPoint

◆ GetPathByClickPoint()

auto GpgFrontend::UI::FileTreeView::GetPathByClickPoint ( const QPoint &  point) -> QString

Get the Path By Click Point object.

Parameters
point
Returns
QString

◆ GetSelectedPath()

auto GpgFrontend::UI::FileTreeView::GetSelectedPath ( ) -> QString

Get the Selected Path object.

Returns
QString

◆ keyPressEvent()

void GpgFrontend::UI::FileTreeView::keyPressEvent ( QKeyEvent *  event)
overrideprotected
Parameters
event

◆ mousePressEvent()

void GpgFrontend::UI::FileTreeView::mousePressEvent ( QMouseEvent *  event)
overrideprotected
Parameters
event

◆ selectionChanged()

void GpgFrontend::UI::FileTreeView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
overrideprotected
Parameters
selected
deselected

◆ SignalPathChanged

void GpgFrontend::UI::FileTreeView::SignalPathChanged ( const QString &  )
signal
Parameters
path

◆ slot_file_tree_view_item_double_clicked

void GpgFrontend::UI::FileTreeView::slot_file_tree_view_item_double_clicked ( const QModelIndex &  index)
privateslot
Parameters
index

◆ slot_show_custom_context_menu

void GpgFrontend::UI::FileTreeView::slot_show_custom_context_menu ( const QPoint &  point)
privateslot
Parameters
point

◆ SlotShowHiddenFile

void GpgFrontend::UI::FileTreeView::SlotShowHiddenFile ( bool  on)
slot
Parameters
on

Referenced by GpgFrontend::UI::FilePage::FilePage().


The documentation for this class was generated from the following files: