forked from 1b-agent/opencadstudio-upstream
Merge pull request #1475 from ramox81:codex/xclip-command
This commit is contained in:
commit
58671b191c
10 files changed
+948
-16
No files matched your search
@@ -1556,6 +1556,11 @@ pub enum CmdResult {
|
||||
BatchCopy(Vec<Handle>, Vec<EntityTransform>),
|
||||
/// Erase `handle` and replace with new entities; command stays active.
|
||||
ReplaceEntity(Handle, Vec<EntityType>),
|
||||
/// XCLIP on block references; ends the command.
|
||||
XClip {
|
||||
inserts: Vec<Handle>,
|
||||
action: crate::modules::insert::xclip::XclipAction,
|
||||
},
|
||||
/// Open the PDF Import Settings dialog; the command keeps its prompt.
|
||||
OpenPdfImportSettings,
|
||||
/// Import a page of a file (PDFIMPORT File); ends the command.
|
||||
@@ -2805,6 +2810,16 @@ pub trait CadCommand: Send {
|
||||
false
|
||||
}
|
||||
|
||||
/// The command takes block references only (XCLIP): the host drops the
|
||||
/// rest and says how many were ineligible.
|
||||
fn selection_keeps_block_references(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Before each input the host says which block references carry a clip
|
||||
/// boundary.
|
||||
fn inject_clipped(&mut self, _clipped: &dyn Fn(Handle) -> bool) {}
|
||||
|
||||
/// Called after a selection action completes while `is_selection_gathering` is true.
|
||||
/// `handles` is the full set of currently selected entities.
|
||||
/// Return `Relaunch` to fire the pending command, or `NeedPoint` to keep gathering.
|
||||
|
||||
Reference in new issue
Block a user