summaryrefslogtreecommitdiffstats
path: root/src/kernel
Commit message (Collapse)AuthorAgeFilesLines
* Call TQApplication::coreThread() in a static mannerAlexander Golubev2025-07-271-2/+2
| | | | | | This is a follow-up to d346b0f7a Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Rename 'guiThread' and related functions to 'coreThread'.Michele Calgaro2025-07-277-59/+67
| | | | | | | A TTY TQApplication is GUI-less, so the usage of the term 'GUI' is misleading. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix handling of socket notifier events in gmainloop functions.Michele Calgaro2025-06-162-10/+19
| | | | | | This resolves issue #231. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Improve X11 'ProcessEvents()' with some code from the equivalent glib versionMichele Calgaro2025-06-131-10/+17
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Explicitly add 'ExcludeTimers' to 'ProcessEvent' enumMichele Calgaro2025-06-115-18/+16
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Do not check for expired TQt timers in 'gsourcePrepare' and 'gsourceCheck'Michele Calgaro2025-06-111-10/+14
| | | | | | | 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>
* Fix usage of condition variable in TQThread which could lead to a thread ↵Michele Calgaro2025-03-221-3/+5
| | | | | | | | | | | 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>
* Fix editing of text containing surrogate characters.Michele Calgaro2025-02-132-11/+34
| | | | | | This relates to issue #162. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Extend work on supporting surrogate characters done in commit e0a38072Michele Calgaro2025-02-096-105/+117
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Add support for surrogate pairs to TQChar API.Michele Calgaro2025-01-302-11/+9
| | | | | | | 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>
* Add support for Unicode surrogate characters and planes above zero.Michele Calgaro2025-01-127-111/+72
| | | | | | | | | 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>
* Drop code for obsolete FreeType 1Michele Calgaro2025-01-1010-680/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove support for Tru64, OSF and SCO v3.2Michele Calgaro2025-01-075-21/+3
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename Q_EXPORT to TQ_EXPORTMichele Calgaro2025-01-021-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Update tqt-mt.pc to export the same parameters previously exported in tqt.pc ↵Michele Calgaro2024-10-313-348/+315
| | | | | | | | and tqtqui.pc. Required to drop tqtinterface. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop Borland compiler specific codeMichele Calgaro2024-10-285-27/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Move time related functions from tqtinterface/tqapplication.{h,cpp}Michele Calgaro2024-10-222-0/+27
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq*Michele Calgaro2024-10-2262-109/+109
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename uic to tquicMichele Calgaro2024-10-112-5/+5
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove use of glib thread code. Use pthread insteadMichele Calgaro2024-10-081-31/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename moc to tqmocMichele Calgaro2024-10-066-13/+10
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove documentation for Motif extension classes. Those classes are not ↵Michele Calgaro2024-10-031-3/+1
| | | | | | included in tqt3 source code Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Make sure to release thread resources back to the OS once the thread completes.Michele Calgaro2024-10-021-0/+1
| | | | | | | | 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>
* Fix fallover case for TQEvent::MetaCallMichele Calgaro2024-10-011-2/+8
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix possible SEGV if the sender object list was null and thread support enabledMichele Calgaro2024-09-241-13/+19
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename private q* headers into equivalent tq*Michele Calgaro2024-09-1361-101/+101
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[s-z]* related files to equivalent tq*Michele Calgaro2024-09-1249-70/+70
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[m-r]* related files to equivalent tq* (except ntqmodules.h)Michele Calgaro2024-09-0438-55/+55
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[i-l]* related files to equivalent tq*Michele Calgaro2024-08-3122-34/+34
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[d-h]* related files to equivalent tq*Michele Calgaro2024-08-3116-40/+40
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[a-c]* related files to equivalent tq* (except ↵Michele Calgaro2024-08-2943-86/+86
| | | | | | ntqapplication.h and ntqconfig.h) Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove obsolete ntqabstractlayout.h headerMichele Calgaro2024-08-296-62/+3
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename global classes nt* related files to equivalent tq*Michele Calgaro2024-08-2932-42/+42
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename style nt* related files to equivalent tq*Michele Calgaro2024-08-296-14/+14
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Improve handling of the global post event list in order to minimize possible ↵Michele Calgaro2024-08-233-77/+92
| | | | | | | | | | | | | | 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>
* Rename layout nt* related files to equivalent tq*Michele Calgaro2024-08-1613-31/+31
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Added check for tqApp pointer in TQWidget destructorormorph2024-08-161-2/+2
| | | | | | Necessary for the application to shut down properly Signed-off-by: ormorph <roma251078@mail.ru>
* Rename more widget nt* related files to equivalent tq*Michele Calgaro2024-08-125-22/+22
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename basic widget nt* related files to equivalent tq*Michele Calgaro2024-07-293-15/+15
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename environment class nt* related files to equivalent tq*Michele Calgaro2024-07-2828-100/+123
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename text class nt* related files to equivalent tq*Michele Calgaro2024-07-248-43/+20
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename graphics class nt* related files to equivalent tq* (part 2)Michele Calgaro2024-07-2164-134/+134
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix OpenType language definition tags and array access. This resolves issue #171Michele Calgaro2024-07-211-9/+32
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename graphics class nt* related files to equivalent tq* (part 1)Michele Calgaro2024-07-1868-217/+217
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename IO and network class nt* related files to equivalent tq*Michele Calgaro2024-07-1067-178/+178
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename utility class nt* related files to equivalent tq*Michele Calgaro2024-07-0751-76/+76
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename drag-n-drop nt* related files to equivalent tq*Michele Calgaro2024-07-0716-38/+38
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename main window nt* related files to equivalent tq*. The fileMichele Calgaro2024-07-0626-92/+45
| | | | | | "ntqsession.h" was totally unnecessary and has been removed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename codec nt* related files to equivalent tq*.Michele Calgaro2024-07-012-13/+13
| | | | | | The qrtlcodec files have been renamed into tqhebrewcodec files, for consistency with file naming used for other codecs. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename threading nt* related files to equivalent tq*Michele Calgaro2024-06-3016-34/+34
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>