[Sketcher] Tool Parameter widget + Offset tool#11174
[Sketcher] Tool Parameter widget + Offset tool#11174abdullahtahiriyo merged 12 commits intoFreeCAD:mainfrom
Conversation
|
@abdullahtahiriyo Lint error for which I am not sure what to do : DrawSketchControllableHandler :
DrawSketchDefaultHandler :
Does this need to include ViewProviderSketch.h in DrawSketchDefaultHandler.h ? |
======================================================== Architecture to support multiple input from a widget and a mouse.
======================================= Rewrite of the architecture to accomodate on-view parameters and to enable code reuse between the default widget and custom widgets.
===================================================== Enforce strong typing to avoid all kinds of abusive implicit conversionsm, the corresponding associated bugs and make code more readable.
|
I guess it adds the polygon tool too. You may want to update the PR description (for testers to know what to expect). |
|
@abdullahtahiriyo There is something we did not cleaned up its the toolbar UI of rectangle tool.
|
|
Ah yes I forgot about polygon. I added it to the description. To update my UI preference, I would rather do this :
|
|
@abdullahtahiriyo I have pushed a commit to remove the rectangle command group and replace by the single rectangle tool. So oblong and rectangle by center removed from the toolbar. Let me know if this is ok like this. And also if you prefer that we create a 'shape' command group with slot and polygon. |
It sounds as a feature rather than an oversight when we look into merging this PR fast. The last we want is to start a toolbar discussion at this point. Of course, the result is suboptimal after this PR is merged and needs to be addressed.
Oblong = rounded corners rectangle. This sounds as a bug and needs to be fixed (it needs open with the checkbox checked).
I have no big problems. From a practical point of view I do not make polygons extremely often and I could leave with having a polygon in a comp in which the representative is a rectangle. I could also leave with slot under rectangle and polygons separately. I would not cry either if I end up keeping slot and polygons separated. However, others might not be so forthcoming (rectangle not being a regular polygon, slot not even being an irregular polygon... being some of the arguments). At least in the past, this caused very heated discussions. We deliver functionality first. When everybody can play with it, we discuss in the forum and see how it goes. This is a kind of community decision. |
|
Ok so maybe its best to merge as it is now (ie rectangle comp replaced by single rectangle tool and the rest is unchanged.) Then we can discuss the UI in deeper discussion |
|
I would not dare to remove the center and rounded rectangle without a UI discussion. Is it a problem to just fix the oblong? |
|
Oblong can be fixed.
But I think ultimately we don't want to keep these 3 tools icon. Because
why having a oblong icon and not a oblong by center? And why not a 3p
rectangle? If we follow this logic the command group can have 16 icons.
But yes this would still be a UI decision. And fixing is not too hard so if
you prefer I can fix it.
…On Fri, Oct 27, 2023, 16:39 abdullahtahiriyo ***@***.***> wrote:
I would not dare to remove the center and rounded rectangle without a UI
discussion.
Is it a problem to just fix the oblong?
—
Reply to this email directly, view it on GitHub
<#11174 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYO6MMVRFJQRXSKCRGFL43YBPBQRAVCNFSM6AAAAAA6O4JNYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTGAZTANJYHE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
|
I have just forced push to rollback previous commit, and instead just fixed the oblong tool so that it opens diagonal + round corner. Such that the ui is not changed. After this PR, people can play a little bit with it and we can discuss the UI at this point. I am not sure it is worth waiting until after the weekend, we will have more people who will feedback if it merges. But waiting is fine for me as well. |
|
@PaddleStroke is it possible to group the horizontal and vertical constraints into a drop down and the new dropdown icon would invoke a new "straight" command (setting either a horizontal or vertical constraint, depending if the line is closer to horizontal or vertical). |
|
Please, add those changes. I will handle the incomplete type lints that compile fine in a separate PR, while I make myself acquainted with qtcreator. Then, we can merge. |
|
I will fix those asap. |
…an prevent going to the next mode on certain conditions.
|
I have just done the small fixes and squashed the commits. |
|
Thank you and sorry for the delay. |
|
Thanks for handling this large project :) |
|
I am currently doing some fixing of issues with lack of headers and other code issues from static tools. I would like to handle the feedback in the forum thread with a certain degree of priority. Not only the one we have now, but also the one that should arrive over the weekend and the next week. My biggest concern for this work was the framework. You have also gained substantial ability to use it (and even adapt it). I do not expect major issues with PRs porting existing tools to it. I think the single most important issue warranting merit at this point is in making all users comfortable with the introduction of the framework. Not necessarily by catering all their requests, but by actively listening and discussing what can be done to improve. |
No but the tools still need to be tested to make sure I didn't missed any bugs. There are many cases so its easy to forget one.
Of course! |
|
@PaddleStroke thank you for your work! Do you also have a plan to implement this in the Polyline tool? |
|
@maxwxyz Thanks ! |
|
OK If I finally am able to build FC, maybe I can dive in (total newbie). |
This is something I actually worked on before. It probably won't be a simple spinbox as we have in on View Parameters because of the additional features. But my prototype was looking good. There was one issue with the expression dialog that got this feature stuck. I haven't been back to it yet. |
…g|384px]] | В инструмент [[Sketcher_CreateArcSlot/ru|Создать дуговой слот (Паз по дуге)]] добавлено два режима (дуговые торцы и плоские торцы), позволяющие создавать изогнутые пазы [FreeCAD/FreeCAD#11174 Запрос на изменение #11174] |}"
…g|384px]] | В инструмент [[Sketcher_CreateArcSlot/ru|Создать дуговой слот (Паз по дуге)]] добавлено два режима (дуговые торцы и плоские торцы), позволяющие создавать изогнутые пазы [FreeCAD/FreeCAD#11174 Запрос на изменение #11174] |}"
…амки. [FreeCAD/FreeCAD#11174 Запрос на изменение #11174] * Для инструмента «Отрезок» добавлено два новых режима: «Точка, длина, угол» и «Точка, ширина, высота». [FreeCAD/FreeCAD#11174 Запрос на изменение #11174] *..."
…амки. [FreeCAD/FreeCAD#11174 Запрос на изменение #11174] * Для инструмента «Отрезок» добавлено два новых режима: «Точка, длина, угол» и «Точка, ширина, высота». [FreeCAD/FreeCAD#11174 Запрос на изменение #11174] *..."
Fixes #10436
Fixes #7221
Fixes #5839
This PR adds parameters to sketcher tools. Some settings on the 3d view directly. Some settings in a taskbox widget on the taskview.
This PR include :