various minor changes:
+ whitespace improvement + code cleanup
This commit is contained in:
@@ -666,7 +666,6 @@ void View3DInventorViewer::removeViewProvider(ViewProvider* pcProvider)
|
||||
_ViewProviderSet.erase(pcProvider);
|
||||
}
|
||||
|
||||
|
||||
SbBool View3DInventorViewer::setEditingViewProvider(Gui::ViewProvider* p, int ModNum)
|
||||
{
|
||||
if (this->editViewProvider)
|
||||
@@ -1746,7 +1745,6 @@ bool View3DInventorViewer::processSoEvent(const SoEvent* ev)
|
||||
case SoKeyboardEvent::ESCAPE:
|
||||
case SoKeyboardEvent::Q: // ignore 'Q' keys (to prevent app from being closed)
|
||||
return inherited::processSoEvent(ev);
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -2631,51 +2629,7 @@ void View3DInventorViewer::drawArrow(void)
|
||||
}
|
||||
|
||||
// ************************************************************************
|
||||
#if 0
|
||||
#define HAND_WITH 24
|
||||
#define HAND_HEIGHT 24
|
||||
#define HAND_HOT_X 9
|
||||
#define HAND_HOT_Y 0
|
||||
|
||||
static unsigned char hand_bitmap[] = {
|
||||
0x00,0x03,0x00,0x80,0x04,0x00,0x80,0x04,0x00,0x80,0x04,0x00,0x80,0x04,0x00,
|
||||
0x80,0x1c,0x00,0x80,0xe4,0x00,0x80,0x24,0x01,0x80,0x24,0x07,0x8e,0x24,0x09,
|
||||
0x92,0x24,0x09,0xa4,0x00,0x09,0xc4,0x00,0x08,0x08,0x00,0x08,0x08,0x00,0x08,
|
||||
0x10,0x00,0x08,0x10,0x00,0x04,0x20,0x00,0x04,0x20,0x00,0x04,0x40,0x00,0x02,
|
||||
0x80,0x00,0x02,0x00,0x01,0x01,0x00,0xff,0x01,0x00,0x00,0x00,0x00,0xab,0xab,
|
||||
0xab,0xab,0xab,0xab,0xab,0xab,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
|
||||
0x00,0x1b,0x00,0xee,0x04,0xee
|
||||
};
|
||||
|
||||
static unsigned char hand_mask_bitmap[] = {
|
||||
0x00,0x03,0x00,0x80,0x07,0x00,0x80,0x07,0x00,0x80,0x07,0x00,0x80,0x07,0x00,
|
||||
0x80,0x1f,0x00,0x80,0xff,0x00,0x80,0xff,0x01,0x80,0xff,0x07,0x8e,0xff,0x0f,
|
||||
0x9e,0xff,0x0f,0xbc,0xff,0x0f,0xfc,0xff,0x0f,0xf8,0xff,0x0f,0xf8,0xff,0x0f,
|
||||
0xf0,0xff,0x0f,0xf0,0xff,0x07,0xe0,0xff,0x07,0xe0,0xff,0x07,0xc0,0xff,0x03,
|
||||
0x80,0xff,0x03,0x00,0xff,0x01,0x00,0xff,0x01,0x00,0x00,0x00,0x00,0xab,0xab,
|
||||
0xab,0xab,0xab,0xab,0xab,0xab,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,
|
||||
0x00,0x1b,0x00,0xd5,0x07,0x1c
|
||||
};
|
||||
|
||||
#define CROSS_WIDTH 16
|
||||
#define CROSS_HEIGHT 16
|
||||
#define CROSS_HOT_X 7
|
||||
#define CROSS_HOT_Y 7
|
||||
|
||||
static unsigned char cross_bitmap[] = {
|
||||
0xc0, 0x03, 0x40, 0x02, 0x40, 0x02, 0x40, 0x02,
|
||||
0x40, 0x02, 0x40, 0x02, 0x7f, 0xfe, 0x01, 0x80,
|
||||
0x01, 0x80, 0x7f, 0xfe, 0x40, 0x02, 0x40, 0x02,
|
||||
0x40, 0x02, 0x40, 0x02, 0x40, 0x02, 0xc0, 0x03
|
||||
};
|
||||
|
||||
static unsigned char cross_mask_bitmap[] = {
|
||||
0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03,
|
||||
0xc0, 0x03, 0xc0, 0x03, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xc0, 0x03, 0xc0, 0x03,
|
||||
0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03
|
||||
};
|
||||
#endif
|
||||
// Set cursor graphics according to mode.
|
||||
void View3DInventorViewer::setCursorRepresentation(int modearg)
|
||||
{
|
||||
@@ -2705,7 +2659,6 @@ void View3DInventorViewer::setCursorRepresentation(int modearg)
|
||||
this->getWidget()->setCursor(this->editCursor);
|
||||
else
|
||||
this->getWidget()->setCursor(QCursor(Qt::ArrowCursor));
|
||||
|
||||
break;
|
||||
|
||||
case NavigationStyle::DRAGGING:
|
||||
@@ -2896,6 +2849,7 @@ PyObject *View3DInventorViewer::getPyObject(void)
|
||||
Py_INCREF(_viewerPy);
|
||||
return _viewerPy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops the event \a e and loads the files into the given document.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user