Chris Hennes
a63cbd7057
Gui: Fix ignored font preference
2025-09-18 11:45:45 -05:00
Markus Reitböck
6ef07bb358
Gui: use CMake to generate precompiled headers on all platforms
...
"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
2025-09-14 09:47:03 +02:00
Lee Matos
fcd1b923b3
Gui: Fix #12199 missing font family Courier on MacOS
2025-07-28 10:17:18 +02:00
wmayer
f5bfc10c81
Gui: avoid code duplication in PythonEditor
2025-05-30 18:04:33 +02:00
Chris Hennes
8d29aabe4d
Merge pull request #19924 from benj5378/codeDupEditor
...
Gui: avoid code duplication in PythonEditor
2025-03-17 00:02:03 -05:00
Benjamin Bræstrup Sayoc
e397c73a45
Gui: avoid code duplication in PythonEditor
2025-03-13 14:23:05 +01:00
Kacper Donat
a72a63232a
Base: Move App::Color to Base
...
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
Benjamin Bræstrup Sayoc
f647d4a1eb
Gui: Use QStringLiteral
2025-02-10 18:34:57 +01:00
Benjamin Bræstrup Sayoc
81a27a9252
[Gui] Make autocompletion global
...
Now auto complete is in all TextEdit objects. Fixes #12850
2025-01-22 06:12:43 -06:00
wmayer
d979235a48
Gui: Remove code duplication in PythonConsole class
2025-01-06 17:53:59 +01:00
wmayer
0dba0a3b31
Gui: Hide line marker and do not highlight current line in Python console
2025-01-06 17:53:59 +01:00
mwganson
9db4e89467
[PythonEditor] Make converting tabs to spaces the default
2024-12-23 11:53:05 -05:00
Benjamin Bræstrup Sayoc
13d00f9884
[Gui] TextEdit, zoom on Ctrl + wheel
...
Fixes #13861
2024-10-07 18:02:53 +02:00
wmayer
c016f1c1fb
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
wmayer
54bb9c9c62
Gui: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
wmayer
7c359469ba
Gui: use Color::asPackedRGB<QColor>()
2023-02-26 10:11:53 +01:00
wmayer
2e5cb03261
Gui: move to new style connect()
2023-02-01 13:49:35 +01:00
wmayer
103de43a4e
Gui: fix possible problems with new style connect
...
* In UIntSpinBox rename the signal to not overwrite the signal of the base class
* In UIntSpinBox use the (ambiguous) signal 'valueChanged' of the base class QSpinBox
* To avoid that connect() fails use the function pointer of the Qt class where the signal is defined
2023-01-12 17:02:59 +01:00
Uwe
ed995b5a15
[Gui] modernize some connect() settings
...
- addresses #6166
2023-01-12 15:13:16 +01:00
0penBrain
5bb041deaa
Gui: use default app text color for Python code instuctions highlighting
...
This allows to deal with OS native dark themes
In such cases, Python instructions were black on a dark background
2022-10-10 07:33:41 -07:00
wmayer
807fa281a8
Core: replace QRegExp with QRegularExpression
2022-10-06 13:54:20 +02:00
marioalexis
0382f276a2
Gui: Replace C cast
2022-09-18 11:06:51 -05:00
berniev
75acacd1b7
Gui: Use auto and range-based for ( #7481 )
...
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto.
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
wmayer
d5921e08ec
fix (Qt) issues found by clang's clazy tool:
...
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
wmayer
a91f5e7352
Gui: do not reset tab size to 4 when creating new text editor
2022-04-22 14:33:44 +02:00
wmayer
96adb98f46
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
Uwe
aa7977c51a
[Gui] Task* and Text*: remove unused includes
2022-03-05 17:44:07 +01:00
marioalexis
ec167207bf
Gui: Add functionality to enable/disable block shape cursor in text editor and console
2022-01-26 11:53:29 +01:00
wmayer
4f12416fa0
Gui: fix C++20 warning: bitwise operation between different enumeration types [-Wdeprecated-enum-enum-conversion]
2021-12-02 09:59:31 +01:00
wmayer
bbacecb397
Gui: fix C++20 warning: bitwise operation between different enumeration types [-Wdeprecated-enum-enum-conversion]
2021-12-01 23:45:26 +01:00
wmayer
f3ca27e18e
Gui: add search box to text editor
2021-10-25 13:29:42 +02:00
luz paz
298c677873
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
wmayer
6d0a136aad
Qt5: 'void Q[Plain]TextEdit::setTabStopWidth(int)' is deprecated [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
1ee3d79d7c
Qt5: 'int QFontMetrics::width' is deprecated since Qt 5.11: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
053312188b
Qt5: 'void QListWidget::setItemSelected(const QListWidgetItem*, bool)' is deprecated: Use QListWidgetItem::setSelected() instead [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
f0320d954a
PVS: V629 Consider inspecting the 'col.red() << 24' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type.
2019-02-17 22:27:00 +01:00
wmayer
72ab17fb48
fix typos
2016-12-19 14:07:35 +01:00
wmayer
f19d424d8b
fix -Wextra in FreeCADGui
2016-09-21 20:54:52 +02:00
wmayer
0824c5fd3c
fix Coverity issues
2016-08-21 14:03:02 +02:00
mandeeps708
e5cb8db3ce
fixes Enable/Disable line number of MacroEditor
2016-04-20 22:23:48 +02:00
Mateusz Skowroński
cd2db00f22
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
wmayer
d927d0bcb9
+ improve handling of default colors of report view and Python console when using style sheets
2014-01-31 11:34:30 +01:00
Yorik van Havre
5ca9ca1111
Allow to change macro editor line highlight color in preferences
2012-03-18 01:53:04 -03:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00