Namespace sh::actions¶
-
namespace
sh
::
actions
Infrastructure for actions (submenus, executable ones, and more), as shown in the toolbar and menus and used at some other places.
See the abstract base class sh::actions::AbstractActionItem for more.
-
class
AbstractActionFactory
- #include <actionfactory.h>
Abstract base class for an action factory.
It creates an instance of a certain subclass of AbstractActionItem. It can also check if it is defined to be created in a given situation (e.g. not all actions are visible in toolbar).
Subclassed by sh::actions::ActionFactory< T >, sh::scripting::api::ApiActionFactory
Public Functions
Is (for subclasses) intended to be directly constructed and registered once.
-
~AbstractActionFactory
()
-
std::shared_ptr<ActionInstantiation>
actionAvailable
(ActionInstantiation *instantiation)
Private Members
-
std::shared_ptr<sh::actions::ActionCategory>
category
-
QList<std::shared_ptr<Predicate>>
predicates
-
class
AbstractActionItem
: public QObject, public std::enable_shared_from_this<AbstractActionItem> - #include <abstractactionitem.h>
Abstract base class for executable actions, submenus of them, and more.
See the subclasses of this class.
They are used at various places. The toolbar and context menus provide them to the user.
They can be registered e.g. in a sh::actions::ActionFactory or returned from sh::filesystem::FilesystemHandler.getActions in order to make them available.
Subclassed by sh::actions::ActionActionItem, sh::actions::HeaderActionItem, sh::actions::SeparatorActionItem, sh::actions::SubmenuActionItem
Public Functions
-
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.
-
AbstractActionItem
()
Signals
-
void
changed
() Emits when some data changed.
Private Members
-
QString
_text
-
QString
_icon
-
bool
_enabled
-
bool
_visible
-
bool
_ischeckable
-
bool
_ischecked
-
bool
_initialized
-
bool
_initializing
-
bool
_reinitialize
-
std::weak_ptr<AbstractActionItem>
_parentAction
= NO_PARENT
-
int
_defaultActionPrecedence
Private Static Attributes
-
QWaitCondition
initcondition
-
QString
-
class
ActionActionItem
: public sh::actions::AbstractActionItem - #include <actionactionitem.h>
Abstract base class for an executable action.
It can be made visible in menus or the toolbar or executed directly.
Subclasses provide the actual implementation by implementing
action
. Execution can be triggered from outside by callingexecute
.Subclassed by sh::actions::common::ActionAbstractTransferTree, sh::actions::common::ActionAddToBookmarks, sh::actions::common::ActionBookmark, sh::actions::common::ActionClipboardCopy, sh::actions::common::ActionClipboardCut, sh::actions::common::ActionClipboardPaste, sh::actions::common::ActionClipboardPasteAsLink, sh::actions::common::ActionCreateFile, sh::actions::common::ActionCreateFolder, sh::actions::common::ActionDeleteItems, sh::actions::common::ActionExecute, sh::actions::common::ActionManageBookmarks, sh::actions::common::ActionNavigateInHistory, sh::actions::common::ActionOpenArchive, sh::actions::common::ActionOpenDirectoryInNewWindow, sh::actions::common::ActionOpenFile, sh::actions::common::ActionOpenFileWith::_ActionOpenFileWithEntry, sh::actions::common::ActionOpenFileWith::_ActionOpenFileWithUI, sh::actions::common::ActionOpenSharcArchive, sh::actions::common::ActionOpenTerminalAsUser, sh::actions::common::ActionRenameItem, sh::actions::common::ActionShowProperties, sh::actions::common::ActionTransferToHelper, sh::actions::mainmenu::ActionAbout, sh::actions::mainmenu::ActionAbstractSelectNodes, sh::actions::mainmenu::ActionApplyProfile::ActionApplyProfileX, sh::actions::mainmenu::ActionFileViewChangeIconDimension, sh::actions::mainmenu::ActionFileviewFilesizeFormatting, sh::actions::mainmenu::ActionFileviewShowHiddenFiles, sh::actions::mainmenu::ActionFileviewView, sh::actions::mainmenu::ActionGotoDirectory, sh::actions::mainmenu::ActionHelp, sh::actions::mainmenu::ActionManageSavedSettings, sh::actions::mainmenu::ActionNumberFileviews_Add, sh::actions::mainmenu::ActionNumberFileviews_Remove, sh::actions::mainmenu::ActionNumberFileviews_Remove_Current, sh::actions::mainmenu::ActionQuit, sh::actions::mainmenu::ActionRefresh, sh::actions::mainmenu::ActionSaveSettings, sh::actions::mainmenu::ActionSearch, sh::actions::mainmenu::ActionSetWindowTitlePattern, sh::actions::mainmenu::ActionShowDetailPanel, sh::actions::mainmenu::ActionShowFolderTree, sh::actions::mainmenu::ActionShowLog, sh::actions::mainmenu::ActionTreeStickyness, sh::actions::mainmenu::ActionTuning, sh::filepropertydialogtabs::FilePropertyDialogTabExtendedAttributes::ActionAddAttribute, sh::filepropertydialogtabs::FilePropertyDialogTabExtendedAttributes::ActionChangeAttribute, sh::filepropertydialogtabs::FilePropertyDialogTabExtendedAttributes::ActionRemoveAttribute, sh::filepropertydialogtabs::FilePropertyDialogTabUnixPermissions::ActionChange, sh::filesystemhandlers::ActionMountGnomeIOLocation, sh::filesystemhandlers::ActionMountNetworkGnomeIOLocation, sh::filesystemhandlers::ActionUnmountGnomeIOLocation, sh::scripting::api::ApiActionActionItem, sh::scripting::ScriptingEngine::ActionPluginLoadCrashedAgain, sh::search::criteria::ActionAbstractActionDrivenSearchCriterionConfigure
Public Functions
-
ActionActionItem
(QString text, bool enabled = true, QString icon = QString(), int defaultActionPrecedence = 0, bool checkable = false, bool ischecked = false) Is (for subclasses) intended to be directly constructed from everywhere or by registering a factory somewhere.
-
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.
-
-
class
ActionCategory
- #include <actioncategory.h>
Action categories are used for grouping actions in menus.
They provide the primary grouping in the toolbar an the context menus. Per default, the categories
"create"
,"open"
and"manage"
exist.Public Functions
-
ActionCategory
(QString name, QString label, QString icon) Constructed only by the infrastructure and made available otherwise.
-
QString
name
() The category name.
-
QString
label
() The category label.
-
QString
icon
() The category icon.
Public Static Functions
-
std::shared_ptr<ActionCategory>
getByName
(QString name) Gets a category by name.
-
std::shared_ptr<ActionCategory>
add
(QString name, QString label, QString icon) Adds a new category.
-
QList<std::shared_ptr<ActionCategory>>
categories
() Returns a list of all existing categories.
-
void
doInitialize
()
-
void
doShutdown
()
Private Members
-
QString
_name
-
QString
_label
-
QString
_icon
Private Static Attributes
-
QList<std::shared_ptr<ActionCategory>>
_categories
-
-
class
ActionDefaultPrecedenceValues
- #include <abstractactionitem.h>
Reference values for calculating default precedence values of actions.
Public Static Attributes
-
const int
PRECEDENCE_OPENFILE
= 300000 Normal file open action.
-
const int
PRECEDENCE_BUILTIN_SPECIAL_OPEN
= 600000 Special open action.
-
const int
-
class
ActionExecutionInfo
: public QObject - #include <actionexecutioninfo.h>
Programming interface for giving status infos and communication with the user in an action execution.
An instance is always available during an execution.
Public Functions
-
ActionExecutionInfo
(QObject *parent = 0) Constructed only by the infrastructure and made available otherwise.
-
~ActionExecutionInfo
()
-
void
setVisualProcessFeedbackActive
(bool active) Specifies if there must be a visual process feedback.
The visual process feedback is typically realized as a dialog showing progress information.
Note: It can also appear in some situations, even if this property is set to false.
-
bool
isVisualProcessFeedbackActive
() Determines if there must be a visual process feedback.
-
void
setManualInterventionNeeded
(bool isneeded) Specifies if manual input is currently required.
-
bool
isManualInterventionNeeded
() Determines if manual input is currently required.
Triggers the beginning of the actual execution. .
-
void
finishExecution
() Triggers the finishing of the execution. .
-
void
setDetails
(QString fromverb, QString fromobj, QString toverb = QString(), QString toobj = QString()) Sets some detail texts.
-
QString
fromVerb
() Gets detail text ‘from-verb’.
-
QString
fromObjectName
() Gets detail text ‘from-objectname’.
-
QString
toVerb
() Gets detail text ‘to-verb’.
-
QString
toObjectName
() Gets detail text ‘to-objectname’.
-
void
setHead
(QString text) Sets the header text.
-
QString
head
() Gets the header text.
-
void
setProgressIndeterminate
(QString text = QString()) Sets progress information to ‘indeterminate’.
-
void
setProgress
(quint64 done, quint64 all, QString text) Sets progress information.
-
bool
isProgressDeterminate
() Gets if progress information is ‘indeterminate’.
-
quint64
progressDone
() Gets count of finished items.
-
quint64
progressAll
() Gets count of all items.
-
QString
progressText
() Gets progress information text.
-
sh::actions::ActionExecutionUserFeedback *
userfeedback
() Program interface for interactive user input.
-
bool
isCancelled
() Gets if the current action execution was cancelled.
-
void
cancel
() Cancel the current action execution.
Used from outside, e.g. as handler for a ‘Cancel’ button.
-
void
respectCancel
() Called regularly from an action execution code in order to cancel execution at that place, if the user has cancelled it.
-
void
withExecuteGuards_infodlg
(std::function<void()>int flags = 0, ) Executes code with different exception handlers for presenting exceptions in the action execution inside the action dialog (instead of the default exception dialog).
-
sh::filesystem::Operation *
operation
() Program interface for operations on the filesystem (reading or writing).
Reminds an important change of a certain node in the filesystem (file created, modified, removed?).
The infrastructure will force the ui to refresh those nodes.
-
void
shutdown
(bool success) Shuts down this execution info and releases resources.
Signals
-
void
detailsChanged
() Signal for changed execution details.
-
void
headChanged
() Signal for changed head.
-
void
progressChanged
() Signal for changed progress.
-
void
visualProcessFeedbackActiveChanged
() Signal for changed visibility-required.
-
void
wasCancelled
() Signal for cancellation on user behalf.
-
bool
manualInterventionNeededChanged
() Signal for changed manual-intervention-needed.
Private Functions
-
std::shared_ptr<sh::ui::ActionExecutionInfoDialog>
createDialog
()
-
std::shared_ptr<ui::ActionExecutionInfoPanel>
createPanel
(sh::ui::ActionExecutionInfoDialog *dialog)
Private Members
-
QMutex
mutex
-
QString
_head
-
QString
_fromverb
-
QString
_fromobj
-
QString
_toverb
-
QString
_toobj
-
bool
_progressDeterminate
-
quint64
_progressDone
-
quint64
_progressAll
-
bool
_visualProcessFeedbackActive
= false
-
bool
_wasAlwaysInvisible
= true
-
bool
_manualInterventionNeeded
= false
-
QString
_progressText
-
std::shared_ptr<sh::ui::ActionExecutionInfoDialog>
infodialog
= 0
-
std::shared_ptr<sh::ui::ActionExecutionInfoPanel>
infopanel
= 0
-
bool
_iscancelled
= false
-
sh::filesystem::Operation
_operation
-
QList<std::shared_ptr<const sh::filesystem::Eurl>>
changes
-
QStack<std::shared_ptr<sh::actions::AbstractActionItem>>
stack
Private Slots
-
void
_checkVisibilityOnce
()
-
-
class
ActionExecutionUserFeedback
- #include <actionexecutionuserfeedback.h>
Methods for user interaction in an action execution.
When an action executes, it may need to ask the user for some input at some time. An action implementation can do so by calling those methods. It is available as a member of the ActionExecutionInfo class. An instance of it is available in each action execution.
Subclassed by sh::ui::ActionExecutionInfoDialog
Public Types
-
enum
MessageBoxButton
Buttons in a message box from ActionExecutionUserFeedback.
Values:
-
enumerator
NONE
= 0
-
enumerator
OK
= 1 << 0
-
enumerator
Continue
= 1 << 1
-
enumerator
Cancel
= 1 << 2
-
enumerator
Retry
= 1 << 3
-
enumerator
Yes
= 1 << 4
-
enumerator
No
= 1 << 5
-
enumerator
Public Functions
-
int
messageBox
(QString text, QList<QString> answers, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1, QList<QString> answericons = QList<QString>()) = 0
-
int
inputBox
(QString text, QList<QString> answers, QString *value, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1, int valuePreselectFrom = -1, int valuePreselectTo = -1) = 0
-
int
multilineInputBox
(QString text, QList<QString> answers, QString *value, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1) = 0
-
int
simpleChooserGridform
(QString text, GridformEntries *entries, QStringList answers, int defaultanswer = -1, int cancelanswer = -1) = 0
-
bool
credentialsDialog
(QString text, bool showDomain, bool showUsername, bool showPassword, bool showAnonymous, bool showRemember, QString *domain, QString *username, QString *password, bool *isAnonymous, bool *isRemember) = 0
-
bool
unixPermissionsDialog
(bool *userMayRead, bool *userMayWrite, bool *userMayExecute, bool *groupMayRead, bool *groupMayWrite, bool *groupMayExecute, bool *othersMayRead, bool *othersMayWrite, bool *othersMayExecute, bool *sticky, bool *setuid, bool *setgid, QStringList users, QStringList groups, QString *ownerUser, QString *ownerGroup) = 0
-
QString
simpleInputBox
(QString text, QString deflt, int valuePreselectFrom = -1, int valuePreselectTo = -1)
-
int
simpleMessageBox
(QString text, int buttons = (int)MessageBoxButton::OK, QString icon = QString(), int defaultbutton = (MessageBoxButton)0, int cancelbutton = (MessageBoxButton)0)
-
~ActionExecutionUserFeedback
()
-
class
Choice
- #include <actionexecutionuserfeedback.h>
A data structure for a choice (in an GridformEntry).
Public Functions
-
Choice
(QString label, QString text = QString())
Public Members
-
QString
label
-
QString
text
-
-
class
Choices
- #include <actionexecutionuserfeedback.h>
A data structure for a list of Choice instances.
-
class
GridformEntries
- #include <actionexecutionuserfeedback.h>
A data structure for a list of entries in a simple chooser grid form.
Public Functions
-
GridformEntries
() Is intended to be directly constructed from everywhere.
-
~GridformEntries
()
-
GridformEntry *
newEntry
(QString label)
Public Members
-
QList<GridformEntry*>
list
-
-
class
GridformEntry
- #include <actionexecutionuserfeedback.h>
A data structure for an entry in a simple chooser grid form.
Public Functions
-
GridformEntry
(QString label, Choices choices) Constructed only indirectly.
-
~GridformEntry
()
-
int
addChoice
(QString label, QString text = QString())
-
-
enum
-
template<class
T
>
classActionFactory
: public sh::actions::AbstractActionFactory - #include <actionfactory.h>
A typical implementation for an action factory.
See base class for more.
Public Functions
-
std::shared_ptr<ActionInstantiation>
actionAvailable
(ActionInstantiation *instantiation)
-
std::shared_ptr<ActionInstantiation>
-
class
ActionInstantiation
- #include <actionfactory.h>
Holds various data around action creation.
Action creation is a process, which begins with querying all actions available for certain nodes. The action factories evaluate availabilities and store some construction information here. Many parties are involved in working with it. The created action, is stored in this object as well.
Public Functions
Constructor for a typical fresh instance, containing infos about selected items and some more.
-
ActionInstantiation
(const ActionInstantiation &s) = default Clones an existing instance.
Clones an existing instance and sets createdAction. This is a convenience constructor used for some special cases.
Public Members
-
QList<std::shared_ptr<sh::filesystem::FilesystemNode>>
selectedNodes
The selected nodes (initially: what’s selected in the active file list).
-
std::shared_ptr<sh::filesystem::FilesystemNode>
currentDirectory
The current directory (which is visible in the active file list).
-
bool
resolveLinks
= true If links shall be resolved for evaluation and action creation.
-
bool
isLookupOnCurrentDirectoryLevel
= false If this instantiation refers to a lookup for actions on ‘current directory level’ (instead of ‘selection level’).
-
AbstractActionFactory *
actionfactory
= 0 The action faction.
-
std::shared_ptr<ActionCategory>
category
= 0 The action category.
-
std::shared_ptr<AbstractActionItem>
createdAction
= 0 The created action.
-
QKeySequence
shortcut
The requested keyboard shortcut for the action.
-
int
positionIndex
= 0 The position information index.
-
class
ActionsManager
: public QObject, public sh::base::Singleton - #include <actionsmanager.h>
Factory for actions which are valid for a given list of FileSystemNode and tools for placing actions in some gui elements.
Public Functions
Asychonously gets actions for a list of sh::filesystem::FilesystemNode.
- Parameters
nodes
: The list of nodes.callback
: This callback is called once the list is fetched.initializedcallback
: This callback is called for each result action after initialization.
Determines the default action for a given list of actions.
- Parameters
actionList
: The list of all available actions.callback
: This callback is called when the default action was found (with an already initialized action).
Asychonously gets the action for a shortcut.
- Parameters
selectedNodes
: The nodes which are currently selected in the active fileview.folderNode
: The folder which is shown by the active fileview.key
: The keypress character code.modifiers
: The keypress modifiers.callback
: This callback is called when an action was found (with an already initialized action).
Registers an action factory.
This makes an action implementation available in the toolbar and context menus.
-
QList<std::shared_ptr<sh::actions::ActionActionItem>>
runningActions
() Returns a list of all currently running actions.
-
void
doInitialize
() Executes singleton initialization.
-
void
doShutdown
() Executes singleton shutdown.
-
void
shutdown
() Shutdown down this singleton.
-
bool
isAlive
() Returns if this singleton is alive (true until its shutdown begins).
Signals
-
void
runningActionsChanged
() Emitted when the list of running actions changed.
Public Static Functions
Returns a short header label text for a node selection.
Returns a short header label text for a current directory.
Sorts a lists of actionitems and adds separators between groups. Modifies the given list.
Private Functions
-
ActionsManager
()
-
void
_emit_runningActionsChanged
()
Recursively initializes a list of action items and calls a callback for each action item recursively afterwards.
- Parameters
actions
: List of all action items to traverse.callback
: This callback is called for each action item (even indirectly in a subtree hierarchy).
Internal helper for the public getDefaultAction() method.
Helper for updating _runningactions. .
Private Members
-
QList<std::shared_ptr<sh::actions::AbstractActionFactory>>
_actionfactories
-
QMutex
_mutex_actionfactories
-
QList<std::shared_ptr<sh::actions::ActionActionItem>>
_runningactions
-
QMutex
_mutex_runningactions
Friends
- friend class ActionActionItem
-
struct
GDAHstruct
Internal data structure used for _getDefaultAction_helper();.
Public Members
-
sh::tools::AtomicCounter
counter
-
std::function<void(std::shared_ptr<sh::actions::ActionActionItem>)>
callback
-
int
currentValue
= 0
-
QList<std::shared_ptr<sh::actions::AbstractActionItem>>
initialActionList
-
std::shared_ptr<sh::actions::AbstractActionItem>
currentAction
= 0
-
sh::tools::AtomicCounter
-
class
RunningActionsCounter
Helper for updating _runningactions. .
Public Functions
-
~RunningActionsCounter
()
-
-
class
ByRegExpPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Shows actions only when the selection paths matches a regular expression.
Public Functions
-
ByRegExpPredicate
(QString regexp)
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
Private Members
-
QRegExp
filterRegExp
-
-
class
DontResolveLinksPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Disables links resolving.
Public Functions
-
DontResolveLinksPredicate
()
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
-
class
HeaderActionItem
: public sh::actions::AbstractActionItem - #include <headeractionitem.h>
A header.
Use it as all the other AbstractActionItem classes. It will lead to a visual header in the parent menu.
Public Functions
-
HeaderActionItem
(QString text, QString icon = QString()) Is intended to be directly constructed from everywhere.
-
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.
-
-
class
HideOnCurrentDirectoryLevelPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Shows actions only when not searching for ‘current directory level’ actions.
Public Functions
-
HideOnCurrentDirectoryLevelPredicate
()
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
-
class
HideOnSelectionLevelPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Shows actions only when not searching for ‘selection level’ actions.
Public Functions
-
HideOnSelectionLevelPredicate
()
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
-
class
KeyShortcutPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Sets a keyboard shortcut.
Public Functions
-
KeyShortcutPredicate
(QKeySequence shortcut, bool triggersOnCurrentDirectoryLevel)
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
Private Members
-
QKeySequence
shortcut
-
bool
triggersOnCurrentDirectoryLevel
-
-
class
OnDirectoriesPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Shows actions only on directories.
Public Functions
-
OnDirectoriesPredicate
()
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
-
class
OnFilesPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Shows actions only on files.
Public Functions
-
OnFilesPredicate
()
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
-
class
OnLinksPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Shows actions only on links.
Public Functions
-
OnLinksPredicate
()
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
-
class
OnSingleEntrySelectionPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Shows actions only on single-entry selections.
Public Functions
-
OnSingleEntrySelectionPredicate
()
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
-
class
PositionIndexPredicate
: public sh::actions::Predicate - #include <actionfactory.h>
Sets a positioning information index.
Public Functions
-
PositionIndexPredicate
(int positionIndex)
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
Private Members
-
int
positionIndex
-
-
class
Predicate
- #include <actionfactory.h>
Controls when and how an action is created in the action factory.
Subclassed by sh::actions::ByRegExpPredicate, sh::actions::DontResolveLinksPredicate, sh::actions::HideOnCurrentDirectoryLevelPredicate, sh::actions::HideOnSelectionLevelPredicate, sh::actions::KeyShortcutPredicate, sh::actions::OnDirectoriesPredicate, sh::actions::OnFilesPredicate, sh::actions::OnLinksPredicate, sh::actions::OnSingleEntrySelectionPredicate, sh::actions::PositionIndexPredicate
Public Functions
-
Predicate
()
-
void
prepare
(ActionInstantiation *instantiation) Prepares the evaluation.
-
bool
evaluate
(ActionInstantiation *instantiation) Evaluates if the predicate is solved.
If it returns
true
, the evaluation proceeds and eventually succeeds. Iffalse
, it stops at this place.
-
~Predicate
()
-
-
class
SeparatorActionItem
: public sh::actions::AbstractActionItem - #include <separatoractionitem.h>
A separator.
Use it as all the other AbstractActionItem classes. It will lead to a visual separator in the parent menu.
Public Functions
-
SeparatorActionItem
() Is intended to be directly constructed from everywhere.
-
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.
-
- #include <submenuactionitem.h>
Abstract base class for a submenu.
It can be made visible in menus or the toolbar or executed directly.
Subclasses fill the submenu with other actions in order to be useful.
Subclassed by sh::actions::common::ActionAbstractTransferTo, sh::actions::common::ActionBookmarkFolder, sh::actions::common::ActionGroups, sh::actions::common::ActionHistoryNavigate, sh::actions::common::ActionOpenFileWith, sh::actions::common::ActionOpenTerminal, sh::actions::mainmenu::ActionApplyProfile, sh::actions::mainmenu::ActionMain, sh::actions::mainmenu::ActionNumberFileviews, sh::scripting::api::ApiSubmenuActionItem
Public Functions
Is (for subclasses) intended to be directly constructed from everywhere or by registering a factory somewhere.
Returns the list of subitems from this submenu.
Sets the subitems.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when the list of subitems changed.
Emits when some data changed.
Private Members
-
namespace
common
Implementations of actions.
Subclasses of sh::actions::AbstractActionItem (and possibly some auxiliary stuff). Many action implementations used in Shallot are here. You can find other actions in the sibling namespaces and a few very special ones at different places.
-
class
ActionAbstractTransferTo
: public sh::actions::SubmenuActionItem - #include <actiontransferto.h>
Abstract action for transferring a selection to some other locations (e.g. to other file views, bookmarks).
Subclassed by sh::actions::common::ActionTransferToCopy, sh::actions::common::ActionTransferToMove
Public Functions
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
subitems
() Returns the list of subitems from this submenu.
Sets the subitems.
-
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
subitemsChanged
() Emits when the list of subitems changed.
-
void
changed
() Emits when some data changed.
Friends
- friend class ActionTransferToHelper
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
-
class
ActionAbstractTransferTree
: public sh::actions::ActionActionItem - #include <actionabstracttransfertree.h>
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 - #include <actionabstracttransfertree.h>
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).
-
-
-
class
ActionAddToBookmarks
: public sh::actions::ActionActionItem - #include <actionbookmarks.h>
Action for bookmarking a directory.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionBookmark
: public sh::actions::ActionActionItem - #include <actionbookmarks.h>
Action for navigating to a certain bookmark.
Public Functions
-
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.
-
void
-
class
ActionBookmarkFolder
: public sh::actions::SubmenuActionItem - #include <actionbookmarks.h>
Submenu action of bookmarks.
Subclassed by sh::actions::common::ActionBookmarks
Public Functions
-
ActionBookmarkFolder
(QString label)
-
void
clearSubitems
()
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
subitems
() Returns the list of subitems from this submenu.
Sets the subitems.
-
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
subitemsChanged
() Emits when the list of subitems changed.
-
void
changed
() Emits when some data changed.
-
-
class
ActionBookmarks
: public sh::actions::common::ActionBookmarkFolder - #include <actionbookmarks.h>
Bookmarking action (the main one you see in the toolbar)
Public Functions
-
ActionBookmarks
()
-
void
initialize
() Initialize the action. This should make the time-consuming parts, e.g. for determining a label or enabled state.
-
void
clearSubitems
()
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
subitems
() Returns the list of subitems from this submenu.
Sets the subitems.
-
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
subitemsChanged
() Emits when the list of subitems changed.
-
void
changed
() Emits when some data changed.
-
-
class
ActionClipboardCopy
: public sh::actions::ActionActionItem - #include <actionclipboard.h>
Action for copying to clipboard.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionClipboardCut
: public sh::actions::ActionActionItem - #include <actionclipboard.h>
Action for cutting to clipboard.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionClipboardPaste
: public sh::actions::ActionActionItem - #include <actionclipboard.h>
Action for pasting from clipboard.
Public Functions
-
bool
shortcutTriggersOnFolder
()
-
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
doInitialize
()
-
void
doShutdown
()
-
bool
-
class
ActionClipboardPasteAsLink
: public sh::actions::ActionActionItem - #include <actionclipboard.h>
Action for pasting from clipboard as link.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionCopyTree
: public sh::actions::common::ActionAbstractTransferTree - #include <actioncopytree.h>
Action copying a filesystem tree to some other place.
Subclassed by sh::actions::common::ActionMoveTree
Public Functions
-
void
action
(sh::actions::ActionExecutionInfo *info) The action implementation, i.e. what the actions should actually do.
-
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)
-
void
-
class
ActionCreateFile
: public sh::actions::ActionActionItem - #include <actioncreatefile.h>
Action for creating a new file.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionCreateFolder
: public sh::actions::ActionActionItem - #include <actioncreatefolder.h>
Action for creating a new directory.
Public Functions
-
bool
shortcutTriggersOnFolder
()
-
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
doInitialize
()
-
void
doShutdown
()
-
bool
-
class
ActionDeleteItems
: public sh::actions::ActionActionItem - #include <actiondeleteitems.h>
Action deleting a list of filesystem items.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionExecute
: public sh::actions::ActionActionItem - #include <actionexecute.h>
Action executing a file (if executable).
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionGroups
: public sh::actions::SubmenuActionItem - #include <actiongroups.h>
Action for showing registered actions grouped by an sh::actions::ActionCategory.
Public Functions
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
subitems
() Returns the list of subitems from this submenu.
Sets the subitems.
-
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
subitemsChanged
() Emits when the list of subitems changed.
-
void
changed
() Emits when some data changed.
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
- #include <actionnavigation.h>
Abstract action for navigating in the directory history stack (stepwise or randomly).
Subclassed by sh::actions::common::ActionHistoryNavigateBackward, sh::actions::common::ActionHistoryNavigateForward
Public Functions
Returns the list of subitems from this submenu.
Sets the subitems.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when the list of subitems changed.
Emits when some data changed.
- #include <actionnavigation.h>
Action for navigating backward in the directory history stack.
Public Functions
Returns the list of subitems from this submenu.
Sets the subitems.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when the list of subitems changed.
Emits when some data changed.
- #include <actionnavigation.h>
Action for navigating forward in the directory history stack.
Public Functions
Returns the list of subitems from this submenu.
Sets the subitems.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when the list of subitems changed.
Emits when some data changed.
-
class
ActionManageBookmarks
: public sh::actions::ActionActionItem - #include <actionbookmarks.h>
Action for managing bookmarks.
Public Functions
-
ActionManageBookmarks
()
-
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.
-
-
class
ActionMoveTree
: public sh::actions::common::ActionCopyTree - #include <actionmovetree.h>
Action moving a filesystem tree to some other place.
Public Functions
-
void
action
(sh::actions::ActionExecutionInfo *info) The action implementation, i.e. what the actions should actually do.
-
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)
-
void
- #include <actionnavigation.h>
Action for navigating to one particular place in the directory history stack.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
-
class
ActionOpenArchive
: public sh::actions::ActionActionItem - #include <actionopenarchive.h>
Action opening a sharc archive (by creating a root node for it).
Subclassed by sh::filesystemhandlers::ArchiveFilesystemHandler::ActionOpenTarArchive, sh::filesystemhandlers::ArchiveFilesystemHandler::ActionOpenZipArchive
Public Functions
-
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.
-
void
-
class
ActionOpenDirectoryInNewWindow
: public sh::actions::ActionActionItem - #include <actionopendirectoryinnewwindow.h>
Action for opening a file with a automatically chosen program.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionOpenFile
: public sh::actions::ActionActionItem - #include <actionopenfile.h>
Action for opening a file with a automatically chosen program.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionOpenFileWith
: public sh::actions::SubmenuActionItem - #include <actionopenfilewith.h>
Submenu action for opening a file with a manually chosen program.
Public Functions
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
subitems
() Returns the list of subitems from this submenu.
Sets the subitems.
-
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
subitemsChanged
() Emits when the list of subitems changed.
-
void
changed
() Emits when some data changed.
Public Static Functions
-
void
waitProgramClosedIfNeeded
(sh::actions::ActionExecutionInfo *info, QStringList filelist)
-
void
doInitialize
()
-
void
doShutdown
()
Friends
- friend class ActionOpenFile
-
class
_ActionOpenFileWithEntry
: public sh::actions::ActionActionItem Public Functions
-
void
action
(sh::actions::ActionExecutionInfo *info) The action implementation, i.e. what the actions should actually do.
-
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.
Public Members
-
QString
_command
-
QStringList
_commandArguments
-
QList<std::shared_ptr<sh::filesystem::FilesystemNode>>
_nodes
Signals
-
void
changed
() Emits when some data changed.
-
void
-
class
_ActionOpenFileWithUI
: public sh::actions::ActionActionItem Public Functions
-
void
action
(sh::actions::ActionExecutionInfo *info) The action implementation, i.e. what the actions should actually do.
-
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.
-
void
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
-
class
ActionOpenSharcArchive
: public sh::actions::ActionActionItem - #include <actionopensharcarchive.h>
Action opening a sharc archive (by creating a root node for it).
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionOpenTerminal
: public sh::actions::SubmenuActionItem - #include <actionopenterminal.h>
Action submenu with actions for opening commandline terminals.
Public Functions
-
ActionOpenTerminal
(QString dir)
-
void
initialize
() Initialize the action. This should make the time-consuming parts, e.g. for determining a label or enabled state.
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
subitems
() Returns the list of subitems from this submenu.
Sets the subitems.
-
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
subitemsChanged
() Emits when the list of subitems changed.
-
void
changed
() Emits when some data changed.
-
-
class
ActionOpenTerminalAsRoot
: public sh::actions::common::ActionOpenTerminalAsUser - #include <actionopenterminal.h>
Action for opening a commandline terminal as root.
Public Functions
-
ActionOpenTerminalAsRoot
(QString dir)
-
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.
-
-
class
ActionOpenTerminalAsUser
: public sh::actions::ActionActionItem - #include <actionopenterminal.h>
Action for opening a commandline terminal (with current user).
Subclassed by sh::actions::common::ActionOpenTerminalAsRoot
Public Functions
-
ActionOpenTerminalAsUser
(QString dir)
-
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.
-
-
class
ActionRenameItem
: public sh::actions::ActionActionItem - #include <actionrenameitem.h>
Action for renaming items.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionShowProperties
: public sh::actions::ActionActionItem - #include <actionshowproperties.h>
Action for showing the properties dialog for filesystem nodes.
Public Functions
-
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
doInitialize
()
-
void
doShutdown
()
-
void
-
class
ActionTransferToCopy
: public sh::actions::common::ActionAbstractTransferTo - #include <actiontransferto.h>
Action for copying a selection to some other locations.
Public Functions
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
subitems
() Returns the list of subitems from this submenu.
Sets the subitems.
-
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
subitemsChanged
() Emits when the list of subitems changed.
-
void
changed
() Emits when some data changed.
Public Static Functions
-
void
doInitialize
() Only called by the Shallot infrastructure for initialization.
-
void
doShutdown
() Only called by the Shallot infrastructure for initialization.
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
-
class
ActionTransferToHelper
: public sh::actions::ActionActionItem - #include <actiontransferto.h>
This action is used as subitems in ActionAbstractTransferTo.
Public Functions
-
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.
-
void
-
class
ActionTransferToMove
: public sh::actions::common::ActionAbstractTransferTo - #include <actiontransferto.h>
Action for moving a selection to some other locations.
Public Functions
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
subitems
() Returns the list of subitems from this submenu.
Sets the subitems.
-
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
subitemsChanged
() Emits when the list of subitems changed.
-
void
changed
() Emits when some data changed.
Public Static Functions
-
void
doInitialize
()
-
void
doShutdown
()
-
const QList<std::shared_ptr<sh::actions::AbstractActionItem>>
-
class
Implementation of the main menu.
Subclasses of sh::actions::AbstractActionItem (and possibly some auxiliary stuff). You can find other actions in the sibling namespaces and a few very special ones at different places.
- #include <actionabout.h>
Action showing the Shallot about box.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionselect.h>
Abstract subclass for actions which select some nodes in the current file view.
Subclassed by sh::actions::mainmenu::ActionInvertNodeSelection, sh::actions::mainmenu::ActionSelectAllNodes
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionapplyprofile.h>
Submenu action for switching the current profile.
Public Functions
Returns the list of subitems from this submenu.
Sets the subitems.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when the list of subitems changed.
Emits when some data changed.
Action for switching the current profile to a certain one.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionfileviewchangeicondimension.h>
Action for changing the icon size.
Subclassed by sh::actions::mainmenu::ActionFileViewDecreaseIconDimension, sh::actions::mainmenu::ActionFileViewIncreaseIconDimension
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionfileviewchangeicondimension.h>
Action for decreasing the icon size.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionfileviewfilesizeformatting.h>
Action for toggling the filesize formatting mode for the current fileview.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionfileviewchangeicondimension.h>
Action for increasing the icon size.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionfileviewshowhiddenfiles.h>
Action which toggles the visibility of hidden files in the current fileview.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionfileviewview.h>
Action which toggles between icon- and listmode for the current fileview.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actiongotodirectory.h>
Action which toggles the visibility of hidden files in the current fileview.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionhelp.h>
Action for opening the Shallot help system.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionselect.h>
Action for inverting the node selection in the current file view.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
Private Members
- #include <actionmain.h>
Submenu action providing the Shallot main menu.
Public Functions
Returns the list of subitems from this submenu.
Sets the subitems.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Executes singleton initialization.
Executes singleton shutdown.
Shutdown down this singleton.
Returns if this singleton is alive (true until its shutdown begins).
Signals
Emits when the list of subitems changed.
Emits when some data changed.
Private Functions
- #include <actionmanagesavedsettings.h>
Action for opening the ‘Manage saved settings’ dialog.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionnumberfileviews.h>
Submenu action for changing the number of fileviews.
Public Functions
Returns the list of subitems from this submenu.
Sets the subitems.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when the list of subitems changed.
Emits when some data changed.
Friends
- friend class ActionNumberFileviews_Add
- friend class ActionNumberFileviews_Remove
- friend class ActionNumberFileviews_Remove_Current
- #include <actionnumberfileviews.h>
Action for adding a new fileview.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
Public Static Functions
- #include <actionnumberfileviews.h>
Action for removing a certain fileview.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionnumberfileviews.h>
Action for removing the current fileview (for keyboard shortcut).
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
Public Static Functions
- #include <actionquit.h>
Action for closing Shallot.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionrefresh.h>
Action for refreshing the current view.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionsavesettings.h>
Action for opening the ‘Save settings’ dialog.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionsearch.h>
Action for opening the ‘Save settings’ dialog.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionselect.h>
Action for selecting all nodes in the current file view.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionsetwindowtitlepattern.h>
Action for setting the window title pattern.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionshowdetailpanel.h>
Action for toggling the visibility of the detail panel.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionshowfoldertree.h>
Action for toggling the visibility of the directory tree.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionshowlog.h>
Action for showing the Shallot log in a dialog.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actiontreestickyness.h>
Action for toggling the stickyness of the directory tree to the fileviews.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actiontuning.h>
Action for opening the ‘Tuning’ dialog.
Public Functions
Executes this action.
Executes this action.
Returns the keyboard shortcut for triggering this action.
Checks if using the keyboard shortcut shall trigger the action on the current directory (or on the entry selection).
Sets the keyboard shortcut for triggering this action.
Returns the displayed text for this action.
Returns the icon for this action.
Checks if this action is enabled.
Checks if this action is checked (has a cross in the ui).
Checks if this action is checkable (can have a cross in the ui).
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.
Sets the displayed text.
Sets the icon.
Sets if the item is enabled.
Sets if the item is checked (has a cross in the ui).
Sets the visibility of this item.
Checks the visibility of this item (non-recursively).
Returns the parent action, if it is added to a container.
Sets the parent action. .
Asynchonously initializes the action.
Synchonously initializes the action.
Checks if this action is initialized.
Checks if this action is initializing.
Signals
Emits when some data changed.
- #include <actionabout.h>
-
class