Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix type/mode name confusion

pojienie8cee2ee0e5c7
diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp
index c27f65ffc..2484e6d7b 100644
--- a/toonz/sources/toonz/mainwindow.cpp
+++ b/toonz/sources/toonz/mainwindow.cpp
@@ -452,9 +452,9 @@ centralWidget->setLayout(centralWidgetLayout);*/
setCommandHandler(MI_EditCenter, this, &MainWindow::toggleEditNextCenter);
setCommandHandler(MI_EditAll, this, &MainWindow::toggleEditNextAll);
- /*-- Selection tool + mode switching shortcuts --*/
- setCommandHandler(MI_SelectionNextMode, this,
- &MainWindow::toggleSelectionNextMode);
+ /*-- Selection tool + type switching shortcuts --*/
+ setCommandHandler(MI_SelectionNextType, this,
+ &MainWindow::toggleSelectionNextType);
setCommandHandler(MI_SelectionRectangular, this,
&MainWindow::toggleSelectionRectangular);
setCommandHandler(MI_SelectionFreehand, this,
@@ -462,9 +462,9 @@ centralWidget->setLayout(centralWidgetLayout);*/
setCommandHandler(MI_SelectionPolyline, this,
&MainWindow::toggleSelectionPolyline);
- /*-- Geometric tool + mode switching shortcuts --*/
- setCommandHandler(MI_GeometricNextMode, this,
- &MainWindow::toggleGeometricNextMode);
+ /*-- Geometric tool + shape switching shortcuts --*/
+ setCommandHandler(MI_GeometricNextShape, this,
+ &MainWindow::toggleGeometricNextShape);
setCommandHandler(MI_GeometricRectangle, this,
&MainWindow::toggleGeometricRectangle);
setCommandHandler(MI_GeometricCircle, this,
@@ -478,8 +478,8 @@ centralWidget->setLayout(centralWidgetLayout);*/
setCommandHandler(MI_GeometricPolygon, this,
&MainWindow::toggleGeometricPolygon);
- /*-- Type tool + mode switching shortcuts --*/
- setCommandHandler(MI_TypeNextMode, this, &MainWindow::toggleTypeNextMode);
+ /*-- Type tool + style switching shortcuts --*/
+ setCommandHandler(MI_TypeNextStyle, this, &MainWindow::toggleTypeNextStyle);
setCommandHandler(MI_TypeOblique, this, &MainWindow::toggleTypeOblique);
setCommandHandler(MI_TypeRegular, this, &MainWindow::toggleTypeRegular);
setCommandHandler(MI_TypeBoldOblique, this,
@@ -2509,8 +2509,8 @@ void MainWindow::defineActions() {
createAction(MI_EditCenter, tr("Animate Tool - Center"), "", ToolCommandType);
createAction(MI_EditAll, tr("Animate Tool - All"), "", ToolCommandType);
- /*-- Selection tool + mode switching shortcuts --*/
- createAction(MI_SelectionNextMode, tr("Selection Tool - Next Mode"), "",
+ /*-- Selection tool + type switching shortcuts --*/
+ createAction(MI_SelectionNextType, tr("Selection Tool - Next Type"), "",
ToolCommandType);
createAction(MI_SelectionRectangular, tr("Selection Tool - Rectangular"), "",
ToolCommandType);
@@ -2519,8 +2519,8 @@ void MainWindow::defineActions() {
createAction(MI_SelectionPolyline, tr("Selection Tool - Polyline"), "",
ToolCommandType);
- /*-- Geometric tool + mode switching shortcuts --*/
- createAction(MI_GeometricNextMode, tr("Geometric Tool - Next Mode"), "",
+ /*-- Geometric tool + shape switching shortcuts --*/
+ createAction(MI_GeometricNextShape, tr("Geometric Tool - Next Shape"), "",
ToolCommandType);
createAction(MI_GeometricRectangle, tr("Geometric Tool - Rectangle"), "",
ToolCommandType);
@@ -2537,8 +2537,8 @@ void MainWindow::defineActions() {
createAction(MI_GeometricPolygon, tr("Geometric Tool - Polygon"), "",
ToolCommandType);
- /*-- Type tool + mode switching shortcuts --*/
- createAction(MI_TypeNextMode, tr("Type Tool - Next Mode"), "",
+ /*-- Type tool + style switching shortcuts --*/
+ createAction(MI_TypeNextStyle, tr("Type Tool - Next Style"), "",
ToolCommandType);
createAction(MI_TypeOblique, tr("Type Tool - Oblique"), "", ToolCommandType);
createAction(MI_TypeRegular, tr("Type Tool - Regular"), "", ToolCommandType);
@@ -2724,8 +2724,8 @@ void MainWindow::toggleEditNextAll() {
}
//---------------------------------------------------------------------------------------
-/*-- Selection tool + mode switching shortcuts --*/
-void MainWindow::toggleSelectionNextMode() {
+/*-- Selection tool + type switching shortcuts --*/
+void MainWindow::toggleSelectionNextType() {
if (TApp::instance()->getCurrentTool()->getTool()->getName() == T_Selection)
CommandManager::instance()->getAction("A_ToolOption_Type")->trigger();
else
@@ -2754,8 +2754,8 @@ void MainWindow::toggleSelectionPolyline() {
}
//---------------------------------------------------------------------------------------
-/*-- Geometric tool + mode switching shortcuts --*/
-void MainWindow::toggleGeometricNextMode() {
+/*-- Geometric tool + shape switching shortcuts --*/
+void MainWindow::toggleGeometricNextShape() {
if (TApp::instance()->getCurrentTool()->getTool()->getName() == T_Geometric)
CommandManager::instance()
->getAction("A_ToolOption_GeometricShape")
@@ -2814,7 +2814,7 @@ void MainWindow::toggleGeometricPolygon() {
}
//---------------------------------------------------------------------------------------
/*-- Type tool + mode switching shortcuts --*/
-void MainWindow::toggleTypeNextMode() {
+void MainWindow::toggleTypeNextStyle() {
if (TApp::instance()->getCurrentTool()->getTool()->getName() == T_Type)
CommandManager::instance()->getAction("A_ToolOption_TypeStyle")->trigger();
else
diff --git a/toonz/sources/toonz/mainwindow.h b/toonz/sources/toonz/mainwindow.h
index c4f670e67..c5cbc19c6 100644
--- a/toonz/sources/toonz/mainwindow.h
+++ b/toonz/sources/toonz/mainwindow.h
@@ -117,13 +117,13 @@ public:
void toggleEditNextAll();
/*-- Selection tool + mode switching shortcuts --*/
- void toggleSelectionNextMode();
+ void toggleSelectionNextType();
void toggleSelectionRectangular();
void toggleSelectionFreehand();
void toggleSelectionPolyline();
- /*-- Geometric tool + mode switching shortcuts --*/
- void toggleGeometricNextMode();
+ /*-- Geometric tool + shape switching shortcuts --*/
+ void toggleGeometricNextShape();
void toggleGeometricRectangle();
void toggleGeometricCircle();
void toggleGeometricEllipse();
@@ -132,8 +132,8 @@ public:
void toggleGeometricArc();
void toggleGeometricPolygon();
- /*-- Type tool + mode switching shortcuts --*/
- void toggleTypeNextMode();
+ /*-- Type tool + style switching shortcuts --*/
+ void toggleTypeNextStyle();
void toggleTypeOblique();
void toggleTypeRegular();
void toggleTypeBoldOblique();
diff --git a/toonz/sources/toonz/menubarcommandids.h b/toonz/sources/toonz/menubarcommandids.h
index b3d04651e..11a655871 100644
--- a/toonz/sources/toonz/menubarcommandids.h
+++ b/toonz/sources/toonz/menubarcommandids.h
@@ -343,12 +343,12 @@
#define MI_EditCenter "MI_EditCenter"
#define MI_EditAll "MI_EditAll"
-#define MI_SelectionNextMode "MI_SelectionNextMode"
+#define MI_SelectionNextType "MI_SelectionNextType"
#define MI_SelectionRectangular "MI_SelectionRectangular"
#define MI_SelectionFreehand "MI_SelectionFreehand"
#define MI_SelectionPolyline "MI_SelectionPolyline"
-#define MI_GeometricNextMode "MI_GeometricNextMode"
+#define MI_GeometricNextShape "MI_GeometricNextShape"
#define MI_GeometricRectangle "MI_GeometricRectangle"
#define MI_GeometricCircle "MI_GeometricCircle"
#define MI_GeometricEllipse "MI_GeometricEllipse"
@@ -357,7 +357,7 @@
#define MI_GeometricArc "MI_GeometricArc"
#define MI_GeometricPolygon "MI_GeometricPolygon"
-#define MI_TypeNextMode "MI_TypeNextMode"
+#define MI_TypeNextStyle "MI_TypeNextStyle"
#define MI_TypeOblique "MI_TypeOblique"
#define MI_TypeRegular "MI_TypeRegular"
#define MI_TypeBoldOblique "MI_TypeBoldOblique"