API reference
EditingCommandRouter
Provides window-scoped semantic actions for the focused Fluent editor.
No matching API members.
fluent::textfields::EditingCommandRouter
Inherits QObject
Constructors
explicit EditingCommandRouter(QWidget* scopeWindow, QObject* parent = nullptr)Creates a router scoped to the top-level window containing scopeWindow.
Methods
QWidget* scopeWindow() constReturns the top-level window that owns this command scope.
bool hasActiveTarget() constReturns whether a supported Fluent editor is the active target.
QAction* action(Command command) constReturns the router-owned action for command.
QList<QAction*> actions() constReturns all actions in semantic command order.
bool canExecute(Command command) constReturns whether command can execute against the current target.
bool execute(Command command)Revalidates and executes command against the active target.
void refresh()Recomputes active command capabilities without changing focus.
Signals
void activeTargetChanged(bool hasActiveTarget)Emitted when the active supported target changes.
void commandCapabilityChanged(fluent::textfields::EditingCommandRouter::Command command, bool enabled)Emitted when one command's executable capability changes.
Enumerations
enum class CommandEditing commands exposed through stable QAction instances.
UndoRedoCutCopyPasteDeleteSelectAll
Destructors
All inherited Qt members:QObject