Console: rename PascalCase named methods to camelCase

This commit is contained in:
bofdahof
2025-03-30 00:50:27 +10:00
committed by Kacper Donat
parent 1dbc0638c3
commit ba2c2ca5ad
497 changed files with 2423 additions and 2425 deletions

View File

@@ -52,13 +52,13 @@ using DGU = DrawGuiUtil;
QGMarker::QGMarker(int idx) : QGIVertex(idx),
m_dragging(false)
{
// Base::Console().Message("QGMarker::QGMarker(%d)\n", idx);
// Base::Console().message("QGMarker::QGMarker(%d)\n", idx);
setFlag(QGraphicsItem::ItemIsMovable, true);
}
void QGMarker::mousePressEvent(QGraphicsSceneMouseEvent * event)
{
// Base::Console().Message("QGMarker::mousePressEvent() - focustype: %d\n",
// Base::Console().message("QGMarker::mousePressEvent() - focustype: %d\n",
// scene()->focusItem()->type() - QGraphicsItem::UserType);
if (event->button() == Qt::RightButton) { //we're done
@@ -97,7 +97,7 @@ void QGMarker::mouseReleaseEvent(QGraphicsSceneMouseEvent * event)
void QGMarker::mouseDoubleClickEvent(QGraphicsSceneMouseEvent * event)
{
// Base::Console().Message("QGMarker::mouseDoubleClickEvent(%d)\n", getProjIndex());
// Base::Console().message("QGMarker::mouseDoubleClickEvent(%d)\n", getProjIndex());
if (event->button() == Qt::RightButton) { //we're done
// we are finished our edit session
Q_EMIT endEdit();
@@ -109,7 +109,7 @@ void QGMarker::mouseDoubleClickEvent(QGraphicsSceneMouseEvent * event)
void QGMarker::keyPressEvent(QKeyEvent * event)
{
// Base::Console().Message("QGMarker::keyPressEvent(%d)\n", getProjIndex());
// Base::Console().message("QGMarker::keyPressEvent(%d)\n", getProjIndex());
if (event->key() == Qt::Key_Escape) {
m_dragging = false;
Q_EMIT endEdit();
@@ -160,7 +160,7 @@ QGEPath::QGEPath() :
QVariant QGEPath::itemChange(GraphicsItemChange change, const QVariant &value)
{
// Base::Console().Message("QGEP::itemChange(%d) - type: %d\n", change, type() - QGraphicsItem::UserType);
// Base::Console().message("QGEP::itemChange(%d) - type: %d\n", change, type() - QGraphicsItem::UserType);
if (change == ItemSelectedHasChanged && scene()) {
if(isSelected()) {
Q_EMIT selected(true);
@@ -205,7 +205,7 @@ void QGEPath::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
//! this begins an edit session for a path described by pathPoints.
void QGEPath::startPathEdit(const std::vector<QPointF>& pathPoints)
{
// Base::Console().Message("QGEPath::startPathEdit()\n");
// Base::Console().message("QGEPath::startPathEdit()\n");
inEdit(true);
m_ghostPoints = pathPoints;
showMarkers(m_ghostPoints);
@@ -213,13 +213,13 @@ void QGEPath::startPathEdit(const std::vector<QPointF>& pathPoints)
void QGEPath::showMarkers(const std::vector<QPointF>& points)
{
// Base::Console().Message("QGEPath::showMarkers()\n");
// Base::Console().message("QGEPath::showMarkers()\n");
if (!inEdit()) {
return;
}
if (points.empty()) {
Base::Console().Message("QGEP::showMarkers - no deltas\n");
Base::Console().message("QGEP::showMarkers - no deltas\n");
return;
}
@@ -262,7 +262,7 @@ void QGEPath::showMarkers(const std::vector<QPointF>& points)
void QGEPath::clearMarkers()
{
// Base::Console().Message("QGEPath::clearMarkers()\n");
// Base::Console().message("QGEPath::clearMarkers()\n");
if (m_markers.empty()) {
return;
}
@@ -282,7 +282,7 @@ void QGEPath::clearMarkers()
// end of node marker drag
void QGEPath::onDragFinished(QPointF dragEndPos, int markerIndex)
{
// Base::Console().Message("QGEPath::onDragFinished(%s, %d)\n",
// Base::Console().message("QGEPath::onDragFinished(%s, %d)\n",
// TechDraw::DrawUtil::formatVector(dragEndPos).c_str(),
// markerIndex);
if ((int) m_ghostPoints.size() > markerIndex) {
@@ -304,13 +304,13 @@ void QGEPath::onDoubleClick(QPointF pos, int markerIndex)
{
Q_UNUSED(pos);
Q_UNUSED(markerIndex);
// Base::Console().Message("QGEPath::onDoubleClick()\n");
// Base::Console().message("QGEPath::onDoubleClick()\n");
onEndEdit();
}
void QGEPath::onEndEdit()
{
// Base::Console().Message("QGEPath::onEndEdit()\n");
// Base::Console().message("QGEPath::onEndEdit()\n");
if (m_ghost) {
scene()->removeItem(m_ghost); //stop ghost from messing up brect
}
@@ -324,7 +324,7 @@ void QGEPath::onEndEdit()
//announce points editing is finished
void QGEPath::updateParent()
{
// Base::Console().Message("QGEPath::updateParent() - inEdit: %d pts: %d\n", inEdit(), m_ghostPoints.size());
// Base::Console().message("QGEPath::updateParent() - inEdit: %d pts: %d\n", inEdit(), m_ghostPoints.size());
// dumpGhostPoints("QGEP::updateParent");
QPointF attach = m_ghostPoints.front();
if (!inEdit()) {
@@ -335,7 +335,7 @@ void QGEPath::updateParent()
//! the ghost is the red line drawn when creating or editing the points
void QGEPath::drawGhost()
{
// Base::Console().Message("QGEPath::drawGhost()\n");
// Base::Console().message("QGEPath::drawGhost()\n");
if (!m_ghost->scene()) {
m_ghost->setParentItem(this);
}
@@ -381,7 +381,7 @@ void QGEPath::dumpGhostPoints(const char* text)
{
int idb = 0;
for (auto& d: m_ghostPoints) {
Base::Console().Message("%s - point: %d %s\n", text,
Base::Console().message("%s - point: %d %s\n", text,
idb, TechDraw::DrawUtil::formatVector(d).c_str());
idb++;
}
@@ -391,7 +391,7 @@ void QGEPath::dumpMarkerPos(const char* text)
{
int idb = 0;
for (auto& m: m_markers) {
Base::Console().Message("QGEP - %s - markerPos: %d %s\n", text,
Base::Console().message("QGEP - %s - markerPos: %d %s\n", text,
idb, TechDraw::DrawUtil::formatVector(m->pos()).c_str());
idb++;
}