mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 20:02:17 +00:00
NEW:[STUDIO-4121] Search object list
jira:STUDIO-4121 Change-Id: Ib0777fc19b8fd70c92fa1169dd1df8cd27a04b3f
This commit is contained in:
@@ -190,6 +190,8 @@ private:
|
||||
// because it would turn off the gizmos (mainly a problem for the SLA gizmo)
|
||||
|
||||
wxDataViewItem m_last_selected_item {nullptr};
|
||||
|
||||
wxDataViewItemArray m_found_list;
|
||||
#ifdef __WXMSW__
|
||||
// Workaround for entering the column editing mode on Windows. Simulate keyboard enter when another column of the active line is selected.
|
||||
int m_last_selected_column = -1;
|
||||
@@ -220,6 +222,8 @@ public:
|
||||
std::vector<ModelObject*>* objects() const { return m_objects; }
|
||||
|
||||
ModelObject* object(const int obj_idx) const ;
|
||||
wxDataViewItemArray get_found_list() const { return m_found_list; }
|
||||
|
||||
|
||||
void create_objects_ctrl();
|
||||
// BBS
|
||||
@@ -462,6 +466,12 @@ public:
|
||||
bool is_dragging() const { return m_dragged_data.type() != itUndef; }
|
||||
void cancel_drag();
|
||||
|
||||
// search objectlist
|
||||
void search_object_list();
|
||||
void append_found_list(wxString current_search_text, wxDataViewItem item);
|
||||
void set_found_list(wxString current_search_text);
|
||||
void set_cur_pos(int value);
|
||||
void searchbar_kill_focus();
|
||||
private:
|
||||
#ifdef __WXOSX__
|
||||
// void OnChar(wxKeyEvent& event);
|
||||
@@ -489,6 +499,7 @@ private:
|
||||
|
||||
std::vector<int> m_columns_width;
|
||||
wxSize m_last_size;
|
||||
int cur_pos = 0;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user