Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor of mouse feature #9

Merged
merged 8 commits into from Nov 10, 2011

Conversation

schmendrick
Copy link
Contributor

hi.

additional cursors available.

mostly changes like the other pull request.

BUT:
CloneStampTool has TWO icons. When holding CTRL the alternate one will be shown.
But it will not work all the time:
if somebody has the wicked idea of pressing CTRL BEFORE selecting the tool, the icon will not be changed.

I have not found another way without some serious rework.
I am pretty sure GTK has ways to get the state of the control key without the key event, but I am not familiar with GTK and I did not find it yet.

with that pull request we've got all but 2 cursors.

the only 2 left are the "big" ones.
Erase & Paintbrush.

For both I would want to create a "radius" for the cursor depending on the brush_width, but I guess I would need to do that dynamically when creating the cursor and when the width changes.
Are you aware of already existing functionality I could reuse for that?

with regards,
felix

Cursor.PaintBucket.png
added also to resources, to Pinta.Resources.csproj&makefile and to PaintBucketTool.cs
Cursor.PaintBucket.png
added also to resources, to Pinta.Resources.csproj&makefile and to PaintBucketTool.cs
added the png Cursor.LassoSelect.png and added it to resources (to csproj & makefile)
added the png Cursor.Text.png and added it to resources (to csproj & makefile)
added the 2 corresponding pngs and added those to the makefile.am and resources.csproj

additionally:
in LineCurveTool changed the endlines of the Priority method to javastyle (like with the rest of the override'd methods in that class)
added cursors for ColorPicker, Rectangle, RoundedRectangle and FreeFormShape tools
Added clone stamp cursor including the alternate "setsource" cursor
note that there is a known limitation with this setsource implementation:
it will only work as long as the ctrl button is not clicked BEFORE the tool is selected
to Resources/Makefile and to RecolorTool.cs
cameronwhite added a commit that referenced this pull request Nov 10, 2011
@cameronwhite cameronwhite merged commit 4214d82 into PintaProject:master Nov 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants