Gui/TechDraw: declare 'panning' capability in views
OverlayManager queries this capability to determin whether to auto hide the overlay docking widgets
This commit is contained in:
committed by
Yorik van Havre
parent
b3f745a034
commit
1dd0a9afaa
@@ -208,7 +208,10 @@ bool AbstractSplitView::onMsg(const char* pMsg, const char**)
|
||||
|
||||
bool AbstractSplitView::onHasMsg(const char* pMsg) const
|
||||
{
|
||||
if (strcmp("ViewFit",pMsg) == 0) {
|
||||
if (strcmp("CanPan",pMsg) == 0) {
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("ViewFit",pMsg) == 0) {
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("ViewBottom",pMsg) == 0) {
|
||||
|
||||
@@ -440,7 +440,10 @@ bool View3DInventor::onMsg(const char* pMsg, const char** ppReturn)
|
||||
|
||||
bool View3DInventor::onHasMsg(const char* pMsg) const
|
||||
{
|
||||
if (strcmp("Save",pMsg) == 0) {
|
||||
if (strcmp("CanPan", pMsg) == 0) {
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("Save",pMsg) == 0) {
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("SaveAs",pMsg) == 0) {
|
||||
|
||||
@@ -230,6 +230,9 @@ bool MDIViewPage::onHasMsg(const char* pMsg) const
|
||||
if (strcmp("ViewFit", pMsg) == 0) {
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("CanPan",pMsg) == 0) {
|
||||
return true;
|
||||
}
|
||||
else if (strcmp("Redo", pMsg) == 0 && getAppDocument()->getAvailableRedos() > 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user