* 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
Uses new material system for appearance
Each feature object now has a property called ShapeMaterial that
describes its physical properties. If it has a shape, it has a
material.
The ShapeColor attribute is replaced by a ShapeAppearance attribute.
This is a material list that describes all appearance properties, not
just diffuse color. As a list in can be used for all elements of a
shape, such as edges and faces.
A new widget is provided to allow the user to select materials in a
consistent fashion. It can also launch the material editor with its
more advanced capabilities.
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.
The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).
Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".
The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
* Change FileHandlder to accepts all image format supported by Qt
* Make sure image object is not touched after accepting or rejecting changes
* Make option 'Keep aspect ratio' the default
* Fix WhatThis text of command