From fd3a982e26813f5bcc82c7e89ce6fa2ad44432bf Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 04:10:07 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1212480 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konsole/COPYING | 6 +- konsole/ChangeLog | 12 +-- konsole/README.fonts | 6 +- konsole/README.unicode | 24 +++--- konsole/doc/Konsole2.Requirements | 2 +- konsole/doc/More/Ansi_esc.txt | 2 +- konsole/doc/More/Eterm.ref | 6 +- konsole/doc/More/ansix364.txt | 6 +- konsole/doc/More/dec_vt100_codes.txt | 2 +- konsole/doc/More/rxvt-ref.html | 8 +- konsole/doc/More/swedish_vt102_codes.txt | 4 +- konsole/doc/More/villanova-vt100-esc-codes.txt | 4 +- konsole/doc/More/vt100_codes_news.txt | 18 ++--- konsole/doc/More/vt100_reference_card.txt | 4 +- konsole/doc/More/vt100_setup.txt | 2 +- konsole/doc/More/xterm.codes | 2 +- konsole/doc/VT100/Table.Codes | 26 +++---- konsole/doc/VT100/db.trans | 2 +- konsole/doc/VT100/genDocument | 6 +- konsole/doc/VT100/genTC.pl | 42 +++++----- konsole/doc/VT100/techref.html | 40 +++++----- konsole/eventsrc | 8 +- konsole/konsole/TEHistory.cpp | 6 +- konsole/konsole/TEPty.cpp | 2 +- konsole/konsole/TEScreen.cpp | 12 +-- konsole/konsole/TEWidget.cpp | 102 ++++++++++++------------- konsole/konsole/TEWidget.h | 2 +- konsole/konsole/TEmuVt102.cpp | 48 ++++++------ konsole/konsole/TEmuVt102.h | 2 +- konsole/konsole/TEmulation.cpp | 8 +- konsole/konsole/fontembedder.cpp | 12 +-- konsole/konsole/keytrans.cpp | 34 ++++----- konsole/konsole/keytrans.h | 8 +- konsole/konsole/konsole.cpp | 58 +++++++------- konsole/konsole/konsole_part.cpp | 52 ++++++------- konsole/konsole/konsole_part.h | 6 +- konsole/konsole/konsole_wcwidth.cpp | 12 +-- konsole/konsole/konsole_wcwidth.h | 4 +- konsole/konsole/konsolebookmarkmenu.cpp | 4 +- konsole/konsole/linefont.h | 2 +- konsole/konsole/main.cpp | 6 +- konsole/konsole/schema.cpp | 18 ++--- konsole/konsole/schema.h | 6 +- konsole/konsole/session.cpp | 14 ++-- konsole/konsole/session.h | 2 +- konsole/kwrited.desktop | 6 +- konsole/tests/esc.c | 2 +- konsole/tests/main.c | 38 ++++----- konsole/tests/vttest.1 | 2 +- 49 files changed, 350 insertions(+), 350 deletions(-) (limited to 'konsole') diff --git a/konsole/COPYING b/konsole/COPYING index 0058a832a..5185fd3f3 100644 --- a/konsole/COPYING +++ b/konsole/COPYING @@ -65,7 +65,7 @@ modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - 0. This License applies to any program or other work which tqcontains + 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" @@ -102,7 +102,7 @@ above, provided that you also meet all of these conditions: stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in - whole or in part tqcontains or is derived from the Program or any + whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. @@ -160,7 +160,7 @@ Sections 1 and 2 above provided that you also do one of the following: The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source -code means all the source code for all modules it tqcontains, plus any +code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include diff --git a/konsole/ChangeLog b/konsole/ChangeLog index ab3539748..55aacd580 100644 --- a/konsole/ChangeLog +++ b/konsole/ChangeLog @@ -79,10 +79,10 @@ Lots happened here... - added privacy code 1049. - reverted to TERM=xterm. 11 Jan 2000 -- upgraded xterm title hack to tqunicode. -- upgraded copy/paste to handle tqunicode. +- upgraded xterm title hack to unicode. +- upgraded copy/paste to handle unicode. 7 Jan 2000 -- added tqunicode support. (see README.tqunicode) +- added unicode support. (see README.unicode) - added arbitrary long history buffers. - code adjustments to the provide linux console font. - added font directory to simply installation. @@ -125,10 +125,10 @@ Lots happened here... - added some docs - set version to 0.9.10 06 Feb 1999 -- adjusting tqgeometry save/restore +- adjusting geometry save/restore 03 Feb 1999 - fixed -caption -- some adjustments in tqgeometry management +- some adjustments in geometry management 01 Feb 1999 Matt Gerassimoff - scroll line wise through the history buffer using Shift-Up/Down 31 Jan 1998 @@ -195,7 +195,7 @@ Lots happened here... - marking within mouse aware application now needs an extra shift - added command configuration files /opt/kde/share/apps/konsole/*.kdelnk 24 Oct 1998 - - adjusted tqgeometry management. Window is not resized anylonger when + - adjusted geometry management. Window is not resized anylonger when changeing font size, scrollbar, frame, menubar. - made font & schema attributes per-session. 23 Oct 1998 diff --git a/konsole/README.fonts b/konsole/README.fonts index 0466a6cb6..55d410980 100644 --- a/konsole/README.fonts +++ b/konsole/README.fonts @@ -72,8 +72,8 @@ Fonts need to suit the needs of X11, QT and konsole. The following graphical glyphs are defined in VT100 fonts, too, but are not used in any program i know about. Codes for them have been assigned - in the private tqunicode page. See the linux kernel - documentation file [tqunicode.txt] about this assignment. + in the private unicode page. See the linux kernel + documentation file [unicode.txt] about this assignment. - 0x10 U+f800 : DEC VT GRAPHICS HORIZONTAL LINE SCAN 1 - 0x11 U+f801 : DEC VT GRAPHICS HORIZONTAL LINE SCAN 3 @@ -111,7 +111,7 @@ Fonts need to suit the needs of X11, QT and konsole. Use the "DEFAULT_CHAR" property with bdf fonts to do so. Other font representations provide - likely means. The tqunicode assignment is U+fffd. + likely means. The unicode assignment is U+fffd. If such a character isn't defined, X11 might choose to void the character completely, causing diff --git a/konsole/README.unicode b/konsole/README.unicode index b366a6bad..bf8134674 100644 --- a/konsole/README.unicode +++ b/konsole/README.unicode @@ -1,6 +1,6 @@ -[README.tqunicode] +[README.unicode] -Konsole supports tqunicode, which means one can display up +Konsole supports unicode, which means one can display up to 64K different glyphs at the same time on one screen. The enhancement is pretty complete and the main current @@ -9,7 +9,7 @@ within localed environments. At least the european locales should be enabled to use their local scripts when running konsole. -To fully install it, please get a complete set of tqunicode +To fully install it, please get a complete set of unicode enhanced fixed fonts from . @@ -29,36 +29,36 @@ Also, a new linux console font has been converted for X11. This font has iso10646-1 encoding and the usual vga glyphs. -* A more precise anatomy of tqunicode support within konsole +* A more precise anatomy of unicode support within konsole -The internal character representation is uniquely 16 bit tqunicode. +The internal character representation is uniquely 16 bit unicode. All in- and output connections of konsole (beside the mouse) are filtered through three different codecs (corresponding to 2 different codes): - 1) Font Code - The renderer converts from tqunicode to the code of + 1) Font Code - The renderer converts from unicode to the code of the font to the degree that code is supported within Qt. - Non-iso10646 (tqunicode) codes are considered to be VT100 - enhanced, meaning that 0x00 .. 0x1f tqcontains the VT100 + Non-iso10646 (unicode) codes are considered to be VT100 + enhanced, meaning that 0x00 .. 0x1f contains the VT100 graphical characters. 2) Client Code - This is used for bytes from and to the pty. Often, the clients code is identical with the locale setting. -Thus, tqunicode support mainly turns out to be a potter's wheel of +Thus, unicode support mainly turns out to be a potter's wheel of code conversions. Beside these conversions, up to 2^16 diffent glyphs can be displayed now. Though it is not possible to type each of these codes, one can use utf-8 encoding on the clients side. -Please note that tqunicode support is still under development in +Please note that unicode support is still under development in the freeware community and is not supported by terminal aware applications, since ncurses does currently not provide wide character operations. -Because utf-8 tqcontains ascii-7 properly, one can work with utf-8 +Because utf-8 contains ascii-7 properly, one can work with utf-8 enabled as long as no international characters are used. Try to cat 9x15.repertoire-utf8 from the test when having utf-8 encoding enabled. @@ -66,7 +66,7 @@ enabled. Utf-8 code is enabled and disabled by sending %G or %@. The utf8.sh utility in the test directory does this. -Though utf8 properly tqcontains ascii-7 note that the length of a +Though utf8 properly contains ascii-7 note that the length of a utf8 encoded string differs from the length of the string itself. This confuses many length aware programs as soon as proper (non- ascii-7 characters) are used, this may result in deviating cursor diff --git a/konsole/doc/Konsole2.Requirements b/konsole/doc/Konsole2.Requirements index 45633403b..19cbd72fc 100644 --- a/konsole/doc/Konsole2.Requirements +++ b/konsole/doc/Konsole2.Requirements @@ -29,7 +29,7 @@ This file is to collect requirements and ideas for this. Current history algorithm does not allow to limit the histories size. Also, it descreases the speed. -- improve tqunicode support +- improve unicode support this is both an ncurses and terminfo issue. We may need to provide some help for these packages. diff --git a/konsole/doc/More/Ansi_esc.txt b/konsole/doc/More/Ansi_esc.txt index 795b3d091..ede1a7c24 100644 --- a/konsole/doc/More/Ansi_esc.txt +++ b/konsole/doc/More/Ansi_esc.txt @@ -1,6 +1,6 @@ ANSI ESCAPE SEQUENCES =============================================================================== -Wherever you see '#', that should be tqreplaced by the appropriate number. +Wherever you see '#', that should be replaced by the appropriate number. ESC code sequence Function ------------------- --------------------------- diff --git a/konsole/doc/More/Eterm.ref b/konsole/doc/More/Eterm.ref index de808b84b..849be1f3b 100644 --- a/konsole/doc/More/Eterm.ref +++ b/konsole/doc/More/Eterm.ref @@ -151,8 +151,8 @@ ESC [ Pm m Character Attributes (SGR) Ps = 37 / 47 -> fg / bg White Ps = 39 / 49 -> fg / bg Default -ESC [ Ps n Device tqStatus Report (DSR) - Ps = 5 -> tqStatus Report ESC [ 0 n (``OK'') +ESC [ Ps n Device Status Report (DSR) + Ps = 5 -> Status Report ESC [ 0 n (``OK'') Ps = 6 -> Report Cursor Position (CPR) [row;column] as ESC [ r ; c R Ps = 7 -> Request Display Name @@ -295,7 +295,7 @@ or "\E]20;;200;?\a" sets the scaling of the current pixmap to 200% and displays - the image tqgeometry in the title. + the image geometry in the title. -------------------------------------------------------------------------- Eterm menuBar diff --git a/konsole/doc/More/ansix364.txt b/konsole/doc/More/ansix364.txt index 37844fee0..da74ad156 100644 --- a/konsole/doc/More/ansix364.txt +++ b/konsole/doc/More/ansix364.txt @@ -48,7 +48,7 @@ DCH Delete Character Esc [ Pn P 1 eF DCS Device Control String Esc P Delim DL Delete Line Esc [ Pn M 1 eF DMI Disable Manual Input Esc \ Fs -DSR Device tqStatus Report Esc [ Ps n 0 +DSR Device Status Report Esc [ Ps n 0 EA Erase in Area Esc [ Ps O 0 eF ECH Erase Character Esc [ Pn X 1 eF ED Erase in Display Esc [ Ps J 0 eF @@ -196,7 +196,7 @@ ANSI X3.64 Mode-Changing Parameters for use with the 3/1 1 GATM guarded-area transfer mode 3/2 2 KAM keyboard action mode 3/3 3 CRM control representation mode -3/4 4 IRM insertion/tqreplacement mode +3/4 4 IRM insertion/replacement mode 3/5 5 SRTM status-reporting transfer mode 3/6 6 ERM erasure mode 3/7 7 VEM vertical editing mode @@ -277,7 +277,7 @@ by transmitting the sequence where Ps is a character that describes installed options. -The VT100's cursor location can be read with the DSR (Device tqStatus +The VT100's cursor location can be read with the DSR (Device Status Report) control Esc [ 6 n diff --git a/konsole/doc/More/dec_vt100_codes.txt b/konsole/doc/More/dec_vt100_codes.txt index 7a2a59aac..e9d4b9f82 100644 --- a/konsole/doc/More/dec_vt100_codes.txt +++ b/konsole/doc/More/dec_vt100_codes.txt @@ -107,7 +107,7 @@ ANSI Compatible Mode Response is ESC [ Pl; Pc R * Pl = line number; Pc = column number - tqStatus Report + Status Report Invoked by ESC [ 5 n Response is ESC [ 0 n (terminal ok) ESC [ 3 n (terminal not ok) diff --git a/konsole/doc/More/rxvt-ref.html b/konsole/doc/More/rxvt-ref.html index 847e41964..a27f5b4bc 100644 --- a/konsole/doc/More/rxvt-ref.html +++ b/konsole/doc/More/rxvt-ref.html @@ -1,7 +1,7 @@ @@ -484,8 +484,8 @@ Reset Mode (RM)
ESC [ Ps n
-
Device tqStatus Report (DSR)
-Ps = 5 : tqStatus Report ESC [ 0 n (``OK'')
+
Device Status Report (DSR)
+Ps = 5 : Status Report ESC [ 0 n (``OK'')
Ps = 6 : Report Cursor Position (CPR) [row;column] as ESC [ r ; c R
Ps = 7 : Request Display Name
@@ -1095,7 +1095,7 @@ For example:
\E]20;mona;100\a
load mona.xpm with a scaling of 100%
\E]20;;200;?\a
-
rescale the current pixmap to 200% and display the image tqgeometry +
rescale the current pixmap to 200% and display the image geometry in the title

diff --git a/konsole/doc/More/swedish_vt102_codes.txt b/konsole/doc/More/swedish_vt102_codes.txt index b19c74b14..7fca08c71 100644 --- a/konsole/doc/More/swedish_vt102_codes.txt +++ b/konsole/doc/More/swedish_vt102_codes.txt @@ -284,12 +284,12 @@ Reports Where is '0'=Response Ready, no malfunctions detected '3'=Malfunction, error in self-test. - '5'=tqStatus report request + '5'=Status report request '6'=Request cursor position. '?10'=Response to printer status request, All ok. '?11'=Response to printer status request, Printer is not ready. '?13'=Response to printer status request, No printer. - '?15'=tqStatus report request from printer + '?15'=Status report request from printer Cursor position raport (Response to request cursor position) Esc [ ; R diff --git a/konsole/doc/More/villanova-vt100-esc-codes.txt b/konsole/doc/More/villanova-vt100-esc-codes.txt index 053c0f3c8..8142978ed 100644 --- a/konsole/doc/More/villanova-vt100-esc-codes.txt +++ b/konsole/doc/More/villanova-vt100-esc-codes.txt @@ -13,7 +13,7 @@ In-Reply-To: <9010240014.AA10730@ucbvax.Berkeley.EDU> 23 Oct 90 16:00 EDT Campus Computing - Terminal Emulation Includes VT100 and VT52 Terminal and Control Codes - This file tqcontains control and terminal codes for the VT100 terminals, + This file contains control and terminal codes for the VT100 terminals, ANSI terminals, and VT52 terminals. Many of the codes were derived from PC/ Intercomm, from Mark of the Unicorn Software. I have researched some of them and added some of my own. @@ -377,7 +377,7 @@ VT100 CURRENT STATES: be the same. 9600 baud is sent for 7200 baud. - Esc [ Ps n DSR: Device tqStatus Report + Esc [ Ps n DSR: Device Status Report * Parameter values other than 5, 6, are ignored. If the parameter value is 5, the sequence diff --git a/konsole/doc/More/vt100_codes_news.txt b/konsole/doc/More/vt100_codes_news.txt index 5cb09baea..d136e2224 100644 --- a/konsole/doc/More/vt100_codes_news.txt +++ b/konsole/doc/More/vt100_codes_news.txt @@ -57,7 +57,7 @@ Cursor Key VT52 mode key mode reset key mode set If the Special Graphics set is selected, the graphics for ASCII codes -0137 through 0176 will be tqreplaced according to the following table (see the +0137 through 0176 will be replaced according to the following table (see the SCS control sequence). @@ -384,7 +384,7 @@ DECALN Screen Alignment Display (DEC private) # 8 This command causes the VT100 to fill it's screen with uppercase Es for - screen focus and tqalignment. + screen focus and alignment. DECANM ANSI/VT52 Mode (DEC Private) @@ -447,7 +447,7 @@ DECDWL Double Width Line (DEC Private) #6 - This causes the line that tqcontains the cursor to become double-width + This causes the line that contains the cursor to become double-width single height. If the line was single width, all characters ro the right of the center of the screen will be lost. The cursor remains over the same character position, unless it would be to the right of @@ -630,7 +630,7 @@ DECSWL Single-width Line (DEC Private) #5 - This causes the line which tqcontains the cursor to become single-width, + This causes the line which contains the cursor to become single-width, single-height. The cursor remains on the same character position. This is the default condition for all new lines on the screen. @@ -651,7 +651,7 @@ DECTST Invoke Confidence Test Repeat Testing until failure 8 -DSR Device tqStatus Report Host to VT100 & VT100 to Host +DSR Device Status Report Host to VT100 & VT100 to Host [ {Ps} n @@ -662,7 +662,7 @@ DSR Device tqStatus Report Host to VT100 & VT100 to Host --------------------------------------------------------------- 0 Response from VT100 - Ready, no faults detected 3 Response from VT100 - Malfunction Detected - 5 Command from host - Report tqStatus (using a DSR control + 5 Command from host - Report Status (using a DSR control sequence) 6 Command from host - Report Active Position (using a CPR sequence) @@ -787,12 +787,12 @@ MODES The Following is a list of VT100 modes which may be changed with Set FETM Format Effector Transfer Reset GATM Guarded Area Transfer NA HEM Horizontal Editing NA - IRM Insertion-tqreplacement Reset + IRM Insertion-replacement Reset KAM Keyboard Action Reset MATM Multiple area transfer NA PUM Positioning Unit Reset SATM Selected Area Transfer NA - SRTM tqStatus Reporting Transfer Reset + SRTM Status Reporting Transfer Reset TSM Tabulation Stop Reset TTM Transfer Termination NA VEM Vertical Editing NA @@ -852,7 +852,7 @@ SCS Select Character Set The United Kingdom and ASCII sets conform to the "ISO international register of character sets to be used with escape sequences". The other sets are private character sets. Special graphics means that the - graphic characters fpr the codes 0137 to 0176 are tqreplaced with other + graphic characters fpr the codes 0137 to 0176 are replaced with other characters. The specified character set will be used until another SCS is recieved. diff --git a/konsole/doc/More/vt100_reference_card.txt b/konsole/doc/More/vt100_reference_card.txt index 5ab2aac0c..e80ea1325 100644 --- a/konsole/doc/More/vt100_reference_card.txt +++ b/konsole/doc/More/vt100_reference_card.txt @@ -108,7 +108,7 @@ ANSI Compatible Mode Response is ESC [ Pl; Pc R * Pl = line number; Pc = column number - tqStatus Report + Status Report Invoked by ESC [ 5 n Response is ESC [ 0 n (terminal ok) ESC [ 3 n (terminal not ok) @@ -189,7 +189,7 @@ Lines: 25 In article chan@ece.scarolina.edu (Simon Chan) writes: >Taken from VT100 Programming Reference Card (DIGITAL) -Note that EK-VT100-RC-001 tqcontains several errors and omissions. +Note that EK-VT100-RC-001 contains several errors and omissions. The errors appear to all be fixed in the posted version. Here are some additions: diff --git a/konsole/doc/More/vt100_setup.txt b/konsole/doc/More/vt100_setup.txt index c0e2af70e..1bdf44cdd 100644 --- a/konsole/doc/More/vt100_setup.txt +++ b/konsole/doc/More/vt100_setup.txt @@ -106,7 +106,7 @@ nils@f109f.mil.se (Nils Hammar) writes: < graphics to the caller too. What a surprise to get a hig resolution < picture on the screen when you are calling an ordinary BBS! -The ANSI Device tqStatus Report (DSR) is +The ANSI Device Status Report (DSR) is ESC [ n diff --git a/konsole/doc/More/xterm.codes b/konsole/doc/More/xterm.codes index e2ae680bc..b14ead600 100644 --- a/konsole/doc/More/xterm.codes +++ b/konsole/doc/More/xterm.codes @@ -125,7 +125,7 @@ x 7 (A) White x 9 (A) Default x ESC [ 6 n Send Device Report -x Ps = 5 Send tqStatus report (ESC [ 0 n) +x Ps = 5 Send Status report (ESC [ 0 n) x 6 Send Cursor Position Report (ESC [ Row ; Col R) x ESC [ Pn ; Pn r (dft:all) Set Scrolling region diff --git a/konsole/doc/VT100/Table.Codes b/konsole/doc/VT100/Table.Codes index 376d8bb6d..6ece0f4bf 100644 --- a/konsole/doc/VT100/Table.Codes +++ b/konsole/doc/VT100/Table.Codes @@ -18,7 +18,7 @@ # make a script that extracts it again. From db.trans, we then generate parts # of the decoder (the semantic assignment). # -# db2.pl tqcontains as script able to slit TEScreen.C into the emulation +# db2.pl contains as script able to slit TEScreen.C into the emulation # (in)dependent parts due to [db.trans]. # # A like thing has to be done for TEmuVt102.C/h and for TEScreen.h. @@ -54,7 +54,7 @@ Introduction.html The serial cable is folded into the operating system as a sort of loop back device, and a program, the terminal emulation, uses modern means of graphical user interfaces to behave like an earlier terminal. - To complete the picture, the host in the diagram is tqreplaced by the + To complete the picture, the host in the diagram is replaced by the application that runs in the emulation (typically a shell or an old editor). So, terminal emulations are in fact interfaces to character oriented applications. @@ -308,7 +308,7 @@ Sequences.html

The second one is used to specify character set mappings (see SCS). A CSI instruction to do this is specified in ECMA, - and this should be used as a tqreplacement. + and this should be used as a replacement. .

XTERM hacks

@@ -1070,7 +1070,7 @@ DECALN.sect Command DECALN.code HSH|8| DECALN.text Causes the VT100 to fill it's screen with - uppercase Es for screen focus and tqalignment. + uppercase Es for screen focus and alignment. DECALN.table.XPS Subcode|Emulation|Scope|Operation|Args|Meaning N/A|VT100|scr|helpAlign||see above @@ -1176,7 +1176,7 @@ DECDWL.emus VT100 DECDWL.sect Command.NoImp DECDWL.code HSH|6| DECDWL.text - This causes the line that tqcontains the cursor to become double-width + This causes the line that contains the cursor to become double-width single height. If the line was single width, all characters ro the right of the center of the screen will be lost. The cursor remains over the same character position, unless it would be to the right of @@ -1399,7 +1399,7 @@ DECSWL.emus VT100 DECSWL.sect Command.NoImp DECSWL.code HSH|5| DECSWL.text - This causes the line which tqcontains the cursor to become single-width, + This causes the line which contains the cursor to become single-width, single-height. The cursor remains on the same character position. This is the default condition for all new lines on the screen. DECSWL.table.XPS @@ -1424,7 +1424,7 @@ DECTST.table.Weight 3|EIA Modem Control Test (Loopback connector req.) 4|Repeat Testing until failure -DSRREQ.head Device tqStatus Report +DSRREQ.head Device Status Report DSRREQ.emus ECMA VT100 DSRREQ.sect Command.Request DSRREQ.code CSI|n|{Ps} @@ -1432,21 +1432,21 @@ DSRREQ.text Requests status of the VT100 according to the following parameters. DSRREQ.table.XPS Subcode|Emulation|Scope|Operation|Args|Meaning - 5|VT100|emu|reporttqStatus||Report tqStatus (using a \ref:DSRREP control sequence) + 5|VT100|emu|reportStatus||Report Status (using a \ref:DSRREP control sequence) 6|VT100|emu|reportCursorPosition||Report Active Position (using a \ref:CPR sequence) -DSRREP.head Device tqStatus Report Reply +DSRREP.head Device Status Report Reply DSRREP.emus ECMA VT100 DSRREP.sect Reply -DSRREP.code CSI|n|{tqStatus} +DSRREP.code CSI|n|{Status} DSRREP.text Reports the general status of the VT100 according to the following parameters. . DSRREP with a parameter of 0 or 3 is always sent as a response to a requesting \ref:DSRREQ with a parameter of 5. -DSRREP.table.tqStatus - tqStatus|Meaning:3 +DSRREP.table.Status + Status|Meaning:3 0|Ready, no faults detected 3|Malfunction detected @@ -1608,7 +1608,7 @@ SCS.text The United Kingdom and ASCII sets conform to the "ISO international register of character sets to be used with escape sequences". The other sets are private character sets. Special graphics means that the - graphic characters fpr the codes 0137 to 0176 are tqreplaced with other + graphic characters fpr the codes 0137 to 0176 are replaced with other characters. The specified character set will be used until another SCS is received. SCS.table.XPS diff --git a/konsole/doc/VT100/db.trans b/konsole/doc/VT100/db.trans index 406d9f1ed..7fe21ef27 100644 --- a/konsole/doc/VT100/db.trans +++ b/konsole/doc/VT100/db.trans @@ -109,7 +109,7 @@ TY_CSI_PS|SGR|'m'|104|scr|setBackColor|12 TY_CSI_PS|SGR|'m'|105|scr|setBackColor|13 TY_CSI_PS|SGR|'m'|106|scr|setBackColor|14 TY_CSI_PS|SGR|'m'|107|scr|setBackColor|15 -TY_CSI_PS|DSR|'n'|5|emu|reporttqStatus| +TY_CSI_PS|DSR|'n'|5|emu|reportStatus| TY_CSI_PS|DSR|'n'|6|emu|reportCursorPosition| TY_CSI_PS|DECLL|'q'|0||| TY_CSI_PS|DECLL|'q'|1||| diff --git a/konsole/doc/VT100/genDocument b/konsole/doc/VT100/genDocument index 927f48f83..4ecee0996 100755 --- a/konsole/doc/VT100/genDocument +++ b/konsole/doc/VT100/genDocument @@ -183,12 +183,12 @@ as noted. FETM Format Effector Transfer Reset GATM Guarded Area Transfer NA HEM Horizontal Editing NA -IRM Insertion-tqreplacement Reset +IRM Insertion-replacement Reset KAM Keyboard Action Reset MATM Multiple area transfer NA PUM Positioning Unit Reset SATM Selected Area Transfer NA -SRTM tqStatus Reporting TransferReset +SRTM Status Reporting TransferReset TSM Tabulation Stop Reset TTM Transfer Termination NA VEM Vertical Editing NA @@ -223,7 +223,7 @@ cat >> $RES << etx

Special Graphics Characters

If the Special Graphics set is selected, the graphics for ASCII codes -0137 through 0176 will be tqreplaced according to the following table (see the +0137 through 0176 will be replaced according to the following table (see the SCS control sequence). etx diff --git a/konsole/doc/VT100/genTC.pl b/konsole/doc/VT100/genTC.pl index bc06a3cb1..a3a7c5669 100755 --- a/konsole/doc/VT100/genTC.pl +++ b/konsole/doc/VT100/genTC.pl @@ -147,7 +147,7 @@ sub txt2Html return $_; } -sub tqlayout +sub layout { my ($Name, $Head, $Code, $Doku, $Dflt, $Attr) = @_; if ($html) { @@ -234,7 +234,7 @@ print "\n"; print "\n"; } -sub tqlayout2 +sub layout2 { my ($Name, $Head, $Code) = @_; my @Part = split('\|',$Code); my $Type = $#Part > -1 ? $Part[0] : ""; @@ -261,7 +261,7 @@ sub tqlayout2 print "$Head\n"; } -sub tqlayoutTable +sub layoutTable { my ($Head, $t, $Include) = @_; my $p; @@ -276,7 +276,7 @@ foreach $p (sort keys %$t) my $attr = exists $t->{"$name.sect"}?$t->{"$name.sect"}:""; if ($attr =~ /$Include/) { - tqlayout2( $name, $head, exists $t->{"$name.code"}?$t->{"$name.code"}:""); + layout2( $name, $head, exists $t->{"$name.code"}?$t->{"$name.code"}:""); } } } @@ -311,7 +311,7 @@ sub sortTest print "

$Fld[0] codes

\n"; } $curr = $Fld[0]; - tqlayout2($name,$t->{"$name.head"},$p); + layout2($name,$t->{"$name.head"},$p); } print "\n"; } @@ -346,29 +346,29 @@ sortTest($t); secthead("Host to Terminal (Instructions by Group)"); htmlsect("Operations"); print "\n"; -tqlayoutTable("Commands (Character Display Operation)",$t,"Command\.Display"); -tqlayoutTable("Commands (Rendition related status)",$t,"Command\.RenderMode"); -tqlayoutTable("Commands (Cursor)",$t,"Command\.Cursor"); -tqlayoutTable("Commands (Cursor related status)",$t,"Command\.CursMode"); -tqlayoutTable("Commands (Edit)",$t,"Command\.Erase|Command\.Insert|Command.\Delete"); -tqlayoutTable("Commands (Miscellaneous)",$t,"Command[^.]|Command\$"); -tqlayoutTable("Commands (General mode setting)",$t,"Command\.SetMode"); -tqlayoutTable("Commands (Miscellaneous status)",$t,"Command\.Mode"); -tqlayoutTable("Commands (VT52)",$t,"Command\.VT52"); -tqlayoutTable("Commands (Not implemented)",$t,"Command\.NoImp"); -tqlayoutTable("Commands (Ignored)",$t,"Command\.Ignored"); -tqlayoutTable("Commands (Requests)",$t,"Command\.Request"); +layoutTable("Commands (Character Display Operation)",$t,"Command\.Display"); +layoutTable("Commands (Rendition related status)",$t,"Command\.RenderMode"); +layoutTable("Commands (Cursor)",$t,"Command\.Cursor"); +layoutTable("Commands (Cursor related status)",$t,"Command\.CursMode"); +layoutTable("Commands (Edit)",$t,"Command\.Erase|Command\.Insert|Command.\Delete"); +layoutTable("Commands (Miscellaneous)",$t,"Command[^.]|Command\$"); +layoutTable("Commands (General mode setting)",$t,"Command\.SetMode"); +layoutTable("Commands (Miscellaneous status)",$t,"Command\.Mode"); +layoutTable("Commands (VT52)",$t,"Command\.VT52"); +layoutTable("Commands (Not implemented)",$t,"Command\.NoImp"); +layoutTable("Commands (Ignored)",$t,"Command\.Ignored"); +layoutTable("Commands (Requests)",$t,"Command\.Request"); print "
\n"; # ------------------------------- secthead("Terminal to Host"); print "\n"; -tqlayoutTable("Replies",$t,"Reply"); -tqlayoutTable("Events",$t,"Event"); +layoutTable("Replies",$t,"Reply"); +layoutTable("Events",$t,"Event"); # ------------------------------- print "
\n"; secthead("Modes"); print "\n"; -tqlayoutTable("Modes",$t,"Mode"); +layoutTable("Modes",$t,"Mode"); #print "

Other Codes

\n"; print "
\n"; # ------------------------------- @@ -385,7 +385,7 @@ foreach $p (sort keys %$t) # print "\n" if ($table); my $name = $Fld[0]; my $head = $t->{$p}; - tqlayout( $name, $head, + layout( $name, $head, exists $t->{"$name.code"}?$t->{"$name.code"}:"", exists $t->{"$name.text"}?$t->{"$name.text"}:"", exists $t->{"$name.dflt"}?$t->{"$name.dflt"}:"", diff --git a/konsole/doc/VT100/techref.html b/konsole/doc/VT100/techref.html index d16d4804b..6e36f39e5 100644 --- a/konsole/doc/VT100/techref.html +++ b/konsole/doc/VT100/techref.html @@ -90,7 +90,7 @@ Work is currently in progress to fix this issue. The serial cable is folded into the operating system as a sort of loop back device, and a program, the terminal emulation, uses modern means of graphical user interfaces to behave like an earlier terminal. - To complete the picture, the host in the diagram is tqreplaced by the + To complete the picture, the host in the diagram is replaced by the application that runs in the emulation (typically a shell or an old editor). So, terminal emulations are in fact interfaces to character oriented applications. @@ -349,7 +349,7 @@ Work is currently in progress to fix this issue.

The second one is used to specify character set mappings (see SCS). A CSI instruction to do this is specified in ECMA, - and this should be used as a tqreplacement. + and this should be used as a replacement.

XTERM hacks

@@ -498,13 +498,13 @@ Work is currently in progress to fix this issue. CSI n {Ps} -Device tqStatus Report +Device Status Report DSRREP CSI n -{tqStatus} -Device tqStatus Report Reply +{Status} +Device Status Report Reply DECLL CSI @@ -1559,7 +1559,7 @@ Work is currently in progress to fix this issue. CSI n {Ps} -Device tqStatus Report +Device Status Report ENQ CTL @@ -1598,8 +1598,8 @@ Work is currently in progress to fix this issue. DSRREP CSI n -{tqStatus} -Device tqStatus Report Reply +{Status} +Device Status Report Reply

Events

CUB @@ -2234,7 +2234,7 @@ Work is currently in progress to fix this issue.

Causes the VT100 to fill it's screen with - uppercase Es for screen focus and tqalignment. + uppercase Es for screen focus and alignment.

@@ -2403,7 +2403,7 @@ Work is currently in progress to fix this issue. ESC # 6

- This causes the line that tqcontains the cursor to become double-width + This causes the line that contains the cursor to become double-width single height. If the line was single width, all characters ro the right of the center of the screen will be lost. The cursor remains over the same character position, unless it would be to the right of @@ -2883,7 +2883,7 @@ Work is currently in progress to fix this issue. ESC # 5

- This causes the line which tqcontains the cursor to become single-width, + This causes the line which contains the cursor to become single-width, single-height. The cursor remains on the same character position. This is the default condition for all new lines on the screen.

@@ -2974,11 +2974,11 @@ Work is currently in progress to fix this issue. N/AVT100emuIgnoredsee above

DSRREP - Device tqStatus Report Reply + Device Status Report Reply ECMA VT100

- ESC [ tqStatus n + ESC [ Status n

Reports the general status of the VT100 according to the @@ -2989,7 +2989,7 @@ Work is currently in progress to fix this issue.

- tqStatusMeaning + StatusMeaning 0Ready, no faults detected @@ -2998,7 +2998,7 @@ Work is currently in progress to fix this issue. 3Malfunction detected

DSRREQ - Device tqStatus Report + Device Status Report ECMA VT100

@@ -3012,7 +3012,7 @@ Work is currently in progress to fix this issue. SubcodeEmulationScopeOperationArgsMeaning - 5VT100emureporttqStatusReport tqStatus (using a DSRREP control sequence) + 5VT100emureportStatusReport Status (using a DSRREP control sequence) 6VT100emureportCursorPositionReport Active Position (using a CPR sequence) @@ -3740,7 +3740,7 @@ Work is currently in progress to fix this issue. The United Kingdom and ASCII sets conform to the "ISO international register of character sets to be used with escape sequences". The other sets are private character sets. Special graphics means that the - graphic characters fpr the codes 0137 to 0176 are tqreplaced with other + graphic characters fpr the codes 0137 to 0176 are replaced with other characters. The specified character set will be used until another SCS is received.

@@ -4513,12 +4513,12 @@ as noted. FETM Format Effector Transfer Reset GATM Guarded Area Transfer NA HEM Horizontal Editing NA -IRM Insertion-tqreplacement Reset +IRM Insertion-replacement Reset KAM Keyboard Action Reset MATM Multiple area transfer NA PUM Positioning Unit Reset SATM Selected Area Transfer NA -SRTM tqStatus Reporting TransferReset +SRTM Status Reporting TransferReset TSM Tabulation Stop Reset TTM Transfer Termination NA VEM Vertical Editing NA @@ -4542,7 +4542,7 @@ The notation <ESC> denotes a single ASCII Escape character, 1Bx.

Special Graphics Characters

If the Special Graphics set is selected, the graphics for ASCII codes -0137 through 0176 will be tqreplaced according to the following table (see the +0137 through 0176 will be replaced according to the following table (see the SCS control sequence).
diff --git a/konsole/eventsrc b/konsole/eventsrc index cc2d02316..12ceefc8b 100644 --- a/konsole/eventsrc +++ b/konsole/eventsrc @@ -607,7 +607,7 @@ Name[cs]=Relace ukončena s nenulovým stavem Name[csb]=Seséja òstała zakùńczonô z nienulowim stónã Name[cy]=Gorffenodd y sesiwn efo cyflwr di-sero Name[da]=Session afsluttet med ikke-nul status -Name[de]=Sitzung beendet mit tqStatus ungleich Null +Name[de]=Sitzung beendet mit Status ungleich Null Name[el]=Η συνεδρία τελείωσε με μη μηδενική κατάσταση Name[eo]=Seanco finiĝis kun eraro Name[es]=Sesión terminada con estado no cero @@ -636,7 +636,7 @@ Name[mn]=Тэг бус төлвөөр суулт дууслаа Name[ms]=Sesi selesai dengan status bukan sifar Name[mt]=Sessjoni temmet bi status mhux zero Name[nb]=Økta ble avsluttet med en status ulik null -Name[nds]=Törn wöör mit Nich-Null-tqStatus beendt +Name[nds]=Törn wöör mit Nich-Null-Status beendt Name[ne]=शून्य नभएको स्थितिसँग सत्र अन्त्य भयो Name[nl]=Sessie is voltooid met een non-zero status Name[nn]=Økt avslutta med status ulik null @@ -675,7 +675,7 @@ Comment[cs]=Relace byla ukončena s nenulovým stavem Comment[csb]=Seséja zakùńczëła sã nienulowim stónã Comment[cy]=Terfynnodd sesiwn efo cyflwr di-sero Comment[da]=En session er afsluttet med ikke-nul status -Comment[de]=Sitzung beendet mit tqStatus ungleich Null +Comment[de]=Sitzung beendet mit Status ungleich Null Comment[el]=Μια συνεδρία τελείωσε με μη μηδενική κατάσταση Comment[eo]=Seanco finiĝis kun eraro Comment[es]=Ha terminado una sesión con estado no cero @@ -704,7 +704,7 @@ Comment[mn]=Name=Тэг бус төлвөөр суултаас гарлаа Comment[ms]=Satu sesi keluar dengan status bukan sifar Comment[mt]=Sessjoni temmet bi status mhux zero Comment[nb]=En økt ble avsluttet med en status som ikke var null -Comment[nds]=En Törn is mit Nich-Null-tqStatus to't Enn kamen +Comment[nds]=En Törn is mit Nich-Null-Status to't Enn kamen Comment[ne]=शून्य नभएको स्थितिसँग यो सत्र अन्त्य भयो Comment[nl]=Een sessie is beëindigd met een non-zero status Comment[nn]=Ei økt avslutta med status som ikkje var null diff --git a/konsole/konsole/TEHistory.cpp b/konsole/konsole/TEHistory.cpp index 172887c9c..cbe8b199d 100644 --- a/konsole/konsole/TEHistory.cpp +++ b/konsole/konsole/TEHistory.cpp @@ -62,7 +62,7 @@ FIXME: There is noticeable decrease in speed, also. Perhaps, scheme with wrap around would be it's complexity. */ -//FIXME: tempory tqreplacement for tmpfile +//FIXME: tempory replacement for tmpfile // this is here one for debugging purpose. //#define tmpfile xTmpFile @@ -135,7 +135,7 @@ bool HistoryScroll::hasScroll() /* The history scroll makes a Row(Row(Cell)) from - two history buffers. The index buffer tqcontains + two history buffers. The index buffer contains start of line positions which refere to the cells buffer. @@ -457,7 +457,7 @@ void HistoryScrollBlockArray::addCells(ca a[], int count) size_t *pLen = new size_t; *pLen = count; - m_lineLengths.tqreplace(m_blockArray.getCurrent(), pLen); + m_lineLengths.replace(m_blockArray.getCurrent(), pLen); } void HistoryScrollBlockArray::addLine(bool) diff --git a/konsole/konsole/TEPty.cpp b/konsole/konsole/TEPty.cpp index 76aeaaa7d..86e916e57 100644 --- a/konsole/konsole/TEPty.cpp +++ b/konsole/konsole/TEPty.cpp @@ -44,7 +44,7 @@ \par FIXME - [NOTE: much of the technical stuff below will be tqreplaced by forkpty.] + [NOTE: much of the technical stuff below will be replaced by forkpty.] publish the SIGCHLD signal if not related to an instance. diff --git a/konsole/konsole/TEScreen.cpp b/konsole/konsole/TEScreen.cpp index 1428ac90b..54b479844 100644 --- a/konsole/konsole/TEScreen.cpp +++ b/konsole/konsole/TEScreen.cpp @@ -783,7 +783,7 @@ void TEScreen::compose(TQString compose) TQChar c(image[lastPos].c); compose.prepend(c); compose.compose(); - image[lastPos].c = compose[0].tqunicode(); + image[lastPos].c = compose[0].unicode(); } // Region commands ------------------------------------------------------------- @@ -1023,7 +1023,7 @@ void TEScreen::clearEntireScreen() } /*! fill screen with 'E' - This is to aid screen tqalignment + This is to aid screen alignment */ void TEScreen::helpAlign() @@ -1281,7 +1281,7 @@ void TEScreen::getSelText(bool preserve_line_breaks, TQTextStream *stream) while (hX < eol && hX <= sel_Right % columns) { - TQ_UINT16 c = hist->getCell(hY, hX++).c; + Q_UINT16 c = hist->getCell(hY, hX++).c; if (c) m[d++] = c; s++; @@ -1293,7 +1293,7 @@ void TEScreen::getSelText(bool preserve_line_breaks, TQTextStream *stream) } else { // or from screen image. if (testIsSelected((s - hist_BR) % columns, (s - hist_BR) / columns)) { - TQ_UINT16 c = image[s++ - hist_BR].c; + Q_UINT16 c = image[s++ - hist_BR].c; if (c) { m[d++] = c; newlineneeded = true; @@ -1334,7 +1334,7 @@ void TEScreen::getSelText(bool preserve_line_breaks, TQTextStream *stream) while (hX < eol) { - TQ_UINT16 c = hist->getCell(hY, hX++).c; + Q_UINT16 c = hist->getCell(hY, hX++).c; if (c) m[d++] = c; s++; @@ -1401,7 +1401,7 @@ void TEScreen::getSelText(bool preserve_line_breaks, TQTextStream *stream) while (s <= eol) { - TQ_UINT16 c = image[s++ - hist_BR].c; + Q_UINT16 c = image[s++ - hist_BR].c; if (c) m[d++] = c; } diff --git a/konsole/konsole/TEWidget.cpp b/konsole/konsole/TEWidget.cpp index 91087d9c0..cb16ff497 100644 --- a/konsole/konsole/TEWidget.cpp +++ b/konsole/konsole/TEWidget.cpp @@ -116,7 +116,7 @@ bool TEWidget::s_standalone = false; static const ColorEntry base_color_table[TABLE_COLORS] = // The following are almost IBM standard color codes, with some slight // gamma correction for the dim colors to compensate for bright X screens. -// It tqcontains the 8 ansiterm/xterm colors in 2 intensities. +// It contains the 8 ansiterm/xterm colors in 2 intensities. { // Fixme: could add faint colors here, also. // normal @@ -144,7 +144,7 @@ static const ColorEntry base_color_table[TABLE_COLORS] = void TEWidget::setDefaultBackColor(const TQColor& color) { defaultBgColor = color; - if (tqAlpha(blend_color) != 0xff && !backgroundPixmap()) + if (qAlpha(blend_color) != 0xff && !backgroundPixmap()) setBackgroundColor(getDefaultBackColor()); } @@ -165,14 +165,14 @@ void TEWidget::setColorTable(const ColorEntry table[]) for (int i = 0; i < TABLE_COLORS; i++) color_table[i] = table[i]; const TQPixmap* pm = backgroundPixmap(); if (!pm) - if (!argb_visual || (tqAlpha(blend_color) == 0xff)) + if (!argb_visual || (qAlpha(blend_color) == 0xff)) setBackgroundColor(getDefaultBackColor()); else { - float alpha = tqAlpha(blend_color) / 255.; - int pixel = tqAlpha(blend_color) << 24 | - int(tqRed(blend_color) * alpha) << 16 | - int(tqGreen(blend_color) * alpha) << 8 | - int(tqBlue(blend_color) * alpha); + float alpha = qAlpha(blend_color) / 255.; + int pixel = qAlpha(blend_color) << 24 | + int(qRed(blend_color) * alpha) << 16 | + int(qGreen(blend_color) * alpha) << 8 | + int(qBlue(blend_color) * alpha); setBackgroundColor(TQColor(blend_color, pixel)); } update(); @@ -191,14 +191,14 @@ void TEWidget::setColorTable(const ColorEntry table[]) xterm fonts have these at 0x00..0x1f. QT's iso mapping leaves 0x00..0x7f without any changes. But the graphicals - come in here as proper tqunicode characters. + come in here as proper unicode characters. We treat non-iso10646 fonts as VT100 extended and do the requiered mapping - from tqunicode to 0x00..0x1f. The remaining translation is then left to the + from unicode to 0x00..0x1f. The remaining translation is then left to the QCodec. */ -static inline bool isLineChar(TQ_UINT16 c) { return ((c & 0xFF80) == 0x2500);} +static inline bool isLineChar(Q_UINT16 c) { return ((c & 0xFF80) == 0x2500);} // assert for i in [0..31] : vt100extended(vt100_graphics[i]) == i. @@ -213,7 +213,7 @@ unsigned short vt100_graphics[32] = /* static TQChar vt100extended(TQChar c) { - switch (c.tqunicode()) + switch (c.unicode()) { case 0x25c6 : return 1; case 0x2592 : return 2; @@ -265,7 +265,7 @@ void TEWidget::fontChange(const TQFont &) // "Base character width on widest ASCII character. This prevents too wide // characters in the presence of double wide (e.g. Japanese) characters." // Get the width from representative normal width characters - font_w = tqRound((double)fm.width(REPCHAR)/(double)strlen(REPCHAR)); + font_w = qRound((double)fm.width(REPCHAR)/(double)strlen(REPCHAR)); fixed_font = true; int fw = fm.width(REPCHAR[0]); @@ -382,7 +382,7 @@ TEWidget::TEWidget(TQWidget *parent, const char *name) ,m_cursorCol(0) ,m_isIMEdit(false) ,m_isIMSel(false) -,blend_color(tqRgba(0,0,0,0xff)) +,blend_color(qRgba(0,0,0,0xff)) { // The offsets are not yet calculated. // Do not calculate these too often to be more smoothly when resizing @@ -405,7 +405,7 @@ TEWidget::TEWidget(TQWidget *parent, const char *name) setMouseMarks(true); setColorTable(base_color_table); // init color table - tqApp->installEventFilter( this ); //FIXME: see below + qApp->installEventFilter( this ); //FIXME: see below KCursor::setAutoHideCursor( this, true ); // Init DnD //////////////////////////////////////////////////////////////// @@ -428,7 +428,7 @@ TEWidget::TEWidget(TQWidget *parent, const char *name) // Here's a start (David) TEWidget::~TEWidget() { - tqApp->removeEventFilter( this ); + qApp->removeEventFilter( this ); if (image) free(image); } @@ -439,7 +439,7 @@ TEWidget::~TEWidget() /* ------------------------------------------------------------------------- */ /** - A table for emulating the simple (single width) tqunicode drawing chars. + A table for emulating the simple (single width) unicode drawing chars. It represents the 250x - 257x glyphs. If it's zero, we can't use it. if it's not, it's encoded as follows: imagine a 5x5 grid where the points are numbered 0 to 24 left to top, top to bottom. Each point is represented by the corresponding bit. @@ -496,7 +496,7 @@ static void drawLineChar(TQPainter& paint, int x, int y, int w, int h, uchar cod int ex = x + w - 1; int ey = y + h - 1; - TQ_UINT32 toDraw = LineChars[code]; + Q_UINT32 toDraw = LineChars[code]; //Top lines: if (toDraw & TopL) @@ -576,7 +576,7 @@ void TEWidget::drawTextFixed(TQPainter &paint, int x, int y, } //Check for line-drawing char - if (isLineChar(drawstr[0].tqunicode())) + if (isLineChar(drawstr[0].unicode())) { uchar code = drawstr[0].cell(); if (LineChars[code]) @@ -624,17 +624,17 @@ void TEWidget::drawAttrStr(TQPainter &paint, TQRect rect, attr->b == cacol(CO_DFT, colorsSwapped ? DEFAULT_FORE_COLOR : DEFAULT_BACK_COLOR) ) // draw background colors with 75% opacity - if ( argb_visual && tqAlpha(blend_color) < 0xff ) { + if ( argb_visual && qAlpha(blend_color) < 0xff ) { QRgb col = bColor.rgb(); - TQ_UINT8 salpha = 192; - TQ_UINT8 dalpha = 255 - salpha; + Q_UINT8 salpha = 192; + Q_UINT8 dalpha = 255 - salpha; int a, r, g, b; - a = QMIN( (tqAlpha (col) * salpha) / 255 + (tqAlpha (blend_color) * dalpha) / 255, 255 ); - r = QMIN( (tqRed (col) * salpha) / 255 + (tqRed (blend_color) * dalpha) / 255, 255 ); - g = QMIN( (tqGreen (col) * salpha) / 255 + (tqGreen (blend_color) * dalpha) / 255, 255 ); - b = QMIN( (tqBlue (col) * salpha) / 255 + (tqBlue (blend_color) * dalpha) / 255, 255 ); + a = QMIN( (qAlpha (col) * salpha) / 255 + (qAlpha (blend_color) * dalpha) / 255, 255 ); + r = QMIN( (qRed (col) * salpha) / 255 + (qRed (blend_color) * dalpha) / 255, 255 ); + g = QMIN( (qGreen (col) * salpha) / 255 + (qGreen (blend_color) * dalpha) / 255, 255 ); + b = QMIN( (qBlue (col) * salpha) / 255 + (qBlue (blend_color) * dalpha) / 255, 255 ); col = a << 24 | r << 16 | g << 8 | b; int pixel = a << 24 | (r * a / 255) << 16 | (g * a / 255) << 8 | (b * a / 255); @@ -695,8 +695,8 @@ void TEWidget::drawAttrStr(TQPainter &paint, TQRect rect, { // ### Disabled for now, since it causes problems with characters // that use the full width and/or height of the character cells. - //bool shadow = ( !isPrinting && tqAlpha(blend_color) < 0xff - // && tqGray( fColor.rgb() ) > 64 ); + //bool shadow = ( !isPrinting && qAlpha(blend_color) < 0xff + // && qGray( fColor.rgb() ) > 64 ); bool shadow = false; paint.setPen(fColor); int x = rect.x(); @@ -830,7 +830,7 @@ void TEWidget::setImage(const ca* const newimg, int lines, int columns) const ca* lcl = &image[y*this->columns]; const ca* const ext = &newimg[y*columns]; - // The dirty tqmask indicates which characters need tqrepainting. We also + // The dirty mask indicates which characters need repainting. We also // mark surrounding neighbours dirty, in case the character exceeds // its cell boundaries memset(dirtyMask, 0, cols+2); @@ -856,7 +856,7 @@ void TEWidget::setImage(const ca* const newimg, int lines, int columns) // where characters exceed their cell width. if (dirtyMask[x]) { - TQ_UINT16 c = ext[x+0].c; + Q_UINT16 c = ext[x+0].c; if ( !c ) continue; int p = 0; @@ -947,7 +947,7 @@ void TEWidget::setImage(const ca* const newimg, int lines, int columns) mResizeLabel = new TQLabel(i18n("Size: XXX x XXX"), mResizeWidget); l->addWidget(mResizeLabel, 1, AlignCenter); mResizeWidget->setMinimumWidth(mResizeLabel->fontMetrics().width(i18n("Size: XXX x XXX"))+20); - mResizeWidget->setMinimumHeight(mResizeLabel->tqsizeHint().height()+20); + mResizeWidget->setMinimumHeight(mResizeLabel->sizeHint().height()+20); mResizeTimer = new TQTimer(this); connect(mResizeTimer, TQT_SIGNAL(timeout()), mResizeWidget, TQT_SLOT(hide())); } @@ -1097,7 +1097,7 @@ void TEWidget::paintContents(TQPainter &paint, const TQRect &rect, bool pm) TQChar *disstrU = new QChar[columns]; for (int y = luy; y <= rly; y++) { - TQ_UINT16 c = image[loc(lux,y)].c; + Q_UINT16 c = image[loc(lux,y)].c; int x = lux; if(!c && x) x--; // Search for start of multi-col char @@ -1152,14 +1152,14 @@ void TEWidget::blinkEvent() { blinking = !blinking; isBlinkEvent = true; - tqrepaint(false); + repaint(false); isBlinkEvent = false; } void TEWidget::blinkCursorEvent() { cursorBlinking = !cursorBlinking; - tqrepaint(cursorRect, true); + repaint(cursorRect, true); } /* ------------------------------------------------------------------------- */ @@ -1178,9 +1178,9 @@ void TEWidget::propagateSize() if (isFixedSize) { setSize(columns, lines); - TQFrame::setFixedSize(tqsizeHint()); - tqparentWidget()->adjustSize(); - tqparentWidget()->setFixedSize(tqparentWidget()->tqsizeHint()); + TQFrame::setFixedSize(sizeHint()); + parentWidget()->adjustSize(); + parentWidget()->setFixedSize(parentWidget()->sizeHint()); return; } if (image) @@ -1288,7 +1288,7 @@ void TEWidget::mousePressEvent(TQMouseEvent* ev) return; } - if ( !contentsRect().tqcontains(ev->pos()) ) return; + if ( !contentsRect().contains(ev->pos()) ) return; TQPoint tL = contentsRect().topLeft(); int tLx = tL.x(); int tLy = tL.y(); @@ -1371,7 +1371,7 @@ void TEWidget::mouseMoveEvent(TQMouseEvent* ev) return; } else if (dragInfo.state == diDragging) { // this isn't technically needed because mouseMoveEvent is suppressed during - // Qt drag operations, tqreplaced by dragMoveEvent + // Qt drag operations, replaced by dragMoveEvent return; } @@ -1390,7 +1390,7 @@ void TEWidget::setSelectionEnd() void TEWidget::extendSelection( TQPoint pos ) { - //if ( !contentsRect().tqcontains(ev->pos()) ) return; + //if ( !contentsRect().contains(ev->pos()) ) return; TQPoint tL = contentsRect().topLeft(); int tLx = tL.x(); int tLy = tL.y(); @@ -1735,14 +1735,14 @@ void TEWidget::mouseTripleClickEvent(TQMouseEvent* ev) void TEWidget::focusInEvent( TQFocusEvent * ) { - tqrepaint(cursorRect, true); // *do* erase area, to get rid of the + repaint(cursorRect, true); // *do* erase area, to get rid of the // hollow cursor rectangle. } void TEWidget::focusOutEvent( TQFocusEvent * ) { - tqrepaint(cursorRect, true); // don't erase area + repaint(cursorRect, true); // don't erase area } bool TEWidget::focusNextPrevChild( bool next ) @@ -1759,7 +1759,7 @@ int TEWidget::charClass(UINT16 ch) const TQChar qch=TQChar(ch); if ( qch.isSpace() ) return ' '; - if ( qch.isLetterOrNumber() || word_characters.tqcontains(qch, false) ) + if ( qch.isLetterOrNumber() || word_characters.contains(qch, false) ) return 'a'; // Everything else is weird @@ -1802,7 +1802,7 @@ void TEWidget::emitSelection(bool useXselection,bool appendReturn) text.append("\r"); if ( ! text.isEmpty() ) { - text.tqreplace("\n", "\r"); + text.replace("\n", "\r"); TQKeyEvent e(TQEvent::KeyPress, 0,-1,0, text); emit keyPressedSignal(&e); // expose as a big fat keypress event emit clearSelectionSignal(); @@ -1853,7 +1853,7 @@ void TEWidget::onClearSelection() //FIXME: an `eventFilter' has been installed instead of a `keyPressEvent' // due to a bug in `QT' or the ignorance of the author to prevent -// tqrepaint events being emitted to the screen whenever one leaves +// repaint events being emitted to the screen whenever one leaves // or reenters the screen to/from another application. // // Troll says one needs to change focusInEvent() and focusOutEvent(), @@ -1873,7 +1873,7 @@ void TEWidget::doScroll(int lines) bool TEWidget::eventFilter( TQObject *obj, TQEvent *e ) { if ( (e->type() == TQEvent::Accel || - e->type() == TQEvent::AccelAvailable ) && tqApp->tqfocusWidget() == this ) + e->type() == TQEvent::AccelAvailable ) && qApp->focusWidget() == this ) { static_cast( e )->ignore(); return false; @@ -1971,13 +1971,13 @@ void TEWidget::imEndEvent( TQIMEvent *e ) int tLx = tL.x(); int tLy = tL.y(); - TQRect tqrepaintRect = TQRect( bX+tLx, bY+tLy+font_h*m_imStartLine, + TQRect repaintRect = TQRect( bX+tLx, bY+tLy+font_h*m_imStartLine, contentsRect().width(), contentsRect().height() ); m_imStart = 0; m_imPreeditLength = 0; m_isIMEdit = m_isIMSel = false; - tqrepaint( tqrepaintRect, true ); + repaint( repaintRect, true ); } // Override any Ctrl+ accelerator when pressed with the keyboard @@ -2097,7 +2097,7 @@ void TEWidget::clearImage() void TEWidget::calcGeometry() { - scrollbar->resize(TQApplication::style().tqpixelMetric(TQStyle::PM_ScrollBarExtent), + scrollbar->resize(TQApplication::style().pixelMetric(TQStyle::PM_ScrollBarExtent), contentsRect().height()); switch(scrollLoc) { @@ -2170,7 +2170,7 @@ void TEWidget::setFixedSize(int cols, int lins) TQFrame::setFixedSize(m_size); } -TQSize TEWidget::tqsizeHint() const +TQSize TEWidget::sizeHint() const { return m_size; } @@ -2235,7 +2235,7 @@ void TEWidget::dropEvent(TQDropEvent* event) TQString tmp; if (url.isLocalFile()) { tmp = url.path(); // local URL : remove protocol. This helps "ln" & "cd" and doesn't harm the others - } else if ( url.protocol() == TQString::tqfromLatin1( "mailto" ) ) { + } else if ( url.protocol() == TQString::fromLatin1( "mailto" ) ) { justPaste = true; break; } else { diff --git a/konsole/konsole/TEWidget.h b/konsole/konsole/TEWidget.h index ae7e0a8ec..2c11eac2e 100644 --- a/konsole/konsole/TEWidget.h +++ b/konsole/konsole/TEWidget.h @@ -96,7 +96,7 @@ public: void updateImageSize(); void setSize(int cols, int lins); void setFixedSize(int cols, int lins); - TQSize tqsizeHint() const; + TQSize sizeHint() const; void setWordCharacters(TQString wc); TQString wordCharacters() { return word_characters; } diff --git a/konsole/konsole/TEmuVt102.cpp b/konsole/konsole/TEmuVt102.cpp index a60246106..0bdb0f42c 100644 --- a/konsole/konsole/TEmuVt102.cpp +++ b/konsole/konsole/TEmuVt102.cpp @@ -307,7 +307,7 @@ void TEmuVt102::initTokenizer() #define ESC 27 #define CNTL(c) ((c)-'@') -// process an incoming tqunicode character +// process an incoming unicode character void TEmuVt102::onRcvChar(int cc) { int i; @@ -606,7 +606,7 @@ switch( N ) case TY_CSI_PS('m', 106) : scr->setBackColor (CO_SYS, 14); break; case TY_CSI_PS('m', 107) : scr->setBackColor (CO_SYS, 15); break; - case TY_CSI_PS('n', 5) : reporttqStatus ( ); break; + case TY_CSI_PS('n', 5) : reportStatus ( ); break; case TY_CSI_PS('n', 6) : reportCursorPosition ( ); break; case TY_CSI_PS('q', 0) : /* IGNORED: LEDs off */ break; //VT100 case TY_CSI_PS('q', 1) : /* IGNORED: LED1 on */ break; //VT100 @@ -847,7 +847,7 @@ void TEmuVt102::reportTerminalParms(int p) /*! */ -void TEmuVt102::reporttqStatus() +void TEmuVt102::reportStatus() { sendString("\033[0n"); //VT100. Device status report. 0 = Ready. } @@ -1007,7 +1007,7 @@ void TEmuVt102::onKeyPress( TQKeyEvent* ev ) // Character Set Conversion ------------------------------------------------ -- /* - The processing tqcontains a VT100 specific code translation layer. + The processing contains a VT100 specific code translation layer. It's still in use and mainly responsible for the line drawing graphics. These and some other glyphs are assigned to codes (0x5f-0xfe) @@ -1328,7 +1328,7 @@ static int xkb_init() #if 0 // This method doesn't work in all cases. The atom "ScrollLock" doesn't seem // to exist on all XFree versions (at least it's not here with my 3.3.6) - DF -static unsigned int xkb_tqmask_modifier( XkbDescPtr xkb, const char *name ) +static unsigned int xkb_mask_modifier( XkbDescPtr xkb, const char *name ) { int i; if( !xkb || !xkb->names ) @@ -1344,30 +1344,30 @@ static unsigned int xkb_tqmask_modifier( XkbDescPtr xkb, const char *name ) { if (atom == xkb->names->vmods[i] ) { - unsigned int tqmask; - XkbVirtualModsToReal( xkb, 1 << i, &tqmask ); - return tqmask; + unsigned int mask; + XkbVirtualModsToReal( xkb, 1 << i, &mask ); + return mask; } } return 0; } -static unsigned int xkb_scrolllock_tqmask() +static unsigned int xkb_scrolllock_mask() { XkbDescPtr xkb; if(( xkb = XkbGetKeyboard( qt_xdisplay(), XkbAllComponentsMask, XkbUseCoreKbd )) != NULL ) { - unsigned int tqmask = xkb_tqmask_modifier( xkb, "ScrollLock" ); + unsigned int mask = xkb_mask_modifier( xkb, "ScrollLock" ); XkbFreeKeyboard( xkb, 0, True ); - return tqmask; + return mask; } return 0; } #else -static unsigned int xkb_scrolllock_tqmask() +static unsigned int xkb_scrolllock_mask() { - int scrolllock_tqmask = 0; + int scrolllock_mask = 0; XModifierKeymap* map = XGetModifierMapping( qt_xdisplay() ); KeyCode scrolllock_keycode = XKeysymToKeycode( qt_xdisplay(), XK_Scroll_Lock ); if( scrolllock_keycode == NoSymbol ) { @@ -1379,42 +1379,42 @@ static unsigned int xkb_scrolllock_tqmask() ++i ) { if( map->modifiermap[ map->max_keypermod * i ] == scrolllock_keycode ) - scrolllock_tqmask += 1 << i; + scrolllock_mask += 1 << i; } XFreeModifiermap(map); - return scrolllock_tqmask; + return scrolllock_mask; } #endif -static unsigned int scrolllock_tqmask = 0; +static unsigned int scrolllock_mask = 0; static int xkb_set_on() { - if (!scrolllock_tqmask) + if (!scrolllock_mask) { if( !xkb_init()) return 0; - scrolllock_tqmask = xkb_scrolllock_tqmask(); - if( scrolllock_tqmask == 0 ) + scrolllock_mask = xkb_scrolllock_mask(); + if( scrolllock_mask == 0 ) return 0; } - XkbLockModifiers ( qt_xdisplay(), XkbUseCoreKbd, scrolllock_tqmask, scrolllock_tqmask); + XkbLockModifiers ( qt_xdisplay(), XkbUseCoreKbd, scrolllock_mask, scrolllock_mask); return 1; } static int xkb_set_off() { - if (!scrolllock_tqmask) + if (!scrolllock_mask) { if( !xkb_init()) return 0; - scrolllock_tqmask = xkb_scrolllock_tqmask(); - if( scrolllock_tqmask == 0 ) + scrolllock_mask = xkb_scrolllock_mask(); + if( scrolllock_mask == 0 ) return 0; } - XkbLockModifiers ( qt_xdisplay(), XkbUseCoreKbd, scrolllock_tqmask, 0); + XkbLockModifiers ( qt_xdisplay(), XkbUseCoreKbd, scrolllock_mask, 0); return 1; } diff --git a/konsole/konsole/TEmuVt102.h b/konsole/konsole/TEmuVt102.h index fde0f9557..05f30ac04 100644 --- a/konsole/konsole/TEmuVt102.h +++ b/konsole/konsole/TEmuVt102.h @@ -117,7 +117,7 @@ private: void reportTerminalType(); void reportSecondaryAttributes(); - void reporttqStatus(); + void reportStatus(); void reportAnswerBack(); void reportCursorPosition(); void reportTerminalParms(int p); diff --git a/konsole/konsole/TEmulation.cpp b/konsole/konsole/TEmulation.cpp index f8e3e501d..39aeab542 100644 --- a/konsole/konsole/TEmulation.cpp +++ b/konsole/konsole/TEmulation.cpp @@ -251,7 +251,7 @@ int TEmulation::keymapNo() */ void TEmulation::onRcvChar(int c) -// process application tqunicode input to terminal +// process application unicode input to terminal // this is a trivial scanner { c &= 0xff; @@ -284,7 +284,7 @@ void TEmulation::onKeyPress( TQKeyEvent* ev ) scr->setHistCursor(scr->getHistLines()); if (!ev->text().isEmpty()) { // A block of text - // Note that the text is proper tqunicode. + // Note that the text is proper unicode. // We should do a conversion here, but since this // routine will never be used, we simply emit plain ascii. emit sndBlock(ev->text().ascii(),ev->text().length()); @@ -299,7 +299,7 @@ void TEmulation::onKeyPress( TQKeyEvent* ev ) // Unblocking, Byte to Unicode translation --------------------------------- -- /* - We are doing code conversion from locale to tqunicode first. + We are doing code conversion from locale to unicode first. */ void TEmulation::onRcvBlock(const char *s, int len) @@ -345,7 +345,7 @@ void TEmulation::onRcvBlock(const char *s, int len) if (r[j].category() == TQChar::Mark_NonSpacing) scr->compose(r.mid(j,1)); else - onRcvChar(r[j].tqunicode()); + onRcvChar(r[j].unicode()); } i = l; } diff --git a/konsole/konsole/fontembedder.cpp b/konsole/konsole/fontembedder.cpp index d0c17e084..dfbd88ce4 100644 --- a/konsole/konsole/fontembedder.cpp +++ b/konsole/konsole/fontembedder.cpp @@ -26,7 +26,7 @@ using namespace std; -static TQ_UINT32 charVal(TQChar val) +static Q_UINT32 charVal(TQChar val) { if (val == ' ') return 0; @@ -34,13 +34,13 @@ static TQ_UINT32 charVal(TQChar val) return 1; } -static TQ_UINT32 readGlyphLine(TQTextStream& input) +static Q_UINT32 readGlyphLine(TQTextStream& input) { TQString line = input.readLine(); while (line.length() < 5) line += ' '; - TQ_UINT32 val = charVal(line[0]) | + Q_UINT32 val = charVal(line[0]) | (charVal(line[1]) << 1) | (charVal(line[2]) << 2) | (charVal(line[3]) << 3) | @@ -48,7 +48,7 @@ static TQ_UINT32 readGlyphLine(TQTextStream& input) return val; } -static TQ_UINT32 readGlyph(TQTextStream& input) +static Q_UINT32 readGlyph(TQTextStream& input) { return readGlyphLine(input) | (readGlyphLine(input) << 5) | @@ -72,7 +72,7 @@ int main(int argc, char **argv) TQTextStream input(&inFile); - TQ_UINT32 glyphStates[128]; + Q_UINT32 glyphStates[128]; for (int i = 0; i < 128; ++i) glyphStates[i] = 0; //nothing.. @@ -98,7 +98,7 @@ int main(int argc, char **argv) //Output. cout<<"// WARNING: Autogenerated by \"fontembedder " << argv[1] << "\".\n"; cout<<"// You probably do not want to hand-edit this!\n\n"; - cout<<"static const TQ_UINT32 LineChars[] = {\n"; + cout<<"static const Q_UINT32 LineChars[] = {\n"; //Nicely formatted: 8 per line, 16 lines for (int line = 0; line < 128; line += 8) diff --git a/konsole/konsole/keytrans.cpp b/konsole/konsole/keytrans.cpp index af97b0a85..36e299bc0 100644 --- a/konsole/konsole/keytrans.cpp +++ b/konsole/konsole/keytrans.cpp @@ -41,8 +41,8 @@ instances represent the individual assignments */ -KeyTrans::KeyEntry::KeyEntry(int _ref, int _key, int _bits, int _tqmask, int _cmd, TQString _txt) -: ref(_ref), key(_key), bits(_bits), tqmask(_tqmask), cmd(_cmd), txt(_txt) +KeyTrans::KeyEntry::KeyEntry(int _ref, int _key, int _bits, int _mask, int _cmd, TQString _txt) +: ref(_ref), key(_key), bits(_bits), mask(_mask), cmd(_cmd), txt(_txt) { } @@ -50,20 +50,20 @@ KeyTrans::KeyEntry::~KeyEntry() { } -bool KeyTrans::KeyEntry::matches(int _key, int _bits, int _tqmask) -{ int m = tqmask & _tqmask; +bool KeyTrans::KeyEntry::matches(int _key, int _bits, int _mask) +{ int m = mask & _mask; return _key == key && (bits & m) == (_bits & m); } bool KeyTrans::KeyEntry::metaspecified(void) { - return ((tqmask & (1 << BITS_Alt)) && (bits & (1 << BITS_Alt))) || - ((tqmask & (1 << BITS_AnyMod)) && (bits & (1 << BITS_AnyMod))); + return ((mask & (1 << BITS_Alt)) && (bits & (1 << BITS_Alt))) || + ((mask & (1 << BITS_AnyMod)) && (bits & (1 << BITS_AnyMod))); } bool KeyTrans::KeyEntry::anymodspecified(void) { - return (tqmask & (1 << BITS_AnyMod)) && (bits & (1 << BITS_AnyMod)); + return (mask & (1 << BITS_AnyMod)) && (bits & (1 << BITS_AnyMod)); } TQString KeyTrans::KeyEntry::text() @@ -110,17 +110,17 @@ KeyTrans::~KeyTrans() { } -KeyTrans::KeyEntry* KeyTrans::addEntry(int ref, int key, int bits, int tqmask, int cmd, TQString txt) +KeyTrans::KeyEntry* KeyTrans::addEntry(int ref, int key, int bits, int mask, int cmd, TQString txt) // returns conflicting entry { for (TQPtrListIterator it(tableX); it.current(); ++it) { - if (it.current()->matches(key,bits,tqmask)) + if (it.current()->matches(key,bits,mask)) { return it.current(); } } - tableX.append(new KeyEntry(ref,key,bits,tqmask,cmd,txt)); + tableX.append(new KeyEntry(ref,key,bits,mask,cmd,txt)); return (KeyEntry*)NULL; } @@ -141,10 +141,10 @@ bool KeyTrans::findEntry(int key, int bits, int* cmd, const char** txt, int* len { static char buf[16]; char *c; - char tqmask = '1' + BITS(0, bits&(1<txt.ascii()); c = (char*)strchr(buf, '*'); - if (c) *c = tqmask; + if (c) *c = mask; *txt = buf; } else @@ -402,7 +402,7 @@ Loop: //printf(" key %s (%04x)",res.latin1(),(int)syms->keysyms[res]-1); getSymbol(); // + - : int mode = 0; - int tqmask = 0; + int mask = 0; while (sym == SYMOpr && (!strcmp(res.latin1(),"+") || !strcmp(res.latin1(),"-"))) { bool on = !strcmp(res.latin1(),"+"); @@ -411,14 +411,14 @@ Loop: assertSyntax(sym == SYMName, "Name expected") assertSyntax(syms->modsyms[res], "Unknown mode name") ptrdiff_t bits = (ptrdiff_t)(syms->modsyms[res]) - 1; - if (tqmask & (1 << bits)) + if (mask & (1 << bits)) { fprintf(stderr,"%s(%d,%d): mode name used multiple times.\n",path.ascii(),slinno,scolno); } else { mode |= (on << bits); - tqmask |= (1 << bits); + mask |= (1 << bits); } //printf(", mode %s(%d) %s",res.latin1(),(int)syms->modsyms[res]-1,on?"on":"off"); getSymbol(); @@ -441,8 +441,8 @@ Loop: //for (unsigned i = 0; i < res.length(); i++) //printf(" %02x(%c)",res.latin1()[i],res.latin1()[i]>=' '?res.latin1()[i]:'?'); } -//printf(". summary %04x,%02x,%02x,%d\n",key,mode,tqmask,cmd); - KeyTrans::KeyEntry* ke = kt->addEntry(slinno,key,mode,tqmask,cmd,res); +//printf(". summary %04x,%02x,%02x,%d\n",key,mode,mask,cmd); + KeyTrans::KeyEntry* ke = kt->addEntry(slinno,key,mode,mask,cmd,res); if (ke) { fprintf(stderr,"%s(%d): keystroke already assigned in line %d.\n",path.ascii(),slinno,ke->ref); diff --git a/konsole/konsole/keytrans.h b/konsole/konsole/keytrans.h index c5268c4fd..2ddf5f776 100644 --- a/konsole/konsole/keytrans.h +++ b/konsole/konsole/keytrans.h @@ -68,9 +68,9 @@ class KeyTrans class KeyEntry { public: - KeyEntry(int ref, int key, int bits, int tqmask, int cmd, TQString txt); + KeyEntry(int ref, int key, int bits, int mask, int cmd, TQString txt); ~KeyEntry(); - bool matches(int key, int bits, int tqmask); + bool matches(int key, int bits, int mask); bool metaspecified(void); bool anymodspecified(void); TQString text(); @@ -78,14 +78,14 @@ class KeyTrans private: int key; int bits; - int tqmask; + int mask; public: int cmd; TQString txt; }; private: - KeyEntry* addEntry(int ref, int key, int bits, int tqmask, int cmd, TQString txt); + KeyEntry* addEntry(int ref, int key, int bits, int mask, int cmd, TQString txt); void addKeyTrans(); void readConfig(); TQPtrList tableX; diff --git a/konsole/konsole/konsole.cpp b/konsole/konsole/konsole.cpp index 5badd652d..ecef79d4a 100644 --- a/konsole/konsole/konsole.cpp +++ b/konsole/konsole/konsole.cpp @@ -789,7 +789,7 @@ void Konsole::makeGUI() KeyTrans* ktr = kt_map[*it]; assert( ktr ); TQString title=ktr->hdr(); - m_keytab->insertItem(title.tqreplace('&',"&&"),ktr->numb()); + m_keytab->insertItem(title.replace('&',"&&"),ktr->numb()); } applySettingsToGUI(); @@ -1280,7 +1280,7 @@ void Konsole::setColLin(int columns, int lines) te->setSize(columns, lines); adjustSize(); if (b_fixedSize) - setFixedSize(tqsizeHint()); + setFixedSize(sizeHint()); notifySize(columns, lines); // set menu items } } @@ -1316,7 +1316,7 @@ void Konsole::slotTabContextMenu(TQWidget* _te, const TQPoint & pos) int counter=0; for (TESession *ses = sessions.first(); ses; ses = sessions.next()) { TQString title=ses->Title(); - m_tabPopupTabsMenu->insertItem(SmallIcon(ses->IconName()),title.tqreplace('&',"&&"),counter++); + m_tabPopupTabsMenu->insertItem(SmallIcon(ses->IconName()),title.replace('&',"&&"),counter++); } m_tabPopupMenu->popup( pos ); @@ -1382,7 +1382,7 @@ void Konsole::slotTabSetViewOptions(int mode) else title = sessions.at(i)->Title(); - title=title.tqreplace('&',"&&"); + title=title.replace('&',"&&"); switch(mode) { case ShowIconAndText: tabwidget->changeTab(page, icon, title); @@ -1428,7 +1428,7 @@ void Konsole::slotSaveSessionsProfile() TQString::null, &ok, this ); if ( ok ) { TQString path = locateLocal( "data", - TQString::tqfromLatin1( "konsole/profiles/" ) + prof, + TQString::fromLatin1( "konsole/profiles/" ) + prof, KGlobal::instance() ); if ( TQFile::exists( path ) ) @@ -1635,7 +1635,7 @@ void Konsole::readProperties(KConfig* config, const TQString &schema, bool globa delete rootxpms[te]; rootxpms.remove(te); } - pixmap_menu_activated(sch->tqalignment()); + pixmap_menu_activated(sch->alignment()); } te->setColorTable(sch->table()); //FIXME: set twice here to work around a bug @@ -1874,7 +1874,7 @@ void Konsole::updateSchemaMenu() ColorSchema* s = (ColorSchema*)colors->at(i); assert( s ); TQString title=s->title(); - m_schema->insertItem(title.tqreplace('&',"&&"),s->numb(),0); + m_schema->insertItem(title.replace('&',"&&"),s->numb(),0); } if (te && se) @@ -1912,7 +1912,7 @@ void Konsole::slotToggleMenubar() { if (b_fixedSize) { adjustSize(); - setFixedSize(tqsizeHint()); + setFixedSize(sizeHint()); } if (!showMenubar->isChecked()) { setCaption(i18n("Use the right mouse button to bring back the menu")); @@ -1987,12 +1987,12 @@ void Konsole::slotSelectTabbar() { /* FIXME: Still necessary ? */ TQPtrDictIterator it(rootxpms); for (;it.current();++it) - it.current()->tqrepaint(true); + it.current()->repaint(true); if (b_fixedSize) { adjustSize(); - setFixedSize(tqsizeHint()); + setFixedSize(sizeHint()); } } @@ -2224,7 +2224,7 @@ void Konsole::updateTitle(TESession* _se) if (m_tabViewMode == ShowIconOnly) tabwidget->changeTab( _se->widget(), TQString::null ); else if (b_matchTabWinTitle) - tabwidget->setTabLabel( _se->widget(), _se->fullTitle().tqreplace('&',"&&")); + tabwidget->setTabLabel( _se->widget(), _se->fullTitle().replace('&',"&&")); } void Konsole::initSessionFont(TQFont font) { @@ -2362,7 +2362,7 @@ void Konsole::enterURL(const TQString& URL, const TQString&) KRun::shellQuote(newtext); te->emitText("cd "+newtext+"\r"); } - else if (URL.tqcontains("://", true)) { + else if (URL.contains("://", true)) { KURL u(URL); newtext = u.protocol(); bool isSSH = (newtext == "ssh"); @@ -2445,7 +2445,7 @@ void Konsole::addSession(TESession* s) s->setTitle(newTitle); // create an action for the session - KRadioAction *ra = new KRadioAction(newTitle.tqreplace('&',"&&"), + KRadioAction *ra = new KRadioAction(newTitle.replace('&',"&&"), s->IconName(), 0, this, @@ -2496,7 +2496,7 @@ void Konsole::listSessions() m_sessionList->setKeyboardShortcutsEnabled(true); for (TESession *ses = sessions.first(); ses; ses = sessions.next()) { TQString title=ses->Title(); - m_sessionList->insertItem(SmallIcon(ses->IconName()),title.tqreplace('&',"&&"),counter++); + m_sessionList->insertItem(SmallIcon(ses->IconName()),title.replace('&',"&&"),counter++); } m_sessionList->adjustSize(); m_sessionList->popup(mapToGlobal(TQPoint((width()/2)-(m_sessionList->width()/2),(height()/2)-(m_sessionList->height()/2)))); @@ -2575,7 +2575,7 @@ void Konsole::activateSession(TESession *s) s_schema = cs->relPath(); curr_schema = cs->numb(); pmPath = cs->imagePath(); - n_render = cs->tqalignment(); + n_render = cs->alignment(); // BR 106464 temporary fix... // only 2 sessions opened, 2nd session viewable, right-click on 1st tab and @@ -3138,7 +3138,7 @@ void Konsole::moveSessionLeft() tabwidget->blockSignals(false); TQString title = se->Title(); createSessionTab(se->widget(), iconSetForSession(se), - title.tqreplace('&', "&&"), position-1); + title.replace('&', "&&"), position-1); tabwidget->showPage(se->widget()); tabwidget->setTabColor(se->widget(),oldcolor); @@ -3171,7 +3171,7 @@ void Konsole::moveSessionRight() tabwidget->blockSignals(false); TQString title = se->Title(); createSessionTab(se->widget(), iconSetForSession(se), - title.tqreplace('&', "&&"), position+1); + title.replace('&', "&&"), position+1); tabwidget->showPage(se->widget()); tabwidget->setTabColor(se->widget(),oldcolor); @@ -3383,7 +3383,7 @@ void Konsole::addSessionCommand(const TQString &path) TQString name = comment; name.prepend("SSC_"); // Allows easy searching for Session ShortCuts - name.tqreplace(" ", "_"); + name.replace(" ", "_"); sl_sessionShortCuts << name; // Is there already this shortcut? @@ -3433,13 +3433,13 @@ void Konsole::createSessionMenus() TQString txt = cfg->readEntry("Name"); TQString icon = cfg->readEntry("Icon", "konsole"); insertItemSorted(m_tabbarSessionsCommands, SmallIconSet(icon), - txt.tqreplace('&',"&&"), SESSION_NEW_SHELL_ID ); + txt.replace('&',"&&"), SESSION_NEW_SHELL_ID ); TQString comment = cfg->readEntry("Comment"); if (comment.isEmpty()) comment=txt.prepend(i18n("New ")); insertItemSorted(m_session, SmallIconSet(icon), - comment.tqreplace('&',"&&"), SESSION_NEW_SHELL_ID); + comment.replace('&',"&&"), SESSION_NEW_SHELL_ID); m_session->insertItem(SmallIconSet("window_new"), i18n("New &Window"), SESSION_NEW_WINDOW_ID); m_tabbarSessionsCommands->insertItem(SmallIconSet("window_new"), @@ -3455,12 +3455,12 @@ void Konsole::createSessionMenus() TQString txt = (*it).readEntry("Name"); TQString icon = (*it).readEntry("Icon", "konsole"); insertItemSorted(m_tabbarSessionsCommands, SmallIconSet(icon), - txt.tqreplace('&',"&&"), it.currentKey() ); + txt.replace('&',"&&"), it.currentKey() ); TQString comment = (*it).readEntry("Comment"); if (comment.isEmpty()) comment=txt.prepend(i18n("New ")); insertItemSorted(m_session, SmallIconSet(icon), - comment.tqreplace('&',"&&"), it.currentKey()); + comment.replace('&',"&&"), it.currentKey()); } if (m_bookmarksSession) @@ -3483,7 +3483,7 @@ void Konsole::addScreenSession(const TQString &path, const TQString &socket) co->writeEntry("Name", socket); TQString txt = i18n("Screen is a program controlling screens!", "Screen at %1").arg(socket); co->writeEntry("Comment", txt); - co->writePathEntry("Exec", TQString::tqfromLatin1("SCREENDIR=%1 screen -r %2") + co->writePathEntry("Exec", TQString::fromLatin1("SCREENDIR=%1 screen -r %2") .arg(path).arg(socket)); TQString icon = "konsole"; cmd_serial++; @@ -3616,7 +3616,7 @@ void Konsole::setSchema(ColorSchema* s, TEWidget* tewidget) rootxpms.insert( tewidget, new KRootPixmap(tewidget) ); rootxpms[tewidget]->setFadeEffect(s->tr_x(), TQColor(s->tr_r(), s->tr_g(), s->tr_b())); } else { - tewidget->setBlendColor(tqRgba(s->tr_r(), s->tr_g(), s->tr_b(), int(s->tr_x() * 255))); + tewidget->setBlendColor(qRgba(s->tr_r(), s->tr_g(), s->tr_b(), int(s->tr_x() * 255))); tewidget->setErasePixmap( TQPixmap() ); // make sure any background pixmap is unset } } else { @@ -3624,8 +3624,8 @@ void Konsole::setSchema(ColorSchema* s, TEWidget* tewidget) delete rootxpms[tewidget]; rootxpms.remove(tewidget); } - pixmap_menu_activated(s->tqalignment(), tewidget); - tewidget->setBlendColor(tqRgba(0, 0, 0, 0xff)); + pixmap_menu_activated(s->alignment(), tewidget); + tewidget->setBlendColor(qRgba(0, 0, 0, 0xff)); } tewidget->setColorTable(s->table()); @@ -3749,7 +3749,7 @@ void Konsole::attachSession(TESession* session) } TQString title=session->Title(); - KRadioAction *ra = new KRadioAction(title.tqreplace('&',"&&"), session->IconName(), + KRadioAction *ra = new KRadioAction(title.replace('&',"&&"), session->IconName(), 0, this, TQT_SLOT(activateSession()), m_shortcuts); ra->setExclusiveGroup("sessions"); @@ -3811,7 +3811,7 @@ void Konsole::slotRenameSession(TESession* ses, const TQString &name) { KRadioAction *ra = session2action.find(ses); TQString title=name; - title=title.tqreplace('&',"&&"); + title=title.replace('&',"&&"); ra->setText(title); ra->setIcon( ses->IconName() ); // I don't know why it is needed here if (m_tabViewMode!=ShowIconOnly) @@ -4192,7 +4192,7 @@ void Konsole::toggleBidi() TQPtrList tes = activeTEs(); for (TEWidget *_te = tes.first(); _te; _te = tes.next()) { _te->setBidiEnabled(b_bidiEnabled); - _te->tqrepaint(); + _te->repaint(); } } diff --git a/konsole/konsole/konsole_part.cpp b/konsole/konsole/konsole_part.cpp index b251007d1..620a0ebdb 100644 --- a/konsole/konsole/konsole_part.cpp +++ b/konsole/konsole/konsole_part.cpp @@ -76,12 +76,12 @@ konsoleFactory::~konsoleFactory() s_aboutData = 0; } -KParts::Part *konsoleFactory::createPartObject(TQWidget *tqparentWidget, const char *widgetName, +KParts::Part *konsoleFactory::createPartObject(TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *classname, const TQStringList&) { -// kdDebug(1211) << "konsoleFactory::createPart tqparentWidget=" << tqparentWidget << " parent=" << parent << endl; - KParts::Part *obj = new konsolePart(tqparentWidget, widgetName, parent, name, classname); +// kdDebug(1211) << "konsoleFactory::createPart parentWidget=" << parentWidget << " parent=" << parent << endl; + KParts::Part *obj = new konsolePart(parentWidget, widgetName, parent, name, classname); return obj; } @@ -97,7 +97,7 @@ KInstance *konsoleFactory::instance() #define DEFAULT_HISTORY_SIZE 1000 -konsolePart::konsolePart(TQWidget *_tqparentWidget, const char *widgetName, TQObject *parent, const char *name, const char *classname) +konsolePart::konsolePart(TQWidget *_parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *classname) : KParts::ReadOnlyPart(parent, name) ,te(0) ,se(0) @@ -120,7 +120,7 @@ konsolePart::konsolePart(TQWidget *_tqparentWidget, const char *widgetName, TQOb ,m_histSize(DEFAULT_HISTORY_SIZE) ,m_runningShell( false ) { - tqparentWidget=_tqparentWidget; + parentWidget=_parentWidget; setInstance(konsoleFactory::instance()); m_extension = new konsoleBrowserExtension(this); @@ -137,7 +137,7 @@ konsolePart::konsolePart(TQWidget *_tqparentWidget, const char *widgetName, TQOb const char* shell = getenv("SHELL"); if (shell == NULL || *shell == '\0') shell = "/bin/sh"; eargs.append(shell); - te = new TEWidget(tqparentWidget,widgetName); + te = new TEWidget(parentWidget,widgetName); te->setMinimumSize(150,70); // allow resizing, cause resize in TEWidget setWidget(te); @@ -197,7 +197,7 @@ konsolePart::konsolePart(TQWidget *_tqparentWidget, const char *widgetName, TQOb KeyTrans* ktr = kt_map[*it]; assert( ktr ); TQString title=ktr->hdr(); - m_keytab->insertItem(title.tqreplace('&',"&&"),ktr->numb()); + m_keytab->insertItem(title.replace('&',"&&"),ktr->numb()); } } @@ -317,13 +317,13 @@ void konsolePart::makeGUI() if (!kapp->authorizeKAction("konsole_rmb")) return; - actions = new KActionCollection( (KMainWindow*)tqparentWidget ); - settingsActions = new KActionCollection( (KMainWindow*)tqparentWidget ); + actions = new KActionCollection( (KMainWindow*)parentWidget ); + settingsActions = new KActionCollection( (KMainWindow*)parentWidget ); // Send Signal Menu ------------------------------------------------------------- if (kapp->authorizeKAction("send_signal")) { - m_signals = new KPopupMenu((KMainWindow*)tqparentWidget); + m_signals = new KPopupMenu((KMainWindow*)parentWidget); m_signals->insertItem( i18n( "&Suspend Task" ) + " (STOP)", SIGSTOP); m_signals->insertItem( i18n( "&Continue Task" ) + " (CONT)", SIGCONT); m_signals->insertItem( i18n( "&Hangup" ) + " (HUP)", SIGHUP); @@ -338,7 +338,7 @@ void konsolePart::makeGUI() // Settings Menu ---------------------------------------------------------------- if (kapp->authorizeKAction("settings")) { - m_options = new KPopupMenu((KMainWindow*)tqparentWidget); + m_options = new KPopupMenu((KMainWindow*)parentWidget); // Scrollbar selectScrollbar = new KSelectAction(i18n("Sc&rollbar"), 0, this, @@ -379,7 +379,7 @@ void konsolePart::makeGUI() // Keyboard Options Menu --------------------------------------------------- if (kapp->authorizeKAction("keyboard")) { - m_keytab = new KPopupMenu((KMainWindow*)tqparentWidget); + m_keytab = new KPopupMenu((KMainWindow*)parentWidget); m_keytab->setCheckable(true); connect(m_keytab, TQT_SIGNAL(activated(int)), TQT_SLOT(keytab_menu_activated(int))); m_options->insertItem( SmallIconSet( "key_bindings" ), i18n( "&Keyboard" ), m_keytab ); @@ -388,7 +388,7 @@ void konsolePart::makeGUI() // Schema Options Menu ----------------------------------------------------- if (kapp->authorizeKAction("schema")) { - m_schema = new KPopupMenu((KMainWindow*)tqparentWidget); + m_schema = new KPopupMenu((KMainWindow*)parentWidget); m_schema->setCheckable(true); connect(m_schema, TQT_SIGNAL(activated(int)), TQT_SLOT(schema_menu_activated(int))); connect(m_schema, TQT_SIGNAL(aboutToShow()), TQT_SLOT(schema_menu_check())); @@ -452,7 +452,7 @@ void konsolePart::makeGUI() } // Popup Menu ------------------------------------------------------------------- - m_popupMenu = new KPopupMenu((KMainWindow*)tqparentWidget); + m_popupMenu = new KPopupMenu((KMainWindow*)parentWidget); KAction* selectionEnd = new KAction(i18n("Set Selection End"), 0, te, TQT_SLOT(setSelectionEnd()), actions, "selection_end"); selectionEnd->plug(m_popupMenu); @@ -590,7 +590,7 @@ void konsolePart::readProperties() rootxpm = new KRootPixmap(te); rootxpm->setFadeEffect(sch->tr_x(), TQColor(sch->tr_r(), sch->tr_g(), sch->tr_b())); rootxpm->start(); - rootxpm->tqrepaint(true); + rootxpm->repaint(true); } else { if (rootxpm) { @@ -598,7 +598,7 @@ void konsolePart::readProperties() delete rootxpm; rootxpm=0; } - pixmap_menu_activated(sch->tqalignment()); + pixmap_menu_activated(sch->alignment()); } te->setBellMode(n_bell); @@ -733,7 +733,7 @@ void konsolePart::updateSchemaMenu() for (int i = 0; i < (int) colors->count(); i++) { ColorSchema* s = (ColorSchema*)colors->at(i); TQString title=s->title(); - m_schema->insertItem(title.tqreplace('&',"&&"),s->numb(),0); + m_schema->insertItem(title.replace('&',"&&"),s->numb(),0); } if (te && se) { @@ -778,7 +778,7 @@ void konsolePart::setSchema(ColorSchema* s) rootxpm = new KRootPixmap(te); rootxpm->setFadeEffect(s->tr_x(), TQColor(s->tr_r(), s->tr_g(), s->tr_b())); rootxpm->start(); - rootxpm->tqrepaint(true); + rootxpm->repaint(true); } else { if (rootxpm) { @@ -786,7 +786,7 @@ void konsolePart::setSchema(ColorSchema* s) delete rootxpm; rootxpm=0; } - pixmap_menu_activated(s->tqalignment()); + pixmap_menu_activated(s->alignment()); } te->setColorTable(s->table()); @@ -797,8 +797,8 @@ void konsolePart::notifySize(int /* columns */, int /* lines */) { ColorSchema *sch=colors->find(s_schema); - if (sch && sch->tqalignment() >= 3) - pixmap_menu_activated(sch->tqalignment()); + if (sch && sch->alignment() >= 3) + pixmap_menu_activated(sch->alignment()); } void konsolePart::pixmap_menu_activated(int item) @@ -847,7 +847,7 @@ void konsolePart::pixmap_menu_activated(int item) void konsolePart::slotHistoryType() { if ( ! se ) return; - HistoryTypeDialog dlg(se->history(), m_histSize, (KMainWindow*)tqparentWidget); + HistoryTypeDialog dlg(se->history(), m_histSize, (KMainWindow*)parentWidget); if (dlg.exec()) { if (dlg.isOn()) { if (dlg.nbLines() > 0) { @@ -917,7 +917,7 @@ void konsolePart::slotWordSeps() { bool ok; TQString seps = KInputDialog::getText( i18n( "Word Connectors" ), - i18n( "Characters other than alphanumerics considered part of a word when double clicking:" ), s_word_seps, &ok, tqparentWidget ); + i18n( "Characters other than alphanumerics considered part of a word when double clicking:" ), s_word_seps, &ok, parentWidget ); if ( ok ) { s_word_seps = seps; @@ -1077,7 +1077,7 @@ bool konsolePart::setPtyFd( int master_pty ) void konsolePart::newSession() { if ( se ) delete se; - se = new TESession(te, "xterm", tqparentWidget->winId()); + se = new TESession(te, "xterm", parentWidget->winId()); connect( se,TQT_SIGNAL(done(TESession*)), this,TQT_SLOT(doneSession(TESession*)) ); connect( se,TQT_SIGNAL(openURLRequest(const TQString &)), @@ -1107,7 +1107,7 @@ void konsolePart::newSession() // se->run(); connect( se, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( sessionDestroyed() ) ); // setFont( n_font ); // we do this here, to make TEWidget recalculate - // its tqgeometry.. + // its geometry.. } void konsolePart::showShellInDir( const TQString& dir ) @@ -1125,7 +1125,7 @@ void konsolePart::showShellInDir( const TQString& dir ) { TQString text = dir; KRun::shellQuote(text); - text = TQString::tqfromLatin1("cd ") + text + '\n'; + text = TQString::fromLatin1("cd ") + text + '\n'; te->emitText( text ); }; } diff --git a/konsole/konsole/konsole_part.h b/konsole/konsole/konsole_part.h index db7533178..1f65106ad 100644 --- a/konsole/konsole/konsole_part.h +++ b/konsole/konsole/konsole_part.h @@ -52,7 +52,7 @@ public: konsoleFactory(); virtual ~konsoleFactory(); - virtual KParts::Part* createPartObject(TQWidget *tqparentWidget = 0, const char *widgetName = 0, + virtual KParts::Part* createPartObject(TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, const char* classname = "KParts::Part", const TQStringList &args = TQStringList()); @@ -70,7 +70,7 @@ class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface, public { Q_OBJECT public: - konsolePart(TQWidget *tqparentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); + konsolePart(TQWidget *parentWidget, const char *widgetName, TQObject * parent, const char *name, const char *classname = 0); virtual ~konsolePart(); signals: @@ -140,7 +140,7 @@ signals: bool doWriteStream( const TQByteArray& ); bool doCloseStream(); - TQWidget* tqparentWidget; + TQWidget* parentWidget; TEWidget* te; TESession* se; ColorSchemaList* colors; diff --git a/konsole/konsole/konsole_wcwidth.cpp b/konsole/konsole/konsole_wcwidth.cpp index 63abe8dd1..73d7c7131 100644 --- a/konsole/konsole/konsole_wcwidth.cpp +++ b/konsole/konsole/konsole_wcwidth.cpp @@ -19,7 +19,7 @@ struct interval { }; /* auxiliary function for binary search in interval table */ -static int bisearch(TQ_UINT16 ucs, const struct interval *table, int max) { +static int bisearch(Q_UINT16 ucs, const struct interval *table, int max) { int min = 0; int mid; @@ -65,11 +65,11 @@ static int bisearch(TQ_UINT16 ucs, const struct interval *table, int max) { * ISO 8859-1 and WGL4 characters, Unicode control characters, * etc.) have a column width of 1. * - * This implementation assumes that TQ_UINT16 characters are encoded + * This implementation assumes that Q_UINT16 characters are encoded * in ISO 10646. */ -int konsole_wcwidth_normal(TQ_UINT16 ucs) +int konsole_wcwidth_normal(Q_UINT16 ucs) { /* sorted list of non-overlapping intervals of non-spacing characters */ static const struct interval combining[] = { @@ -143,7 +143,7 @@ int konsole_wcwidth_normal(TQ_UINT16 ucs) * encodings who want to migrate to UCS. It is not otherwise * recommended for general use. */ -int konsole_wcwidth_cjk(TQ_UINT16 ucs) +int konsole_wcwidth_cjk(Q_UINT16 ucs) { /* sorted list of non-overlapping intervals of East Asian Ambiguous * characters */ @@ -214,13 +214,13 @@ int string_width( const TQString &txt ) int w = 0; for ( uint i = 1; i < txt.length(); ++i ) { - w += konsole_wcwidth(txt[i].tqunicode()); + w += konsole_wcwidth(txt[i].unicode()); } return w; } -int konsole_wcwidth(TQ_UINT16 ucs) { +int konsole_wcwidth(Q_UINT16 ucs) { static int use_wcwidth_cjk = (getenv("KONSOLE_WCWIDTH_CJK")) ? 1: 0; diff --git a/konsole/konsole/konsole_wcwidth.h b/konsole/konsole/konsole_wcwidth.h index a7ca9ad4f..b070beb02 100644 --- a/konsole/konsole/konsole_wcwidth.h +++ b/konsole/konsole/konsole_wcwidth.h @@ -9,8 +9,8 @@ #include #include -int konsole_wcwidth(TQ_UINT16 ucs); -//int konsole_wcwidth_cjk(TQ_UINT16 ucs); +int konsole_wcwidth(Q_UINT16 ucs); +//int konsole_wcwidth_cjk(Q_UINT16 ucs); int string_width( const TQString &txt ); diff --git a/konsole/konsole/konsolebookmarkmenu.cpp b/konsole/konsole/konsolebookmarkmenu.cpp index 25a71d4e9..0686cfbf1 100644 --- a/konsole/konsole/konsolebookmarkmenu.cpp +++ b/konsole/konsole/konsolebookmarkmenu.cpp @@ -90,14 +90,14 @@ void KonsoleBookmarkMenu::fillBookmarkMenu() addNewFolder(); } - KBookmarkGroup parentBookmark = m_pManager->tqfindByAddress( m_parentAddress ).toGroup(); + KBookmarkGroup parentBookmark = m_pManager->findByAddress( m_parentAddress ).toGroup(); Q_ASSERT(!parentBookmark.isNull()); bool separatorInserted = false; for ( KBookmark bm = parentBookmark.first(); !bm.isNull(); bm = parentBookmark.next(bm) ) { TQString text = bm.text(); - text.tqreplace( '&', "&&" ); + text.replace( '&', "&&" ); if ( !separatorInserted && m_bIsRoot) { // inserted before the first konq bookmark, to avoid the separator if no konq bookmark m_parentMenu->insertSeparator(); separatorInserted = true; diff --git a/konsole/konsole/linefont.h b/konsole/konsole/linefont.h index a68457023..9873c43d4 100644 --- a/konsole/konsole/linefont.h +++ b/konsole/konsole/linefont.h @@ -1,7 +1,7 @@ // WARNING: Autogenerated by "fontembedder ./linefont.src". // You probably do not want to hand-edit this! -static const TQ_UINT32 LineChars[] = { +static const Q_UINT32 LineChars[] = { 0x00007c00, 0x000fffe0, 0x00421084, 0x00e739ce, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00427000, 0x004e7380, 0x00e77800, 0x00ef7bc0, 0x00421c00, 0x00439ce0, 0x00e73c00, 0x00e7bde0, 0x00007084, 0x000e7384, 0x000079ce, 0x000f7bce, diff --git a/konsole/konsole/main.cpp b/konsole/konsole/main.cpp index a14372ce2..7be5e5146 100644 --- a/konsole/konsole/main.cpp +++ b/konsole/konsole/main.cpp @@ -324,7 +324,7 @@ extern "C" int KDE_EXPORT kdemain(int argc, char* argv[]) TQString term = ""; if(args->isSet("tn")) { - term=TQString::tqfromLatin1(args->getOption("tn")); + term=TQString::fromLatin1(args->getOption("tn")); } login_shell = args->isSet("ls"); @@ -644,13 +644,13 @@ extern "C" int KDE_EXPORT kdemain(int argc, char* argv[]) //// Temporary code, waiting for Qt to do this properly // Delete all toplevel widgets that have WDestructiveClose - TQWidgetList *list = TQApplication::tqtopLevelWidgets(); + TQWidgetList *list = TQApplication::topLevelWidgets(); // remove all toplevel widgets that have a parent (i.e. they // got WTopLevel explicitly), they'll be deleted by the parent list->first(); while( list->current()) { - if( list->current()->tqparentWidget() != NULL || !list->current()->testWFlags( Qt::WDestructiveClose ) ) + if( list->current()->parentWidget() != NULL || !list->current()->testWFlags( Qt::WDestructiveClose ) ) { list->remove(); continue; diff --git a/konsole/konsole/schema.cpp b/konsole/konsole/schema.cpp index 825d13efe..8d85329eb 100644 --- a/konsole/konsole/schema.cpp +++ b/konsole/konsole/schema.cpp @@ -101,7 +101,7 @@ static const char *colornames[TABLE_COLORS] = static const ColorEntry default_table[TABLE_COLORS] = // The following are almost IBM standard color codes, with some slight // gamma correction for the dim colors to compensate for bright X screens. - // It tqcontains the 8 ansiterm/xterm colors in 2 intensities. + // It contains the 8 ansiterm/xterm colors in 2 intensities. { ColorEntry( TQColor(0x00,0x00,0x00), 0, 0 ), ColorEntry( TQColor(0xFF,0xFF,0xFF), 1, 0 ), // Dfore, Dback @@ -131,7 +131,7 @@ ColorSchema::ColorSchema(const TQString& pathname) ,lastRead(new TQDateTime()) { //start with a valid time, aleXXX - *lastRead = TQDateTime::tqcurrentDateTime(); + *lastRead = TQDateTime::currentDateTime(); TQString fPath = pathname.startsWith("/") ? pathname : locate("data", "konsole/"+pathname); if (fPath.isEmpty() || !TQFile::exists(fPath)) { @@ -169,7 +169,7 @@ ColorSchema::ColorSchema(KConfig& c) m_title = c.readEntry("Title",i18n("[no title]")); m_imagePath = c.readEntry("ImagePath"); - m_tqalignment = c.readNumEntry("ImageAlignment",1); + m_alignment = c.readNumEntry("ImageAlignment",1); m_useTransparency = c.readBoolEntry("UseTransparency",false); m_tr_r = c.readNumEntry("TransparentR",0); @@ -203,7 +203,7 @@ void ColorSchema::clearSchema() } m_title = i18n("[no title]"); m_imagePath = ""; - m_tqalignment = 1; + m_alignment = 1; m_useTransparency = false; m_tr_x = 0.0; m_tr_r = 0; @@ -216,7 +216,7 @@ void ColorSchema::setDefaultSchema() m_numb = 0; m_title = i18n("Konsole Default"); m_imagePath = ""; // background pixmap - m_tqalignment = 1; // none + m_alignment = 1; // none m_useTransparency = false; // not use pseudo-transparency by default m_tr_r = m_tr_g = m_tr_b = 0; // just to be on the safe side m_tr_x = 0.0; @@ -273,7 +273,7 @@ void ColorSchema::writeConfig(const TQString& path) const c.setGroup("SchemaGeneral"); c.writeEntry("Title",m_title); c.writeEntry("ImagePath",m_imagePath); - c.writeEntry("ImageAlignment",m_tqalignment); + c.writeEntry("ImageAlignment",m_alignment); c.writeEntry("UseTransparency",m_useTransparency); c.writeEntry("TransparentR",m_tr_r); @@ -313,7 +313,7 @@ bool ColorSchema::rereadSchemaFile() char line[100]; - *lastRead = TQDateTime::tqcurrentDateTime(); + *lastRead = TQDateTime::currentDateTime(); while (fscanf(sysin,"%80[^\n]\n",line) > 0) { @@ -334,7 +334,7 @@ bool ColorSchema::rereadSchemaFile() TQString qline(line); m_imagePath = locate("wallpaper", qline.mid( qline.find(" ",7)+1 ) ); - m_tqalignment = attr; + m_alignment = attr; } if (!strncmp(line,"transparency",12)) { float rx; @@ -615,7 +615,7 @@ bool ColorSchemaList::checkSchemas() // now. // // - TQDateTime now = TQDateTime::tqcurrentDateTime(); + TQDateTime now = TQDateTime::currentDateTime(); r = updateAllSchemaTimes(now); diff --git a/konsole/konsole/schema.h b/konsole/konsole/schema.h index 42cdfe1ed..904767df6 100644 --- a/konsole/konsole/schema.h +++ b/konsole/konsole/schema.h @@ -150,7 +150,7 @@ protected: int numb() {if (!m_fileRead) rereadSchemaFile();return m_numb;}; const TQString& title() {if (!m_fileRead) rereadSchemaFile();return m_title;}; const TQString& imagePath() {if (!m_fileRead) rereadSchemaFile();return m_imagePath;}; - int tqalignment() {if (!m_fileRead) rereadSchemaFile();return m_tqalignment;}; + int alignment() {if (!m_fileRead) rereadSchemaFile();return m_alignment;}; const ColorEntry* table() {if (!m_fileRead) rereadSchemaFile();return m_table;}; bool useTransparency() {if (!m_fileRead) rereadSchemaFile();return m_useTransparency;}; double tr_x() {if (!m_fileRead) rereadSchemaFile();return m_tr_x;}; @@ -162,7 +162,7 @@ protected: private: int m_numb; int m_tr_r, m_tr_g, m_tr_b; - int m_tqalignment; + int m_alignment; TQString m_title; TQString m_imagePath; ColorEntry m_table[TABLE_COLORS]; @@ -234,7 +234,7 @@ private: /** * This isn't really used, but it could be. A newly - * constructed ColorSchemaList tqcontains one element: + * constructed ColorSchemaList contains one element: * the defaultSchema, with serial number 0. */ ColorSchema *defaultSchema; diff --git a/konsole/konsole/session.cpp b/konsole/konsole/session.cpp index a4d8ff4f5..53990af2f 100644 --- a/konsole/konsole/session.cpp +++ b/konsole/konsole/session.cpp @@ -133,11 +133,11 @@ void TESession::ptyError() { // FIXME: sh->error() is always empty if ( sh->error().isEmpty() ) - KMessageBox::error( te->tqtopLevelWidget(), + KMessageBox::error( te->topLevelWidget(), i18n("Konsole is unable to open a PTY (pseudo teletype). It is likely that this is due to an incorrect configuration of the PTY devices. Konsole needs to have read/write access to the PTY devices."), i18n("A Fatal Error Has Occurred") ); else - KMessageBox::error(te->tqtopLevelWidget(), sh->error()); + KMessageBox::error(te->topLevelWidget(), sh->error()); emit done(this); } @@ -232,7 +232,7 @@ void TESession::setUserTitle( int what, const TQString &caption ) renameSession(caption); if (what == 31) { cwd=caption; - cwd=cwd.tqreplace( TQRegExp("^~"), TQDir::homeDirPath() ); + cwd=cwd.replace( TQRegExp("^~"), TQDir::homeDirPath() ); emit openURLRequest(cwd); } if (what == 32) { // change icon via \033]32;Icon\007 @@ -637,7 +637,7 @@ void TESession::startZModem(const TQString &zmodem, const TQString &dir, const T connect(zmodemProc,TQT_SIGNAL (receivedStdout (KProcess *, char *, int)), this, TQT_SLOT(zmodemSendBlock(KProcess *, char *, int))); connect(zmodemProc,TQT_SIGNAL (receivedStderr (KProcess *, char *, int)), - this, TQT_SLOT(zmodemtqStatus(KProcess *, char *, int))); + this, TQT_SLOT(zmodemStatus(KProcess *, char *, int))); connect(zmodemProc,TQT_SIGNAL (processExited(KProcess *)), this, TQT_SLOT(zmodemDone())); @@ -645,7 +645,7 @@ void TESession::startZModem(const TQString &zmodem, const TQString &dir, const T connect( sh,TQT_SIGNAL(block_in(const char*,int)), this, TQT_SLOT(zmodemRcvBlock(const char*,int)) ); connect( sh,TQT_SIGNAL(buffer_empty()), this, TQT_SLOT(zmodemContinue())); - zmodemProgress = new ZModemDialog(te->tqtopLevelWidget(), false, + zmodemProgress = new ZModemDialog(te->topLevelWidget(), false, i18n("ZModem Progress")); connect(zmodemProgress, TQT_SIGNAL(user1Clicked()), @@ -671,7 +671,7 @@ void TESession::zmodemContinue() // qWarning("ZModem resume"); } -void TESession::zmodemtqStatus(KProcess *, char *data, int len) +void TESession::zmodemStatus(KProcess *, char *data, int len) { TQCString msg(data, len+1); while(!msg.isEmpty()) @@ -767,7 +767,7 @@ QCStringList TESession::functionsDynamic() void TESession::onRcvBlock( const char* buf, int len ) { em->onRcvBlock( buf, len ); - emit receivedData( TQString::tqfromLatin1( buf, len ) ); + emit receivedData( TQString::fromLatin1( buf, len ) ); } void TESession::print( TQPainter &paint, bool friendly, bool exact ) diff --git a/konsole/konsole/session.h b/konsole/konsole/session.h index 69be6cb86..cbe41ab50 100644 --- a/konsole/konsole/session.h +++ b/konsole/konsole/session.h @@ -137,7 +137,7 @@ public slots: void slotZModemDetected(); void emitZModemDetected(); - void zmodemtqStatus(KProcess *, char *data, int len); + void zmodemStatus(KProcess *, char *data, int len); void zmodemSendBlock(KProcess *, char *data, int len); void zmodemRcvBlock(const char *data, int len); void zmodemDone(); diff --git a/konsole/kwrited.desktop b/konsole/kwrited.desktop index 61da36e0e..d5bc977c4 100644 --- a/konsole/kwrited.desktop +++ b/konsole/kwrited.desktop @@ -79,7 +79,7 @@ Comment[be]=Назірае за паведамленнямі ад мясцовы Comment[bg]=Наблюдение за съобщения от локални потребители, изпратени с write(1) или wall(1) Comment[bs]=Prati poruke od lokalnih korisnika poslane koristeći write(1) ili wall(1) Comment[ca]=Fes atenció als missatges dels usuaris locals enviats amb write(1) o wall(1) -Comment[cs]=Sledování zpráv od místních uživatelů poslaných potqmocí write(1) nebo wall(1) +Comment[cs]=Sledování zpráv od místních uživatelů poslaných pomocí write(1) nebo wall(1) Comment[csb]=Dozérô wiadłów òd môlowëch brëkòwników wësłónëch przez write(1) abò wall(1) Comment[cy]=Gwylio am negeseuon oddiwrth defnyddwyr lleol a anfonwyd efo write(1) neu wall(1) Comment[da]=Kig efter beskeder fra lokale brugere sendt med write(1) eller wall(1) @@ -116,14 +116,14 @@ Comment[ne]=सन्देशका लागि स्थानीय प् Comment[nl]=Observeer berichten van lokale gebruikers verzonden met write(1) of wall(1) Comment[nn]=Sjå etter meldingar frå lokale brukarar sende med write(1) eller wall(1) Comment[pa]=ਸਥਾਨਕ ਉਪਭੋਗੀ ਰਾਹੀਂ write(1) or wall(1) ਨਾਲ ਭੇਜੇ ਸੁਨੇਹੇ ਵੇਖੋ -Comment[pl]=Śledzi wiadomości od użytkowników lokalnych wysyłane za potqmocą write(1) lub wall(1) +Comment[pl]=Śledzi wiadomości od użytkowników lokalnych wysyłane za pomocą write(1) lub wall(1) Comment[pt]=Escutar as mensagens dos utilizadores locais, enviadas com o write(1) ou o wall(1) Comment[pt_BR]=Observa mensagens de usuários locais, enviadas com o write(1) ou o wall(1) Comment[ro]=Așteaptă mesaje de la utilizatori, trimise cu write(1) sau wall(1) Comment[ru]=Приём сообщения пользователей локальной сети, отправленных командами write(1) или wall(1) Comment[rw]=Kugenzura ubutumwa buva ku bakoresha bahafi bwoherejwe hakoreshejwe kwandika(1) cyangwa urukuta(1) Comment[se]=Gozit dieđuid mat báikkalaš geavaheaddjit sáddejit «write» dahje «wall» -Comment[sk]=Sledovanie správ od lokálnych používateľov poslaných potqmocou príkazu write (1) alebo wall (1) +Comment[sk]=Sledovanie správ od lokálnych používateľov poslaných pomocou príkazu write (1) alebo wall (1) Comment[sl]=Opazuj sporočila od krajevnih uporabnikov, poslanih z write(1) ali wall(1) Comment[sr]=Чека поруке од локалних корисника послатих помоћу write(1) или wall(1) Comment[sr@Latn]=Čeka poruke od lokalnih korisnika poslatih pomoću write(1) ili wall(1) diff --git a/konsole/tests/esc.c b/konsole/tests/esc.c index c8837409e..520946b50 100644 --- a/konsole/tests/esc.c +++ b/konsole/tests/esc.c @@ -81,7 +81,7 @@ decswl() { /* Single With Line */ dectst(pn) int pn; { /* Invoke Confidence Test */ brc2(2, pn, 'y'); } -dsr(pn) int pn; { /* Device tqStatus Report */ +dsr(pn) int pn; { /* Device Status Report */ brc(pn, 'n'); } ed(pn) int pn; { /* Erase in Display */ diff --git a/konsole/tests/main.c b/konsole/tests/main.c index 87a288056..c80b0426c 100644 --- a/konsole/tests/main.c +++ b/konsole/tests/main.c @@ -534,7 +534,7 @@ tst_keyboard() { - DECKPAM (Keypad Application Mode) - DECKPNM (Keypad Numeric Mode) -The standard VT100 keayboard tqlayout: +The standard VT100 keayboard layout: UP DN LE RI @@ -562,7 +562,7 @@ TAB* qQ wW eE rR tT yY uU iI oO pP [{ ]} DEL char *ledmsg[6], *ledseq[6]; int i, j, okflag; - int kbtqlayout; + int kblayout; int ckeymode; int fkeymode; char kbdc; @@ -768,10 +768,10 @@ TAB* qQ wW eE rR tT yY uU iI oO pP [{ ]} DEL }; static char *keyboardmenu[] = { - "Standard American ASCII tqlayout", - "Swedish national tqlayout D47", - "Swedish national tqlayout E47", - /* add new keyboard tqlayouts here */ + "Standard American ASCII layout", + "Swedish national layout D47", + "Swedish national layout E47", + /* add new keyboard layouts here */ "" }; @@ -833,16 +833,16 @@ TAB* qQ wW eE rR tT yY uU iI oO pP [{ ]} DEL ed(2); cup(5,10); - println("Choose keyboard tqlayout:"); - kbtqlayout = menu(keyboardmenu); - if (kbtqlayout) { - kbtqlayout--; - for (j = 0; natkeytab[kbtqlayout][j].natc != '\0'; j++) { + println("Choose keyboard layout:"); + kblayout = menu(keyboardmenu); + if (kblayout) { + kblayout--; + for (j = 0; natkeytab[kblayout][j].natc != '\0'; j++) { for (i = 0; keytab[i].c != '\0'; i++) { - if (keytab[i].row == natkeytab[kbtqlayout][j].natrow && - keytab[i].col == natkeytab[kbtqlayout][j].natcol) { - keytab[i].c = natkeytab[kbtqlayout][j].natc; - keytab[i].symbol = natkeytab[kbtqlayout][j].natsymbol; + if (keytab[i].row == natkeytab[kblayout][j].natrow && + keytab[i].col == natkeytab[kblayout][j].natcol) { + keytab[i].c = natkeytab[kblayout][j].natc; + keytab[i].symbol = natkeytab[kblayout][j].natsymbol; break; } } @@ -1102,7 +1102,7 @@ tst_reports() { /* Test of: (AnswerBack Message) SM RM (Set/Reset Mode) - LineFeed / Newline - DSR (Device tqStatus Report) + DSR (Device Status Report) DA (Device Attributes) DECREQTPARM (Request Terminal Parameters) */ @@ -1204,7 +1204,7 @@ tst_reports() { ed(2); cup(1,1); - printf("Test of Device tqStatus Report 5 (report terminal status)."); + printf("Test of Device Status Report 5 (report terminal status)."); cup(2,1); dsr(5); report = instr(); @@ -1217,7 +1217,7 @@ tst_reports() { else printf(" -- Unknown response!"); cup(4,1); - println("Test of Device tqStatus Report 6 (report cursor position)."); + println("Test of Device Status Report 6 (report cursor position)."); cup(5,1); dsr(6); report = instr(); @@ -1445,7 +1445,7 @@ tst_vt52() { tst_insdel() { /* Test of: - SM/RM(4) (= IRM (Insertion/tqreplacement mode)) + SM/RM(4) (= IRM (Insertion/replacement mode)) ICH (Insert Character) DCH (Delete character) IL (Insert line) diff --git a/konsole/tests/vttest.1 b/konsole/tests/vttest.1 index af0558cd9..c4104925d 100644 --- a/konsole/tests/vttest.1 +++ b/konsole/tests/vttest.1 @@ -9,5 +9,5 @@ is a program designed to test the functionality of a VT100 terminal (or emulator thereof). It tests both display (escape sequence handling) and keyboard. .PP -The program is menu\-driven and tqcontains full on\-line operating +The program is menu\-driven and contains full on\-line operating instructions. -- cgit v1.2.1