mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-22 12:45:17 +00:00
Compare commits
1 Commits
fix/bambu-
...
release/v2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ffd1d602c |
@@ -338,15 +338,7 @@ void FilamentGroupPopup::OnRadioBtn(int idx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilamentGroupPopup::OnTimer(wxTimerEvent&)
|
void FilamentGroupPopup::OnTimer(wxTimerEvent &event) { Dismiss(); }
|
||||||
{
|
|
||||||
if (IsMouseInPopup()) {
|
|
||||||
StartTimer();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Dismiss();
|
|
||||||
}
|
|
||||||
|
|
||||||
void FilamentGroupPopup::Dismiss() {
|
void FilamentGroupPopup::Dismiss() {
|
||||||
m_active = false;
|
m_active = false;
|
||||||
@@ -356,22 +348,19 @@ void FilamentGroupPopup::Dismiss() {
|
|||||||
|
|
||||||
void FilamentGroupPopup::OnLeaveWindow(wxMouseEvent &)
|
void FilamentGroupPopup::OnLeaveWindow(wxMouseEvent &)
|
||||||
{
|
{
|
||||||
if (this->GetScreenRect().Contains(wxGetMousePosition())) return;
|
wxPoint pos = this->ScreenToClient(wxGetMousePosition());
|
||||||
|
if (this->GetClientRect().Contains(pos)) return;
|
||||||
StartTimer();
|
StartTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilamentGroupPopup::OnEnterWindow(wxMouseEvent &)
|
void FilamentGroupPopup::OnEnterWindow(wxMouseEvent &)
|
||||||
{
|
{
|
||||||
// Ignore spurious ENTER synthesized by PopupWindow::OnMouseEvent2 on macOS.
|
// Ignore spurious ENTER synthesized by PopupWindow::OnMouseEvent2 on macOS.
|
||||||
if (!this->GetScreenRect().Contains(wxGetMousePosition())) return;
|
wxPoint pos = this->ScreenToClient(wxGetMousePosition());
|
||||||
|
if (!this->GetClientRect().Contains(pos)) return;
|
||||||
ResetTimer();
|
ResetTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FilamentGroupPopup::IsMouseInPopup() const
|
|
||||||
{
|
|
||||||
return this->GetScreenRect().Contains(wxGetMousePosition());
|
|
||||||
}
|
|
||||||
|
|
||||||
void FilamentGroupPopup::UpdateButtonStatus(int hover_idx)
|
void FilamentGroupPopup::UpdateButtonStatus(int hover_idx)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < ButtonType::btCount; ++i) {
|
for (int i = 0; i < ButtonType::btCount; ++i) {
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ private:
|
|||||||
void OnEnterWindow(wxMouseEvent &);
|
void OnEnterWindow(wxMouseEvent &);
|
||||||
void OnTimer(wxTimerEvent &event);
|
void OnTimer(wxTimerEvent &event);
|
||||||
void Dismiss();
|
void Dismiss();
|
||||||
bool IsMouseInPopup() const;
|
|
||||||
|
|
||||||
void CreateBmps();
|
void CreateBmps();
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set(SLIC3R_APP_KEY "OrcaSlicer")
|
|||||||
if(NOT DEFINED BBL_INTERNAL_TESTING)
|
if(NOT DEFINED BBL_INTERNAL_TESTING)
|
||||||
set(BBL_INTERNAL_TESTING "0")
|
set(BBL_INTERNAL_TESTING "0")
|
||||||
endif()
|
endif()
|
||||||
set(SoftFever_VERSION "2.4.0-dev")
|
set(SoftFever_VERSION "2.4.0-alpha")
|
||||||
string(REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)"
|
string(REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)"
|
||||||
SoftFever_VERSION_MATCH ${SoftFever_VERSION})
|
SoftFever_VERSION_MATCH ${SoftFever_VERSION})
|
||||||
set(ORCA_VERSION_MAJOR ${CMAKE_MATCH_1})
|
set(ORCA_VERSION_MAJOR ${CMAKE_MATCH_1})
|
||||||
|
|||||||
Reference in New Issue
Block a user