Class sh::ui::web::WebFileView¶
-
class
sh::ui::web
::
WebFileView
: public sh::ui::FileView¶ Web based file view.
Public Functions
-
WebFileView
(WebFileViewManager *manager)¶
-
sh::ui::ColumnDimensions *
columndimensions
() override¶ Returns the column dimensions handler. .
-
sh::tools::HistoryTracker<std::shared_ptr<const sh::filesystem::Eurl>> *
historyTracker
() override¶ Returns the history tracker. .
-
FileViewMode
viewmode
() override¶ Returns the view mode (icons, list, … ?). .
-
void
setViewmode
(FileViewMode m) override¶ Sets the view mode. .
-
int
index
() override¶ Returns the position of this file view within the panel. .
Jumps to a new current directory.
Implementations have to call the base class implementation inside.
-
sh::filesystem::SizeFormatting
getSizeFormattingMode
() override¶ Returns the mode how file sizes are formatted for displaying. .
-
void
setSizeFormattingMode
(sh::filesystem::SizeFormatting mode) override¶ Sets the mode how file sizes are formatted for displaying. .
Returns if hidden files are visible. .
-
void
setHiddenFilesVisible
(bool v) override¶ Sets the visibility of hidden files. .
-
int
iconDimension
() override¶ Returns the icon size (in pixels). .
-
void
setIconDimension
(int v) override¶ Sets the icon size (in pixels). .
-
void
setSort
(int column, Qt::SortOrder order) override¶ Sets how to sort this view. .
-
int
sortColumn
() override¶ Returns the index of the current sort column. .
-
Qt::SortOrder
sortOrder
() override¶ Returns the current sort order. .
-
QList<std::shared_ptr<sh::filesystem::FilesystemNode>>
selectedNodes
() override¶ Returns the nodes which the user has selected in this fileview. .
Sets the node selection of this fileview. .
-
QList<std::shared_ptr<sh::filesystem::FilesystemNode>>
getAllVisibleNodes
() override¶ Returns a list of all nodes currently listed in this file view. .
-
qint64
id
()¶ Returns the unique identifier.
-
std::shared_ptr<sh::filesystem::FilesystemModelFileviewProxy>
model
()¶ Returns the filesystem model bound to this view.
-
std::shared_ptr<sh::filesystem::FilesystemNode>
node
()¶ Returns the current directory.
-
void
reload
(bool skipModel = false)¶ Reloads the data inside this file view.
-
sh::filesystem::FilesystemModelFileviewProxy *
filemodel
()¶ Returns the filesystem model for this view. .
-
void
setFilemodel
(sh::filesystem::FilesystemModelFileviewProxy *model)¶ Sets the filesystem model for this view. .
Signals
-
void
currentNodeChanged
()¶
-
void
modelChanged
()¶
-
void
selectionChanged
()¶ Triggered when the selection have changed.
-
void
viewOptionChanged
()¶ Triggered when some view options have changed.
Private Members
-
std::shared_ptr<sh::filesystem::FilesystemModelFileviewProxy>
_model
¶
-
qint64
_id
¶
-
FileViewMode
_viewmode
= FileViewMode::ListView¶
-
sh::filesystem::SizeFormatting
_sizeformatting
= sh::filesystem::SizeFormatting::SizeFormattingModePrefixes¶
-
int
_iconDimension
= 20¶
-
int
_sortColumn
= 0¶
-
Qt::SortOrder
_sortOrder
= Qt::SortOrder::AscendingOrder¶
-
std::shared_ptr<sh::filesystem::FilesystemNode>
_selectedNode
¶
-
QList<std::shared_ptr<sh::filesystem::FilesystemNode>>
_checkedNodes
¶
-
WebFileViewManager *
_manager
¶
Friends
- friend class WebFileViewManager
-