Commit Graph

397 Commits (feat/tqmake)

Author SHA1 Message Date
Michele Calgaro 92fe63114b
rename qmake to tqmake
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 months ago
Alexander Golubev ed67ad10dd Call TQApplication::coreThread() in a static manner
This is a follow-up to d346b0f7a

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
2 months ago
Michele Calgaro d346b0f7af
Rename 'guiThread' and related functions to 'coreThread'.
A TTY TQApplication is GUI-less, so the usage of the term 'GUI' is
misleading.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 months ago
Michele Calgaro 2584dba8aa
Fix handling of socket notifier events in gmainloop functions.
This resolves issue #231.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 months ago
Michele Calgaro 9735ca1c13
Improve X11 'ProcessEvents()' with some code from the equivalent glib version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 months ago
Michele Calgaro 5e8114b6f0
Explicitly add 'ExcludeTimers' to 'ProcessEvent' enum
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 months ago
Michele Calgaro 6da60fd237
Do not check for expired TQt timers in 'gsourcePrepare' and 'gsourceCheck'
since timers are only activated by the main GUI thread in 'gsourceDispatch'.
This solves issue TDE/tdebase#635.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 months ago
Michele Calgaro 3143d2d40a
Fix usage of condition variable in TQThread which could lead to a thread being run multiple times in parallel.
Although highly unlikely, the following situation was possible:
- a thread is restarted while still running. The call to the second 'start()' blocks because the thread is still running
- the OS decides to randomly wake up the thread that called 'start()'
- a second thread is started and runs in parallel to the first thread, with obvious undefined behavior

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 months ago
Slávek Banko c68a6387dd
Fix a typo and thus FTBFS from the recent commit.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 months ago
Michele Calgaro a69ae19e8b
Remove 'grp' from TQChar since now surrogate pairs are correctly supported
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 months ago
Michele Calgaro 3ad431df9a
Move TQChar code to standalone files tqchar.{h,cpp}
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 months ago
Michele Calgaro 9c648bea9b
Fix editing of text containing surrogate characters.
This relates to issue #162.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro 486aa07930
Extend work on supporting surrogate characters done in commit e0a38072
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro 46f42bcd5a
Drop support for discontinued DGUX
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro c5cda03125
Add support for surrogate pairs to TQChar API.
This relates to issue #162.
The new code is partially taken from Qt4 but with some local rework.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro d517cda6bd
Fix FTBFS with gcc 15. This resolves issue #214
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
8 months ago
Michele Calgaro e0a38072cf
Add support for Unicode surrogate characters and planes above zero.
If the selected font supports the required characters, the text will be displayed correctly.
If the selected font does not support such characters, empty boxes will be displayed in place of the expected text.

Part of the code changes comes from Qt4 code.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro ccd304b2a6
Drop code for obsolete FreeType 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 2b0ea37581
Remove support for Tru64, OSF and SCO v3.2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 01d46198d1
Rename Q_EXPORT to TQ_EXPORT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 37293565c3
Remove support for Metrowerks compiler
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 7eccd2d016
Remove unnecessary files
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
9 months ago
Michele Calgaro 792e93f6e9
Remove support for discontinued Reliant/Sinix unix
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
11 months ago
Michele Calgaro c489c62c17
Update tqt-mt.pc to export the same parameters previously exported in tqt.pc and tqtqui.pc.
Required to drop tqtinterface.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
11 months ago
Michele Calgaro 69e1261df6
Drop Borland compiler specific code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
11 months ago
Michele Calgaro fed2da8d26
Move time related functions from tqtinterface/tqapplication.{h,cpp}
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
11 months ago
Michele Calgaro 397b7afa8e
Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
11 months ago
Michele Calgaro e93b60dfa2
Rename uic to tquic
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
12 months ago
Michele Calgaro 8066b05478
Remove use of glib thread code. Use pthread instead
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
12 months ago
Michele Calgaro 587657561b
Rename moc to tqmoc
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
12 months ago
Michele Calgaro 4161606c30
Remove documentation for Motif extension classes. Those classes are not included in tqt3 source code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 81288cfcb6
Make sure to release thread resources back to the OS once the thread completes.
Threads created with pthread are created in detach mode. Threads created using glib thread functions are instead created as joinable. The fix makes glib-created threads detached, so that the thread resources are released when the thread completes.

This resolves TDE/amarok#30 and will benefit any place where a TQThread is used.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 24b42848c1
Fix fallover case for TQEvent::MetaCall
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 8e65307661
Fix possible SEGV if the sender object list was null and thread support enabled
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 8721929234
Rename private q* headers into equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 6f57abfc9c
Rename remaining ntq[s-z]* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 0582c90a9e
Rename remaining ntq[m-r]* related files to equivalent tq* (except ntqmodules.h)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 39f8a475b4
Rename remaining ntq[i-l]* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro e42ec295c2
Rename remaining ntq[d-h]* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 0917fbb538
Rename remaining ntq[a-c]* related files to equivalent tq* (except ntqapplication.h and ntqconfig.h)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 7b1d2ad2df
Remove obsolete ntqabstractlayout.h header
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 367ff3fb9e
Rename global classes nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro d35eedcd87
Rename style nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro ddce1c91f8
Improve handling of the global post event list in order to minimize possible crashes on exit.
Key points:
1. a TQPostEventList can now have an associated mutex, which is used in case of the global post event list (GPEL)
2. the lifetime of the GPEL is no longer associated to the lifetime of the TQApplication object, but rather extended to the lifetime of the main thread. The GPEL is a static local initialized on first access and destroyed when the global static object destructor is invoked
3. access to the GPEL after the TQApplication object has been destroyed has been minimized by protecting calls in ~TQObject() and ~TQWidget().
4. special care was taken not to affect performances or unnecessarily create tons of unused TQMutexes

This replaces PR #182. Technically it is still possibly unsafe due to the order of destruction of the globat static objects not being guaranteed across multiple compilation units, but the aforementioned changes should minimize (possible to zero) the chances of a SEGV happening.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 82ecd83484
Rename layout nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
ormorph c55ef27a2c
Added check for tqApp pointer in TQWidget destructor
Necessary for the application to shut down properly

Signed-off-by: ormorph <roma251078@mail.ru>
1 year ago
Michele Calgaro 42957a3f81
Rename more widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro fef846914f
Rename basic widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 8ef4ea451d
Rename environment class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago
Michele Calgaro 0e787fb7f5
Rename text class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
1 year ago