View Issue Details

IDProjectCategoryView StatusLast Update
0000100FreeCADBugpublic2010-08-27 07:17
Reporteryorik Assigned ToJriegel 
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.10 
Target Version0.11 
Summary0000100: Drawing module - mouse operations don't work
DescriptionA couple of mouse operations (zooming around mouse cursor, panning, etc) seem to be implemented in the Drawing module (Drawing/App/DrawingView.cpp) but it looks like none are working here:
- pressing/dragging middle mouse button does nothing (should be panning)
- zooming with mouse wheel zooms from upper left corner (should be from mouse cursor)

Can any of you have a look?

Other point I'm wondering: Shouldn't we set the drawing sheet background as white by default (instead of Qt Base color, which can be non white)? drawing module is made almost only for printing, so it would make sense IMHO... What do you think?
TagsNo tags attached.
FreeCAD Information

Activities

Jriegel

2010-05-27 12:21

administrator   ~0000226

Unfortunately its not a bug - its just not implemented jet... ;)

yorik

2010-05-27 12:44

administrator   ~0000230

Oh sorry... I should have looked better.
I'll do a commit with the white page background okay? If anything is weird we roll back to normal...

Other thing I'd like to do: add a couple of properties to the page object:
A hint scale and a hint offset. Those properties normally won't be used by the page itself, but they would be useful so that scripts can read them, and know what is the default scale and offsets expected on a given page. So you can add objects to a page later without always setting the scale manually... Ok for you if I do that?

yorik

2010-05-27 19:21

administrator   ~0000231

Ok, I did it without your opinion... it's in rev 3185. If there is anything you don't like don't hesitate to revert.

Jriegel

2010-06-09 11:14

administrator   ~0000242

Ahhh,
I didnt see your notes!
I will take a look but im confident you make a good job.

You slowly get a C++ hacker - don't you? ;)

wmayer

2010-08-27 07:17

administrator   ~0000305

The drawing view has been reworked using Qt's QGraphicsView class which does already some of the mouse operations. However, for dragging it uses the left mouse button instead of the middle one.

Done in rev. 3465 ff.

Issue History

Date Modified Username Field Change
2010-05-22 22:38 yorik New Issue
2010-05-27 12:21 Jriegel Note Added: 0000226
2010-05-27 12:22 Jriegel Status new => assigned
2010-05-27 12:22 Jriegel Assigned To => Jriegel
2010-05-27 12:44 yorik Note Added: 0000230
2010-05-27 19:21 yorik Note Added: 0000231
2010-06-09 11:14 Jriegel Note Added: 0000242
2010-06-29 13:24 Jriegel Target Version => 0.11
2010-08-27 07:17 wmayer Note Added: 0000305
2010-08-27 07:17 wmayer Status assigned => closed
2010-08-27 07:17 wmayer Resolution open => fixed