Skip to content

Commit 006f184

Browse files
committed
Rename the scratchcppgui namespace to scratchcpprender
1 parent a536d08 commit 006f184

32 files changed

+47
-47
lines changed

src/irenderedtarget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Target;
1616

1717
} // namespace libscratchcpp
1818

19-
namespace scratchcppgui
19+
namespace scratchcpprender
2020
{
2121

2222
class StageModel;
@@ -77,4 +77,4 @@ class IRenderedTarget : public QNanoQuickItem
7777
virtual const std::vector<QPointF> &hullPoints() const = 0;
7878
};
7979

80-
} // namespace scratchcppgui
80+
} // namespace scratchcpprender

src/keyeventhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include "keyeventhandler.h"
66

7-
using namespace scratchcppgui;
7+
using namespace scratchcpprender;
88

99
KeyEventHandler::KeyEventHandler(QObject *parent) :
1010
QObject(parent)

src/keyeventhandler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <QObject>
66

7-
namespace scratchcppgui
7+
namespace scratchcpprender
88
{
99

1010
class KeyEventHandler : public QObject
@@ -20,4 +20,4 @@ class KeyEventHandler : public QObject
2020
void keyReleased(Qt::Key key, const QString &text);
2121
};
2222

23-
} // namespace scratchcppgui
23+
} // namespace scratchcpprender

src/mouseeventhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "mouseeventhandler.h"
77
#include "renderedtarget.h"
88

9-
using namespace scratchcppgui;
9+
using namespace scratchcpprender;
1010

1111
MouseEventHandler::MouseEventHandler(QObject *parent) :
1212
QObject(parent)

src/mouseeventhandler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class QQuickItem;
99
class QSinglePointEvent;
1010
class QHoverEvent;
1111

12-
namespace scratchcppgui
12+
namespace scratchcpprender
1313
{
1414

1515
class IRenderedTarget;
@@ -44,4 +44,4 @@ class MouseEventHandler : public QObject
4444
QQuickItem *m_spriteRepeater = nullptr;
4545
};
4646

47-
} // namespace scratchcppgui
47+
} // namespace scratchcpprender

src/projectloader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "spritemodel.h"
1010
#include "renderedtarget.h"
1111

12-
using namespace scratchcppgui;
12+
using namespace scratchcpprender;
1313
using namespace libscratchcpp;
1414

1515
void runEventLoop(IEngine *engine)

src/projectloader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "stagemodel.h"
1111

12-
namespace scratchcppgui
12+
namespace scratchcpprender
1313
{
1414

1515
class SpriteModel;
@@ -126,4 +126,4 @@ class ProjectLoader : public QObject
126126
std::atomic<bool> m_stopLoading = false;
127127
};
128128

129-
} // namespace scratchcppgui
129+
} // namespace scratchcpprender

src/projectscene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "projectscene.h"
88
#include "keyeventhandler.h"
99

10-
using namespace scratchcppgui;
10+
using namespace scratchcpprender;
1111
using namespace libscratchcpp;
1212

1313
static const std::unordered_map<Qt::Key, KeyEvent::Type> SPECIAL_KEY_MAP = {

src/projectscene.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace libscratchcpp
99
class IEngine;
1010
}
1111

12-
namespace scratchcppgui
12+
namespace scratchcpprender
1313
{
1414

1515
class KeyEventHandler;
@@ -49,4 +49,4 @@ class ProjectScene : public QQuickItem
4949
KeyEventHandler *m_keyHandler = nullptr;
5050
};
5151

52-
} // namespace scratchcppgui
52+
} // namespace scratchcpprender

src/renderedtarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "spritemodel.h"
1212
#include "scenemousearea.h"
1313

14-
using namespace scratchcppgui;
14+
using namespace scratchcpprender;
1515
using namespace libscratchcpp;
1616

1717
static const double SVG_SCALE_LIMIT = 0.1; // the maximum viewport dimensions are multiplied by this

0 commit comments

Comments
 (0)