Gui: Do not show overlay panels in Start

This commit is contained in:
Kacper Donat
2024-08-03 17:15:03 +02:00
committed by Chris Hennes
parent 5b174a048e
commit 082b5edf29
10 changed files with 66 additions and 16 deletions

View File

@@ -461,6 +461,9 @@ bool DrawingView::onHasMsg(const char* pMsg) const
else if (strcmp("PrintPdf", pMsg) == 0) {
return true;
}
else if (strcmp("AllowsOverlayOnHover", pMsg) == 0) {
return true;
}
return false;
}

View File

@@ -244,6 +244,9 @@ bool SheetView::onHasMsg(const char* pMsg) const
if (strcmp(pMsg, "PrintPdf") == 0) {
return true;
}
else if (strcmp("AllowsOverlayOnHover", pMsg) == 0) {
return true;
}
return false;
}

View File

@@ -392,6 +392,15 @@ void StartView::newArchFile() const
postStart(PostStartBehavior::doNotSwitchWorkbench);
}
bool StartView::onHasMsg(const char* pMsg) const
{
if (strcmp("AllowsOverlayOnHover", pMsg) == 0) {
return false;
}
return MDIView::onHasMsg(pMsg);
}
void StartView::postStart(PostStartBehavior behavior) const
{
auto hGrp = App::GetApplication().GetParameterGroupByPath(

View File

@@ -70,6 +70,8 @@ public:
void newDraftFile() const;
void newArchFile() const;
bool onHasMsg(const char* pMsg) const override;
public:
enum class PostStartBehavior
{

View File

@@ -232,6 +232,9 @@ bool MDIViewPage::onHasMsg(const char* pMsg) const
if (strcmp("ViewFit", pMsg) == 0) {
return true;
}
else if (strcmp("AllowsOverlayOnHover", pMsg) == 0) {
return true;
}
else if (strcmp("CanPan",pMsg) == 0) {
return true;
}