Class sh::actions::common::ActionAbstractTransferTree¶
-
class
sh::actions::common
::
ActionAbstractTransferTree
: public sh::actions::ActionActionItem¶ Abstract action for transferring (copying, moving, et al) a tree of items.
Subclassed by sh::actions::common::ActionCopyTree
Public Functions
-
~ActionAbstractTransferTree
()¶
-
void
execute
()¶ Executes this action.
-
void
execute
(sh::actions::ActionExecutionInfo *info)¶ Executes this action.
-
QKeySequence
shortcuthint
()¶ Returns the keyboard shortcut for triggering this action.
-
bool
shortcuthintTriggersOnCurrentDirectory
()¶ Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
-
void
setShortcuthint
(QKeySequence shortcut, bool triggersOnCurrentDirectory = false)¶ Sets the keyboard shortcut for triggering this action.
-
QString
text
()¶ Returns the displayed text for this action.
-
QString
icon
()¶ Returns the icon for this action.
-
bool
enabled
()¶ Checks if this action is enabled.
-
bool
isChecked
()¶ Checks if this action is checked (has a cross in the ui).
-
bool
isCheckable
()¶ Checks if this action is checkable (can have a cross in the ui).
-
int
defaultActionPrecedence
() const¶ Returns the precedence for becoming the default action of a parent submenu.
This e.g. leads to a bold label.
The action with the highest value becomes the default. Only values >0 will be considered. See ActionDefaultPrecedenceValues for reference values.
-
void
setText
(QString text)¶ Sets the displayed text.
-
void
setIcon
(QString icon)¶ Sets the icon.
-
void
setEnabled
(bool enabled)¶ Sets if the item is enabled.
-
void
setChecked
(bool checked)¶ Sets if the item is checked (has a cross in the ui).
-
void
setVisible
(bool visible)¶ Sets the visibility of this item.
-
bool
visible
()¶ Checks the visibility of this item (non-recursively).
-
std::weak_ptr<AbstractActionItem>
parentAction
()¶ Returns the parent action, if it is added to a container.
Sets the parent action. .
-
void
initializeAsync
(std::function<void()> oninitialized = 0)¶ Asynchonously initializes the action.
-
void
initializeSync
()¶ Synchonously initializes the action.
-
bool
isInitialized
()¶ Checks if this action is initialized.
-
bool
isInitializing
()¶ Checks if this action is initializing.
Signals
-
void
changed
()¶ Emits when some data changed.
Public Static Functions
-
void
makereadableunits
(double *value, QString *vunit)¶
-
class
MyFilesystemOperationProgressMonitor
: public sh::filesystem::FilesystemOperationProgressMonitor¶ Public Functions
-
MyFilesystemOperationProgressMonitor
(ActionExecutionInfo *info)¶
-
bool
hasItemInfo
()¶ Checks if this progress monitor provides information about how many items of a certain total number are transferred so far.
-
quint64
doneItems
()¶ Checks how many items are transferred so far.
-
quint64
allItems
()¶ Checks how many items are to be transferred in total (as predicted in the current moment).
-
bool
hasBytesInfo
()¶ Checks if this progress monitor provides information about how many byte of a certain total number are transferred so far.
-
quint64
doneBytes
()¶ Checks how many bytes are transferred so far.
-
quint64
allBytes
()¶ Checks how many bytes are to be transferred in total (as predicted in the current moment).
-
QString
getItemInfoFrom
()¶ Returns the current source of transfer (as textual information).
-
QString
getItemInfoTo
()¶ Returns the current destination of transfer (as textual information).
-
QString
estimation
()¶ Returns the current performance and time estimation (as textual information).
-
-