#[non_exhaustive]pub enum ObjectTreeAction {
Show 34 variants
None,
Select(usize),
AddToSelection(usize),
RangeSelect(usize),
ClearSelection,
SelectAll,
ToggleVisibility(usize),
ShowAll,
HideAll,
HideSelected,
ToggleLock(usize),
LockAll,
UnlockAll,
Delete(usize),
DeleteSelected,
Duplicate(usize),
DuplicateSelected,
OpenProperties(usize),
Rename(usize, String),
ChangeColor(usize, Color32),
BringToFront(usize),
SendToBack(usize),
MoveUp(usize),
MoveDown(usize),
MoveToPane(usize, PaneId),
CreateFolder(Vec<String>, String),
MoveToFolder(Vec<usize>, Vec<String>),
SetFolderVisible(Vec<String>, bool),
SetFolderLocked(Vec<String>, bool),
ZoomTo(usize),
OpenIndicatorSettings(usize),
RemoveIndicator(usize),
RemoveAllDrawings,
RemoveAllIndicators,
}Expand description
Actions that can be performed on objects in the tree
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
No action
Select(usize)
Select a single object (clears other selections)
AddToSelection(usize)
Add to selection (Ctrl+click)
RangeSelect(usize)
Range select (Shift+click)
ClearSelection
Clear all selections
SelectAll
Select all objects
ToggleVisibility(usize)
Toggle visibility of an object
ShowAll
Show all objects
HideAll
Hide all objects
HideSelected
Hide selected objects
ToggleLock(usize)
Toggle lock state of an object
LockAll
Lock all drawings
UnlockAll
Unlock all drawings
Delete(usize)
Delete an object
DeleteSelected
Delete all selected objects
Duplicate(usize)
Duplicate an object
DuplicateSelected
Duplicate all selected objects
OpenProperties(usize)
Open properties dialog for object
Rename(usize, String)
Rename an object (id, new_name)
ChangeColor(usize, Color32)
Change object color
BringToFront(usize)
Bring object to front
SendToBack(usize)
Send object to back
MoveUp(usize)
Move object up one level
MoveDown(usize)
Move object down one level
MoveToPane(usize, PaneId)
Move a drawing to a pane
CreateFolder(Vec<String>, String)
Create a named folder under a parent path and move selected drawings into it.
MoveToFolder(Vec<usize>, Vec<String>)
Move drawing ids into an existing folder, or an empty path for the root.
SetFolderVisible(Vec<String>, bool)
Set visibility of every drawing in a folder and its descendants.
SetFolderLocked(Vec<String>, bool)
Set locking of every drawing in a folder and its descendants.
ZoomTo(usize)
Zoom to object on chart (focus view)
OpenIndicatorSettings(usize)
Open indicator settings dialog
RemoveIndicator(usize)
Remove indicator
RemoveAllDrawings
Remove all drawings
RemoveAllIndicators
Remove all indicators
Implementations§
Source§impl ObjectTreeAction
impl ObjectTreeAction
Sourcepub fn is_selection_action(&self) -> bool
pub fn is_selection_action(&self) -> bool
Check if this action modifies selection
Sourcepub fn is_modification_action(&self) -> bool
pub fn is_modification_action(&self) -> bool
Check if this action modifies objects
Sourcepub fn requires_confirmation(&self) -> bool
pub fn requires_confirmation(&self) -> bool
Check if this action requires confirmation
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a human-readable description of the action
Trait Implementations§
Source§impl Clone for ObjectTreeAction
impl Clone for ObjectTreeAction
Source§fn clone(&self) -> ObjectTreeAction
fn clone(&self) -> ObjectTreeAction
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 ObjectTreeAction
impl Debug for ObjectTreeAction
Source§impl Default for ObjectTreeAction
impl Default for ObjectTreeAction
Source§fn default() -> ObjectTreeAction
fn default() -> ObjectTreeAction
Source§impl PartialEq for ObjectTreeAction
impl PartialEq for ObjectTreeAction
impl StructuralPartialEq for ObjectTreeAction
Auto Trait Implementations§
impl Freeze for ObjectTreeAction
impl RefUnwindSafe for ObjectTreeAction
impl Send for ObjectTreeAction
impl Sync for ObjectTreeAction
impl Unpin for ObjectTreeAction
impl UnsafeUnpin for ObjectTreeAction
impl UnwindSafe for ObjectTreeAction
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