Gui: Do not show overlay panels in Start
This commit is contained in:
committed by
Chris Hennes
parent
5b174a048e
commit
082b5edf29
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -70,6 +70,8 @@ public:
|
||||
void newDraftFile() const;
|
||||
void newArchFile() const;
|
||||
|
||||
bool onHasMsg(const char* pMsg) const override;
|
||||
|
||||
public:
|
||||
enum class PostStartBehavior
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user