if (charIdx >= matches[0].size())
return;
QChar ch = matches[0][charIdx];
- for (int j = 1; j < matches.size(); j++)
+ for (size_t j = 1; j < matches.size(); j++)
if (charIdx >= matches[j].size() || matches[j][charIdx] != ch)
return;
result += ch;
public:\r
virtual void createFeatures() = 0;\r
virtual void featureCreated(XGUI_Command*) = 0;\r
+\r
+ virtual ~XGUI_Module() {};\r
};\r
\r
//! This function must return a new module instance.\r
//************************************************************************
//************************************************************************
//************************************************************************
-XGUI_ViewPort::XGUI_ViewPort(XGUI_ViewWindow* theParent, const Handle(V3d_Viewer)& theViewer,
+XGUI_ViewPort::XGUI_ViewPort(XGUI_ViewWindow* theParent,
+ const Handle(V3d_Viewer)& theViewer,
V3d_TypeOfView theType)
- : QWidget(theParent), myPaintersRedrawing(false), myScale(1.0), myIsAdvancedZoomingEnabled(
- false)
+ : QWidget(theParent),
+ myPaintersRedrawing(false),
+ myScale(1.0),
+ myIsAdvancedZoomingEnabled(false),
+ myBgImgHeight(0),
+ myBgImgWidth(0)
{
setMouseTracking(true);
setBackgroundRole(QPalette::NoRole);
myCurrPointType(XGUI::GRAVITY),
myPrevPointType(XGUI::GRAVITY),
myRotationPointSelection(false),
- myClosable(true)
+ myClosable(true),
+ myStartX(0), myStartY(0), myCurrX(0), myCurrY(0), myCurScale(0.0), myCurSketch(0),
+ myDrawRect(false), myEnableDrawMode(false), myCursorIsHand(false), myEventStarted(false),
+ myLastState(NormalState), myOperation(NOTHING)
{
mySelectedPoint = gp_Pnt(0., 0., 0.);
setFrameStyle(QFrame::Raised);