r16820 by jghali - cleanup of unused variables and dead code in various canvas modes
scribus-commit
scribus-commit at lists.scribus.net
Tue Sep 6 22:05:58 UTC 2011
Author: jghali
Date: Tue Sep 6 22:05:58 2011
New Revision: 16820
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16820
Log:
cleanup of unused variables and dead code in various canvas modes
Modified:
trunk/Scribus/scribus/canvasmode_drawbezier.cpp
trunk/Scribus/scribus/canvasmode_drawbezier.h
trunk/Scribus/scribus/canvasmode_editgradient.h
trunk/Scribus/scribus/canvasmode_editmeshgradient.h
trunk/Scribus/scribus/canvasmode_editpolygon.h
trunk/Scribus/scribus/canvasmode_editspiral.h
Modified: trunk/Scribus/scribus/canvasmode_drawbezier.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16820&path=/trunk/Scribus/scribus/canvasmode_drawbezier.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_drawbezier.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_drawbezier.cpp Tue Sep 6 22:05:58 2011
@@ -59,13 +59,9 @@
BezierMode::BezierMode(ScribusView* view) : CanvasMode(view)
{
- GxM = GyM = -1;
Mxp = Myp = -1;
Dxp = Dyp = -1;
MoveGX = MoveGY = false;
- oldCp = Cp = -1;
- frameResizeHandle = -1;
- RotMode = 0;
inItemCreation = false;
shiftSelItems = false;
FirstPoly = true;
@@ -140,13 +136,9 @@
void BezierMode::activate(bool flag)
{
// qDebug() << "DrawBezierMode::activate" << flag;
- GxM = GyM = -1;
Mxp = Myp = -1;
Dxp = Dyp = -1;
MoveGX = MoveGY = false;
- oldCp = Cp = -1;
- frameResizeHandle = -1;
- RotMode = 0;
inItemCreation = false;
shiftSelItems = false;
FirstPoly = true;
@@ -248,7 +240,7 @@
}
else
{
- if ((m_MouseButtonPressed) && (m->buttons() & Qt::LeftButton) && (GyM == -1) && (GxM == -1))
+ if ((m_MouseButtonPressed) && (m->buttons() & Qt::LeftButton))
{
newX = qRound(mousePointDoc.x()); //m_view->translateToDoc(m->x(), m->y()).x());
newY = qRound(mousePointDoc.y()); //m_view->translateToDoc(m->x(), m->y()).y());
Modified: trunk/Scribus/scribus/canvasmode_drawbezier.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16820&path=/trunk/Scribus/scribus/canvasmode_drawbezier.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_drawbezier.h (original)
+++ trunk/Scribus/scribus/canvasmode_drawbezier.h Tue Sep 6 22:05:58 2011
@@ -52,14 +52,9 @@
void selectPage(QMouseEvent *m);
UndoTransaction* m_createTransaction;
- int Cp, oldCp;
bool inItemCreation, shiftSelItems, FirstPoly;
bool m_MouseButtonPressed;
- int frameResizeHandle;
- int RotMode;
- int dragConstrainInitPtX, dragConstrainInitPtY;
double Mxp, Myp, Dxp, Dyp;
- int GxM, GyM;
double SeRx, SeRy;
bool MoveGX, MoveGY;
FPointArray RecordP;
Modified: trunk/Scribus/scribus/canvasmode_editgradient.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16820&path=/trunk/Scribus/scribus/canvasmode_editgradient.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_editgradient.h (original)
+++ trunk/Scribus/scribus/canvasmode_editgradient.h Tue Sep 6 22:05:58 2011
@@ -69,8 +69,6 @@
double Mxp, Myp;
ScribusMainWindow* m_ScMW;
- bool m_cursorVisible;
- bool m_lastPosWasOverGuide;
eGradientPoint m_gradientPoint;
};
Modified: trunk/Scribus/scribus/canvasmode_editmeshgradient.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16820&path=/trunk/Scribus/scribus/canvasmode_editmeshgradient.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_editmeshgradient.h (original)
+++ trunk/Scribus/scribus/canvasmode_editmeshgradient.h Tue Sep 6 22:05:58 2011
@@ -69,10 +69,6 @@
double Mxp, Myp;
ScribusMainWindow* m_ScMW;
- bool m_cursorVisible;
- bool m_lastPosWasOverGuide;
- int arrayX;
- int arrayY;
eMGradientPoint m_gradientPoint;
QList<QPair<int, int> > selectedMeshPoints;
};
Modified: trunk/Scribus/scribus/canvasmode_editpolygon.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16820&path=/trunk/Scribus/scribus/canvasmode_editpolygon.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_editpolygon.h (original)
+++ trunk/Scribus/scribus/canvasmode_editpolygon.h Tue Sep 6 22:05:58 2011
@@ -73,8 +73,6 @@
double Mxp, Myp;
ScribusMainWindow* m_ScMW;
- bool m_cursorVisible;
- bool m_lastPosWasOverGuide;
QPointF startPoint;
QPointF endPoint;
QPointF centerPoint;
Modified: trunk/Scribus/scribus/canvasmode_editspiral.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16820&path=/trunk/Scribus/scribus/canvasmode_editspiral.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_editspiral.h (original)
+++ trunk/Scribus/scribus/canvasmode_editspiral.h Tue Sep 6 22:05:58 2011
@@ -70,8 +70,6 @@
double Mxp, Myp;
ScribusMainWindow* m_ScMW;
- bool m_cursorVisible;
- bool m_lastPosWasOverGuide;
QPointF startPoint;
QPointF endPoint;
double startAngle;
More information about the scribus-commit
mailing list