ENH: [STUDIO-3980] drag object accross plate in ObjectList

Change-Id: Iee3193a8e0eaea67670a55e023fe64adca7a8695
This commit is contained in:
chunmao.guo
2023-08-18 18:46:51 +08:00
committed by Lane.Wei
parent 5076a3008a
commit 94f26da614
4 changed files with 92 additions and 18 deletions

View File

@@ -144,9 +144,12 @@ private:
m_type = type;
}
bool set_cur_plate(int plate);
void clear() {
m_obj_idx = -1;
m_vol_idx = -1;
m_last_plate = -1;
m_inst_idxs.clear();
m_type = itUndef;
}
@@ -159,8 +162,10 @@ private:
private:
int m_obj_idx = -1;
int m_vol_idx = -1;
int m_last_plate = -1;
std::set<int> m_inst_idxs{};
ItemType m_type = itUndef;
wxDateTime m_last_plate_time;
} m_dragged_data;
@@ -454,6 +459,9 @@ public:
void object_config_options_changed(const ObjectVolumeID& ov_id);
void printable_state_changed(const std::vector<ObjectVolumeID>& ov_ids);
bool is_dragging() const { return m_dragged_data.type() != itUndef; }
void cancel_drag();
private:
#ifdef __WXOSX__
// void OnChar(wxKeyEvent& event);