R/add_actions.R
add_actions.Rd
Manage lists of GUI actions, icons and methods.
add_actions(
obj = get_actions(),
text = NULL,
code = NULL,
state = NULL,
options = NULL,
replace = TRUE
)
get_actions()
add_icons(obj = ".svIcons", icons, replace = TRUE)
add_methods(methods)
addActions(
obj = get_actions(),
text = NULL,
code = NULL,
state = NULL,
options = NULL,
replace = TRUE
)
addIcons(obj = ".svIcons", icons, replace = TRUE)
addMethods(methods)
The name of the object in SciViews:TempEnv
to manipulate.
The text of actions to add (label on first line, tip on other lines).
The R code of actions to add.
The default (initial) state of an action, as a succession of
letters: c
= checked, u
= unchecked (default); d
= disabled,
e
= enabled (default); h
= hidden, v
= visible (default). Default
values are optional. Ex: udv
means: unchecked - disabled - visible and
it equals to simply d
, given the defaults for the other properties.
A character vector with other options to pass to the graphical toolkit for this action.
Do we replace existing items in 'x'?
The description of the icons to add.
The list of methods to add (character string).
The modified object is returned invisibly.
# This is useful to add actions, icons, descriptions, shortcuts or methods
# TODO: examples and use for functions add_actions(), add_icons() and
# add_methods()