luz paz
f0d823eb51
Crowdin: Merge new translations [skip-ci]
2020-08-07 17:17:35 +02:00
mwganson
0f7c1b82b5
[Gui::CommandPy] add new command resetShortcut() -- resets shortcut to default
2020-08-06 11:29:07 +02:00
wmayer
050b20fa30
Part: [skip ci] fix crash when closing document while face colors panel is open
2020-08-06 11:26:24 +02:00
wmayer
449b8a2f18
Gui: [skip ci] set Gui.listCommands to keep old code working
2020-08-03 18:58:00 +02:00
mwganson
e4208dadc7
[Gui Commands] new command: listCommandsByShortcut(string) -- returns a python list of all commands that are using the shortcut. Search is case-insensitive and ignores spaces
2020-08-02 21:09:36 +02:00
wmayer
73f89f8cf0
Gui: [skip ci] move Python functions for commands to its own class
2020-08-02 20:50:43 +02:00
wmayer
3f7fb1af7a
Gui: add an option to also suppress normal messages
2020-07-31 19:39:49 +02:00
mwganson
1a4a52356f
[report view] add preferences to report view context menu
2020-07-31 19:39:49 +02:00
donovaly
b7d9bbba04
[App/Gui] improve coding style
...
inspired by the changes made with https://github.com/FreeCAD/FreeCAD/commit/33148684955a
2020-07-30 12:05:22 +02:00
wmayer
41ca54de70
LGTM: [skip ci] remove some obsolete FIXME comments from source code
2020-07-28 09:49:20 +02:00
wmayer
19c7fbd096
LGTM: [skip ci] fix: Inconsistent definition of copy constructor and assignment ('Rule of Two')
2020-07-27 14:39:14 +02:00
wmayer
45e0673645
LGTM: [skip ci] fix: Declaration hides parameter
...
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
wmayer
99121b75c9
LGTM: [skip ci] fix: Local variable hides global variable
...
A local variable or parameter that hides a global variable of the same name.
This may be confusing. Consider renaming one of the variables.
2020-07-26 19:30:24 +02:00
wmayer
e9ce75d544
LGTM: [skip ci] fix: Empty branch of conditional
...
An empty block after a conditional can be a sign of an omission and can decrease maintainability of the code.
Such blocks should contain an explanatory comment to aid future maintainers.
2020-07-26 15:49:14 +02:00
wmayer
e079e7a7bb
LGTM: [skip ci] fix: Non-virtual destructor in base class
2020-07-24 19:30:12 +02:00
luz paz
3ba2a7507c
Crowdin: Edits based on feedback from translators [skip-ci]
...
https://crowdin.com/translate/freecad/27911/en-en#6581566
https://crowdin.com/translate/freecad/6766/en-en#6584432
https://crowdin.com/translate/freecad/549/en-en#6578092
2020-07-24 13:49:59 +02:00
wmayer
983939b32d
Coverity: Uninitialized scalar/pointer field
2020-07-20 17:34:30 +02:00
wmayer
9b2a6edeb0
Coverity: Uncaught exception
2020-07-20 17:34:29 +02:00
wmayer
c5c8b21cc4
Gui: Optimize ViewProviderDocumentObject::getDocument()
2020-07-20 17:34:29 +02:00
wmayer
1a34d3da1f
Coverity: Uncaught exception
2020-07-20 17:34:26 +02:00
wmayer
ba683bf241
Coverity: Dereference null return value
2020-07-20 17:34:26 +02:00
wmayer
fdd6d341c7
Coverity: Dereference before null check
2020-07-20 17:34:26 +02:00
wmayer
715160ffb2
Coverity: Argument cannot be negative (actually a bug by using the wrong index variable)
2020-07-20 17:34:24 +02:00
mwganson
2e6133f63f
avoid saving to parameters if new shortcut is the default, better check for if setting shortcut was success
2020-07-20 14:11:14 +02:00
mwganson
9052be3e74
return false when unable to set shortcut
2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
4e70a108f4
convert tab to spaces
2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
488e8e4e6a
move preprocessor directives back to column 1
2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
e329e6ee03
remove some commented lines
2020-07-20 14:11:14 +02:00
mwganson
dd8b1c0d1f
[Python Gui] add new command Gui.setCommandShortcut(), fix bug in Gui.getCommandShortcut() and Gui.getCommandInfo() where user has changed shortcut via customize dialog, but these 2 commands returned previous default information
2020-07-20 14:11:14 +02:00
mwganson
07dd96beb2
[Standard Views] change preference label to default camera orientation
2020-07-20 13:48:37 +02:00
mwganson
99585f3a85
[Standard Views] add Home view command. Default shortcut is 'Home' key. Restores camera orientation to current home view, configurable in edit menu -> preferences -> display -> navigation -> New Document Camera Orientation / Home view.
2020-07-20 13:48:37 +02:00
wmayer
32a7aec18e
Gui: [skip ci] add some security checks before dereferencing pointer to QTreeWidgetItem
2020-07-18 12:05:02 +02:00
mwganson
7fdb6ac13b
[crash fix] Edit Parameters right click was causing crash unless right clicking on item
2020-07-18 11:55:24 +02:00
wmayer
380a448dd1
PVS: V560 A part of conditional expression is always true
2020-07-18 10:59:28 +02:00
wmayer
4bbdfb5f7b
PVS: V768 The expression is of enum type. It is odd that it is used as an expression of a Boolean-type.
2020-07-18 10:59:28 +02:00
wmayer
05d4496d96
PVS: V688 The local variable possesses the same name as one of the class members, which can result in a confusion
2020-07-18 10:59:28 +02:00
wmayer
2a50ac2252
PVS: V595 A pointer was utilized before it was verified against nullptr
2020-07-18 10:59:28 +02:00
wmayer
6426161ed8
PVS: V572 It is odd that the object which was created using 'new' operator is immediately cast to another type
2020-07-18 10:59:28 +02:00
wmayer
9424395afc
PVS: V1004 A pointer was used unsafely after it was verified against nullptr
2020-07-18 10:59:27 +02:00
wmayer
1b2a7ef6fc
PVS: V547 Expression is always true/false
2020-07-18 10:59:27 +02:00
wmayer
4807fd3b33
PVS: V730 Not all members of a class are initialized inside the constructor
2020-07-18 10:59:27 +02:00
wmayer
79e8562f9b
Gui: [skip ci] avoid to write several time stamps to a single line
2020-07-15 12:49:20 +02:00
Zheng, Lei
36d046d489
App/Gui: introduce temporary document
...
Add new argument to Application::newDocument() to create a temporary
document. Also exposed to Python API App.newDocument() with a named
argument 'temp'.
The temporary document is marked with status bit 'TempDoc'. The user
will not be prompt for saving when closing. The undo/redo is disabled.
The AutoSaver skips it. And the tree view will not show it.
PropertyXLink allows linking to/from object within a temporary document
without saving.
2020-07-14 19:36:05 +02:00
luz paz
e4f6689e0a
Merged crowdin translations
2020-07-13 14:49:45 +02:00
Yorik van Havre
da262c0b45
Updated master ts files
2020-07-13 13:20:21 +02:00
Thomas Gimpel
0ba7dcd0f6
Gui: do not drop unhandled key events in *SpinBox::keyPressedEvent() handlers
2020-07-12 11:38:44 +02:00
Thomas Gimpel
85846b7e58
Gui: automatically activate the DlgExpressionInput dialog; fixes #4384
2020-07-11 20:02:06 +02:00
Torsten Sadowski
b89b674a1d
Fix for Bug #4372
2020-07-11 11:34:40 +02:00
mikeprice99
415f23227b
Add timecode option for report view
2020-07-10 13:03:37 +02:00
wmayer
e89508355f
Gui: [skip ci] fix warning when opening preferences dialog in debug mode
...
The warning is e.g.: QWindowsWindow::setGeometry: Unable to set geometry 570x454+1524+350 on QWidgetWindow/'Gui__Dialog__DlgPreferencesWindow
2020-07-10 12:53:29 +02:00