Triangle brush cursors

This commit is contained in:
konero 2023-01-15 22:34:12 +00:00 committed by manongjohn
parent 33d474a58a
commit 5ba47b0238
12 changed files with 57 additions and 1 deletions

View file

@ -19,6 +19,14 @@ enum {
PenCursor,
PenLargeCursor,
PenCrosshairCursor,
PenTriangleTopLeftCursor,
PenTriangleTopRightCursor,
PenTriangleBottomLeftCursor,
PenTriangleBottomRightCursor,
PenTriangleUpCursor,
PenTriangleDownCursor,
PenTriangleLeftCursor,
PenTriangleRightCursor,
BenderCursor,
CutterCursor,
DistortCursor,

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -28,6 +28,22 @@ const struct {
{ToolCursor::PenCursor, "brush", 16, 15, false},
{ToolCursor::PenLargeCursor, "brush_large", 16, 15, false},
{ToolCursor::PenCrosshairCursor, "brush_crosshair", 16, 15, false},
{ToolCursor::PenTriangleTopLeftCursor, "brush_triangle_top_left",
16, 15, false},
{ToolCursor::PenTriangleTopRightCursor, "brush_triangle_top_right",
16, 15, false},
{ToolCursor::PenTriangleBottomLeftCursor, "brush_triangle_bottom_left",
16, 15, false},
{ToolCursor::PenTriangleBottomRightCursor, "brush_triangle_bottom_right",
16, 15, false},
{ToolCursor::PenTriangleUpCursor, "brush_triangle_up",
16, 15, false},
{ToolCursor::PenTriangleDownCursor, "brush_triangle_down",
16, 15, false},
{ToolCursor::PenTriangleLeftCursor, "brush_triangle_left",
16, 15, false},
{ToolCursor::PenTriangleRightCursor, "brush_triangle_right",
16, 15, false},
{ToolCursor::BenderCursor, "bender", 9, 7, true},
{ToolCursor::CutterCursor, "cutter", 6, 24, true}, // 12,20, ???},
{ToolCursor::EraserCursor, "eraser", 7, 21, true}, // 15,16, ???},
@ -174,6 +190,22 @@ public:
cursorType = ToolCursor::PenLargeCursor;
else if (brushType == "Crosshair")
cursorType = ToolCursor::PenCrosshairCursor;
else if (brushType == "Triangle Top Left")
cursorType = ToolCursor::PenTriangleTopLeftCursor;
else if (brushType == "Triangle Top Right")
cursorType = ToolCursor::PenTriangleTopRightCursor;
else if (brushType == "Triangle Bottom Left")
cursorType = ToolCursor::PenTriangleBottomLeftCursor;
else if (brushType == "Triangle Bottom Right")
cursorType = ToolCursor::PenTriangleBottomRightCursor;
else if (brushType == "Triangle Up")
cursorType = ToolCursor::PenTriangleUpCursor;
else if (brushType == "Triangle Down")
cursorType = ToolCursor::PenTriangleDownCursor;
else if (brushType == "Triangle Left")
cursorType = ToolCursor::PenTriangleLeftCursor;
else if (brushType == "Triangle Right")
cursorType = ToolCursor::PenTriangleRightCursor;
}
bool useLeft =

View file

@ -82,6 +82,14 @@
<file>Resources/ex_precise_left.png</file>
<file>Resources/brush_large.png</file>
<file>Resources/brush_crosshair.png</file>
<file>Resources/brush_triangle_top_left.png</file>
<file>Resources/brush_triangle_top_right.png</file>
<file>Resources/brush_triangle_bottom_left.png</file>
<file>Resources/brush_triangle_bottom_right.png</file>
<file>Resources/brush_triangle_up.png</file>
<file>Resources/brush_triangle_down.png</file>
<file>Resources/brush_triangle_left.png</file>
<file>Resources/brush_triangle_right.png</file>
<file>Resources/tracker.png</file>
<file>Resources/ex_prev.png</file>
<file>Resources/ex_prev_left.png</file>

View file

@ -1454,7 +1454,15 @@ QList<ComboBoxItem> PreferencesPopup::getComboItemList(
{cursorBrushType,
{{tr("Small"), "Small"},
{tr("Large"), "Large"},
{tr("Crosshair"), "Crosshair"}}},
{tr("Crosshair"), "Crosshair"},
{tr("Triangle Top Left"), "Triangle Top Left"},
{tr("Triangle Top Right"), "Triangle Top Right"},
{tr("Triangle Bottom Left"), "Triangle Bottom Left"},
{tr("Triangle Bottom Right"), "Triangle Bottom Right"},
{tr("Triangle Up"), "Triangle Up"},
{tr("Triangle Down"), "Triangle Down"},
{tr("Triangle Left"), "Triangle Left"},
{tr("Triangle Right"), "Triangle Right"}}},
{cursorBrushStyle,
{{tr("Default"), "Default"},
{tr("Left-Handed"), "Left-Handed"},