On HiDPI screens, the Clarify Selection context menu appears
far to the right of the intended position when triggered via
right-click, which was making it really problematic to select entities.
So the easiest solution is to apply `devicePixeLRatio` scaling when
converting the stored right-click postiion from device pixels to Qt
logical coordinates before calling `mapToGlobal()`.
"Professional CMake" book suggest the following:
"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."
Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
+ added some better grouping for items, which are assigned per object
right now. For example, if we exceed 10 items per object it gets an
additional group.
Co-authored-by: realthunder <realthunder@users.noreply.github.com>
As the title says, this is from RT's fork. I only adjusted it a little
bit and removed pie selection which was previously in the
implementation.
To activate context menu - "G, G", then if it can't resolve edges vs
faces, it adds QMenus on top to let user decide which one to select.
Co-authored-by: tetektoza <tetektoza@users.noreply.github.com>
* Fix and add menu accelerators: menus common to all workbenches
I use menu accelerators fairly often, so I find it very frustrating when
they are missing, or worse, they don't work due to the same letter being
assigned to several commands.
This patch adds accelerators to lots of menu entries missing them and
fixes broken accelerators.
Wherever possible, standard accelerator keys are used:
https://doc.qt.io/qt-5/accelerators.html
This commit covers accelerator fixes that are common to all workbenches.
Accelerator fixes for specific workbenches will be done in separate
commits.
* Add missing accelerators: Spreadsheet workbench
doSelect() loops over document's object vector. It can happen that, within
the loop, Gui::Selection().addSelection() gets called and that ends up
calling App::Document::addObject() which pushes an object to the vector that
the loop is traversing. If the vector is full, its storage is reallocated
and this means that later iterations of the loop are using invalid iterators.
Thus, one ends up with a bogus obj pointer and there will be a crash within
getGroupOfObject(). The problem was observed when using Arch Survey.
The image Std_ViewScreenShot.svg was not used in the GUI. The command Std_ViewScreenShot used a different icon. This caused a name conflict in the Wiki.
* Added the new QSS file with images
Added the new QSS file with images
* fixed some disabled colors to be the same everywhere.
* update
* big update fixed the scrollbars and lots more.
* small tweaks
* small fixes
* fixed groupbox in qsint
* Added light classic
This light theme is basicallyt exactly no-stylesheet.
* fixed the tabs
* fixed background reportview
* updated overlay stylesheets
* Added preference settings from Opentheme @obelisk79
* tabbar tweaks
* forgot the gradients on dark
* Overlay stylesheets clean-up +move icon to folder.
* removing old stylesheets
removing old stylesheets
* it was icons not icon, fixed it.
* updated cmake and package.xml
* to many spaces
* removing old theme's
* updated default overlay qss
* removed my settings files
* updated cfg files
* Bunch of fixes
I compiled it and didn't see any issues anymore. Could be some discussions about the new startpage thumbnails.
* fixed up double arrows and the correct logo!
* updated the work file for the icons
* Sets no-stylesheet overlay to a stylesheet.
* type in cmakelist
* type in filename
* oeps did set the dark theme
* Update OverlayManager.cpp
I removed a bit to much reverting this line
* fixed text color issue in Qsint on the light theme and dark background
* Update Light Theme + Dark Background.qss
Fine tuning the treeview it now works good for ligth theme and dark brackgrounds.
* removed prodark added back Behave dark overlay
@Syres916 I deleted the overlay qss behave dark by accident.
But you might want to check this PR out since it changes a lot.
I deleted Pro-dark since it was not updated and is outdated and it looks also a lot like the default dark.
* Update Light Theme + Light Background.qss
Fixes
* small fixes
small fixes
* remove ProDark
* Update CMakeLists.txt
* changed the thumbnails
Also removed teh dimensions in the filename since that got annoying real fast :)
* Updated other overlay stylesheets
* missing extension
* cleanup and some fixes to the overlay.
* Update Dark Theme + Light Background.qss
udpated the dark theme overaly with light background for all you maniacs who use this.
* Title bar fix for windows
This makes it so that it uses black title bar in windows if you have dark mode
* updated white background and some colors
* I think I fix merge issue now.
* Some cleanup on the thumbnails
* Create CMakePresets.json
* idk
* trying to fix conflicts
* removing old themes
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Some fixes for Qsint sketcher toolbars icons
* fixed merge issue with maingui
* trying to fix merge conflicts
* and removing again.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Several group commands are active but require an active document to work. This PR overrides the method isActive() to
disable the commands if no active document exists.
The affected commands are:
* Std_ViewGroup
* Std_LinkActions
* PartDesign_CompDatums
* PartDesign_CompSketches