#[non_exhaustive]pub enum StudyContextMenuAction {
AddAlert(Box<Alert>),
AddIndicator,
AddToFavorites(String),
VisualOrder(VisualOrder),
Intervals(IntervalRange),
MoveTo(PaneTarget),
PinTo(StudyScale),
Copy,
ToggleVisibility,
Remove,
ObjectTree,
Settings,
}Expand description
Actions from the study context menu. ChartMenus
applies the draw order, interval, pane, scale, visibility, removal and settings actions to
the chart as one undoable user action before it returns them; the host carries out the
others.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AddAlert(Box<Alert>)
Save this alert, on the study’s value at the menu’s bar, through the host’s alerts
service, for example with
AlertsPanel::save.
AddIndicator
Open the indicators dialog to add a study.
AddToFavorites(String)
Add the study’s catalogue name to the indicators dialog’s favorites.
VisualOrder(VisualOrder)
Change the study’s place in the draw order of its pane.
Intervals(IntervalRange)
Show the study only on the intervals of this range around the chart’s interval.
MoveTo(PaneTarget)
Move the study to another pane.
PinTo(StudyScale)
Pin the study to a scale.
Copy
Copy the study with Chart::copy_indicator to the clipboard.
ToggleVisibility
Hide the study, or show it again.
Remove
Remove the study.
ObjectTree
Open the object tree panel. The chart has selected the study.
Settings
Open the study’s settings, through Chart::take_indicator_settings_request.
Trait Implementations§
Source§impl Clone for StudyContextMenuAction
impl Clone for StudyContextMenuAction
Source§fn clone(&self) -> StudyContextMenuAction
fn clone(&self) -> StudyContextMenuAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StudyContextMenuAction
impl Debug for StudyContextMenuAction
Source§impl PartialEq for StudyContextMenuAction
impl PartialEq for StudyContextMenuAction
impl StructuralPartialEq for StudyContextMenuAction
Auto Trait Implementations§
impl Freeze for StudyContextMenuAction
impl RefUnwindSafe for StudyContextMenuAction
impl Send for StudyContextMenuAction
impl Sync for StudyContextMenuAction
impl Unpin for StudyContextMenuAction
impl UnsafeUnpin for StudyContextMenuAction
impl UnwindSafe for StudyContextMenuAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more