View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000403 | FreeCAD | Feature | public | 2011-07-20 04:59 | 2011-09-16 04:28 |
| Reporter | lparry91 | Assigned To | |||
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | trunk | ||||
| Summary | 0000403: is SHIFT / CONTROL pressed with mousebutton: see ViewProviderSketch::mouseButtonPressed() | ||||
| Description | I am looking to implement selection using the SHIFT key in the sketcher. It doesn't feel natural as a user at the moment. I understand that there is ViewProviderSketch::keyPressed() method and it maybe possible to create a class member such as selectPressed but it seems very wrong. I have found that there is a method for detecting these in coin3d but is a member SoMouseButtonEvent. In Gui/ViewProvider.cpp would it be possible to pass this event as an optional event argument in the event in mouseButtonPressed() and mouseMove. It would give greater flexibility. | ||||
| Tags | No tags attached. | ||||
| FreeCAD Information | |||||
|
|
The Sketcher is in edit always in greedy selection mode. Thats by purpose. It would be also possible to do it non greedy. All events necessary reach the event handling routines. Im not sure what you want. Do you need addition interfaces to change the standard FreeCAD behavior or do you want us to change it? |
|
|
Maybe the better place to discuss such unspecific matters is the developer forum: http://forum.freecadweb.org/viewforum.php?f=10 |
|
|
Jriegel. Greedy Selection is fine for now. However, on a similar note. I want to create a doubleclick event on a datum or dimensioner in Sketch. The only parameters are void. bool ViewProviderSketch::doubleClicked(void) I am not sure where to look or change this in class hierarchy but it'd be nice if it were of similar to the mouseButtonPressed. bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVec3f &point, const SbVec3f &normal, const SoPickedPoint* pp) In future I'll use the forum. ;) |
|
|
Jriegel. Greedy Selection is fine for now. However, on a similar note. I want to create a doubleclick event on a datum or dimensioner in Sketch. The only parameters are void. bool ViewProviderSketch::doubleClicked(void) I am not sure where to look or change this in class hierarchy but it'd be nice if it were of similar to the mouseButtonPressed. bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVec3f &point, const SbVec3f &normal, const SoPickedPoint* pp) In future I'll use the forum. ;) |
|
|
The only way Coin gives us there is measure the time between two mouse downs on the same object... There is no double click event of Coin... The bool ViewProviderSketch::doubleClicked(void) is triggered by a double click on the tree item. |
|
|
Since Luke already implemented double click I think this one is not needed any more.... |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-07-20 04:59 | lparry91 | New Issue | |
| 2011-07-20 14:49 |
|
Note Added: 0000932 | |
| 2011-07-20 14:51 |
|
Note Added: 0000933 | |
| 2011-07-21 18:10 | unauthenticated | Note Added: 0000934 | |
| 2011-07-21 18:10 | unauthenticated | Note Added: 0000935 | |
| 2011-07-21 18:57 |
|
Note Added: 0000937 | |
| 2011-09-16 04:27 |
|
Note Added: 0001082 | |
| 2011-09-16 04:27 |
|
Status | new => closed |
| 2011-09-16 04:28 |
|
Resolution | open => no change required |
FreeCAD