From 5e3fc3a36b58c4e1cb48e31a350f76b7a81b3170 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:35:23 -0600 Subject: [PATCH] Rename a number of old tq methods that are no longer tq specific --- ChangeLog | 4 +-- doc/Scintilla/ScintillaDoc.html | 16 ++++++------ doc/Scintilla/ScintillaHistory.html | 18 +++++++------- doc/html/classQextScintilla-members.html | 4 +-- doc/html/classQextScintilla.html | 8 +++--- doc/html/classQextScintillaBase-members.html | 2 +- doc/html/classQextScintillaBase.html | 6 ++--- doc/html/classQextScintillaPrinter.html | 2 +- doc/html/functions_0x73.html | 2 +- doc/html/functions_func_0x73.html | 2 +- example/application.cpp | 6 ++--- include/Platform.h | 4 +-- include/Scintilla.h | 2 +- include/Scintilla.iface | 12 ++++----- qt/PlatQt.cpp | 14 +++++------ qt/SciListBox.cpp | 4 +-- qt/ScintillaQt.cpp | 10 ++++---- qt/qextscintilla.cpp | 10 ++++---- qt/qextscintilla.h | 4 +-- qt/qextscintillabase.cpp | 26 ++++++++++---------- qt/qextscintillabase.h | 2 +- qt/qextscintillalexer.cpp | 8 +++--- qt/qextscintillalexercss.cpp | 6 ++--- qt/qextscintillalexerhtml.cpp | 2 +- qt/qextscintillalexeridl.cpp | 2 +- qt/qextscintillalexertex.cpp | 2 +- qt/qextscintillaprinter.h | 2 +- src/AutoComplete.cpp | 4 +-- src/AutoComplete.h | 2 +- src/CallTip.cpp | 2 +- src/CallTip.h | 2 +- src/Editor.cpp | 22 ++++++++--------- src/Editor.h | 2 +- src/LineMarker.cpp | 2 +- 34 files changed, 108 insertions(+), 108 deletions(-) diff --git a/ChangeLog b/ChangeLog index faa8354..d09cbfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -96,7 +96,7 @@ Possibly fixed a possible problem with double clicking under Windows. 2006/07/02 14:27:26 phil Added setWrapVisualFlags(), WrapMode::WrapCharacter, WrapVisualFlag to QextScintilla. -The tqlayout cache is now set according to the wrap mode. +The layout cache is now set according to the wrap mode. Setting a wrap mode now disables the horizontal scrollbar. @@ -840,7 +840,7 @@ Fixed the QextScintilla::marginClicked() signature and changed it to pass the line number rather than the pixel position. Added mouse wheel support from Detlev. Setting the lexer no longer resets all the styles. -The cursor tqshape now changes when moved across the text area and margins. +The cursor shape now changes when moved across the text area and margins. Added ensureLineVisible(), setMarginsBackgroundColor(), setMarginsForegroundColor(), setMarginsFont() and the overloaded setMarginWidth() to QextScintilla. diff --git a/doc/Scintilla/ScintillaDoc.html b/doc/Scintilla/ScintillaDoc.html index 4d0b584..a32f9ef 100755 --- a/doc/Scintilla/ScintillaDoc.html +++ b/doc/Scintilla/ScintillaDoc.html @@ -473,7 +473,7 @@ SCI_GETSTYLEBITSNEEDED.

TextRange and CharacterRange
- These structures are defined to be exactly the same tqshape as the Win32 TEXTRANGE + These structures are defined to be exactly the same shape as the Win32 TEXTRANGE and CHARRANGE, so that older code that treats Scintilla as a RichEdit will work.

@@ -677,7 +677,7 @@ struct TextRange {
     href="#SCI_SEARCHINTARGET">SCI_SEARCHINTARGET

TextToFind
- This structure is defined to have exactly the same tqshape as the Win32 structure + This structure is defined to have exactly the same shape as the Win32 structure FINDTEXTEX for old code that treated Scintilla as a RichEdit control.

 struct TextToFind {
@@ -2873,7 +2873,7 @@ struct TextToFind {
     style information (for 32 styles) and 3 bits of indicator information for 3 independent
     indicators so that, for example, syntax errors, deprecated names and bad indentation could all
     be displayed at once. Indicators may be displayed as simple underlines, squiggly underlines, a
-    line of small 'T' tqshapes, a line of diagonal hatching, a strike-out or a rectangle around the text.

+ line of small 'T' shapes, a line of diagonal hatching, a strike-out or a rectangle around the text.

The indicators are set using SCI_STARTSTYLING with a INDICS_MASK mask @@ -2886,7 +2886,7 @@ struct TextToFind { Use SCI_GETENDSTYLED to retrieve the current "styled to" position and SCI_STARTSTYLING - to reset the styling position and mask (0x1f in the default tqlayout of 5 style bits and 3 indicator bits) + to reset the styling position and mask (0x1f in the default layout of 5 style bits and 3 indicator bits) when you are done.

The number of bits used for styles can be altered with 2 - A line of small T tqshapes. + A line of small T shapes. @@ -4110,10 +4110,10 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ Independent from drawing a visual flag at the begin the subline can have an indention.

Much of the time used by Scintilla is spent on laying out and drawing text. The same text - tqlayout calculations may be performed many times even when the data used in these calculations - does not change. To avoid these unnecessary calculations in some circumstances, the line tqlayout + layout calculations may be performed many times even when the data used in these calculations + does not change. To avoid these unnecessary calculations in some circumstances, the line layout cache can store the results of the calculations. The cache is invalidated whenever the - underlying data, such as the contents or styling of the document changes. Caching the tqlayout of + underlying data, such as the contents or styling of the document changes. Caching the layout of the whole document has the most effect, making dynamic line wrap as much as 20 times faster but this requires 7 times the memory required by the document contents plus around 80 bytes per line.

diff --git a/doc/Scintilla/ScintillaHistory.html b/doc/Scintilla/ScintillaHistory.html index a4a74d6..94a7984 100755 --- a/doc/Scintilla/ScintillaHistory.html +++ b/doc/Scintilla/ScintillaHistory.html @@ -578,7 +578,7 @@ Empty ranges can no longer be dragged.
  • - Crash fixed when calls made that use tqlayout inside the painted notification. + Crash fixed when calls made that use layout inside the painted notification.
  • Bug fixed where Scintilla created pixmap buffers that were too large leading @@ -595,8 +595,8 @@ SciTE HTML exporter no longer honours monospaced font setting.
  • - Line tqlayout cache in page mode caches the line of the caret. An assertion is - now used to ensure that the tqlayout reentrancy problem that caused this + Line layout cache in page mode caches the line of the caret. An assertion is + now used to ensure that the layout reentrancy problem that caused this is easier to find.
  • @@ -1285,7 +1285,7 @@ Bug fixed where SCI_LINEENDWRAP would move too far when line ends are visible.
  • - Bugs fixed where calltips with tqunicode or other non-ASCII text would display + Bugs fixed where calltips with unicode or other non-ASCII text would display incorrectly.
  • @@ -1533,7 +1533,7 @@ Bug in SciTE on Windows fixed where clipboard commands stopped working.
  • - Crashing bugs in display fixed in line tqlayout cache. + Crashing bugs in display fixed in line layout cache.
  • Crashing bug may be fixed on AMD64 processor on GTK+. @@ -2954,7 +2954,7 @@ Released on 15 March 2002.
  • - Line tqlayout cache implemented to improve performance by maintaining + Line layout cache implemented to improve performance by maintaining the positioning of characters on lines. Can be set to cache nothing, the line with the caret, the visible page or the whole document.
  • @@ -4592,7 +4592,7 @@ Tool bar.
  • - tqStatus bar now on Windows as well as GTK+. + Status bar now on Windows as well as GTK+.
  • Input fields in Find and Replace dialogs now have history on both Windows and @@ -4795,7 +4795,7 @@ Caret policy determines how closely caret is tracked by visible area.
  • - New marker tqshapes: arrow pointing down, plus and minus. + New marker shapes: arrow pointing down, plus and minus.
  • Optionally display full path in title rather than just file name. @@ -4879,7 +4879,7 @@ Borland compatible makefile.
  • - tqStatus bar showing caret position in GTK+ version of SciTE. + Status bar showing caret position in GTK+ version of SciTE.
  • Bug fixes to selection drawing when part of selection outside window, mouse release over diff --git a/doc/html/classQextScintilla-members.html b/doc/html/classQextScintilla-members.html index 50240f1..90ed520 100644 --- a/doc/html/classQextScintilla-members.html +++ b/doc/html/classQextScintilla-members.html @@ -98,7 +98,7 @@ focusInEvent(TQFocusEvent *)QextScintillaBase [protected, virtual] focusNextPrevChild(bool)QextScintillaBase [protected, virtual] focusOutEvent(TQFocusEvent *)QextScintillaBase [protected, virtual] - foldAll(bool tqchildren=FALSE)QextScintilla [virtual, slot] + foldAll(bool children=FALSE)QextScintilla [virtual, slot] folding() const QextScintilla [inline] foldLine(int line)QextScintilla [virtual, slot] FoldStyle enum nameQextScintilla @@ -956,7 +956,7 @@ setWrapMode(WrapMode mode)QextScintilla [virtual, slot] setWrapVisualFlags(WrapVisualFlag eflag, WrapVisualFlag sflag=WrapFlagNone, int sindent=0)QextScintilla showUserList(int id, const TQStringList &list)QextScintilla - tqsizeHint() const QextScintillaBase [virtual] + sizeHint() const QextScintillaBase [virtual] SloppyBraceMatch enum valueQextScintilla SmallRectangle enum valueQextScintilla standardCommands() const QextScintilla [inline] diff --git a/doc/html/classQextScintilla.html b/doc/html/classQextScintilla.html index 04c98c8..1bca3d7 100644 --- a/doc/html/classQextScintilla.html +++ b/doc/html/classQextScintilla.html @@ -172,7 +172,7 @@ Inherits QextScintillaBase.
  • virtual void cut ()
  • virtual void ensureCursorVisible ()
  • virtual void ensureLineVisible (int line) -
  • virtual void foldAll (bool tqchildren=FALSE) +
  • virtual void foldAll (bool children=FALSE)
  • virtual void foldLine (int line)
  • virtual void indent (int line)
  • virtual void insert (const TQString &text) @@ -3231,7 +3231,7 @@ Ensures that the line number line is visible.

    - +

    @@ -3239,7 +3239,7 @@ Ensures that the line number line is visible. - + @@ -3248,7 +3248,7 @@ Ensures that the line number line is visible.

    -If any lines are currently folded then they are all unfolded. Otherwise all lines are folded. This has the same effect as clicking in the fold margin with the shift and control keys pressed. If tqchildren is not set (the default) then only the top level fold points are affected, otherwise the state of all fold points are changed. +If any lines are currently folded then they are all unfolded. Otherwise all lines are folded. This has the same effect as clicking in the fold margin with the shift and control keys pressed. If children is not set (the default) then only the top level fold points are affected, otherwise the state of all fold points are changed.

    diff --git a/doc/html/classQextScintillaBase-members.html b/doc/html/classQextScintillaBase-members.html index 2a37d2f..4983d70 100644 --- a/doc/html/classQextScintillaBase-members.html +++ b/doc/html/classQextScintillaBase-members.html @@ -747,7 +747,7 @@

    - + diff --git a/doc/html/classQextScintillaBase.html b/doc/html/classQextScintillaBase.html index 0efb8d3..d6e700d 100644 --- a/doc/html/classQextScintillaBase.html +++ b/doc/html/classQextScintillaBase.html @@ -2306,7 +2306,7 @@ long SendScintilla (unsigned int msg, const TQColor &col) long SendScintilla (unsigned int msg, unsigned long wParam, TQPainter *hdc, const TQRect &rc, long cpMin, long cpMax)
  • long SendScintilla (unsigned int msg, unsigned long wParam, const TQPixmap *lParam) -
  • virtual TQSize tqsizeHint () const +
  • virtual TQSize sizeHint () const
  • TQWidget * viewport () const

    Static Public Member Functions

    @@ -2938,12 +2938,12 @@ Returns a pointer to a QextScin Send the Scintilla message msg with the optional parameters wParam and lParam.

    - +

  • virtual void QextScintilla::foldAll ( bool  tqchildren = FALSE children = FALSE  )  [virtual, slot]
    SendScintilla(unsigned int msg, const TQColor &col) (defined in QextScintillaBase)QextScintillaBase
    SendScintilla(unsigned int msg, unsigned long wParam, TQPainter *hdc, const TQRect &rc, long cpMin, long cpMax) (defined in QextScintillaBase)QextScintillaBase
    SendScintilla(unsigned int msg, unsigned long wParam, const TQPixmap *lParam) (defined in QextScintillaBase)QextScintillaBase [inline]
    tqsizeHint() const QextScintillaBase [virtual]
    sizeHint() const QextScintillaBase [virtual]
    startDrag()QextScintillaBase [protected, virtual]
    STYLE_BRACEBAD enum value (defined in QextScintillaBase)QextScintillaBase
    STYLE_BRACELIGHT enum value (defined in QextScintillaBase)QextScintillaBase
    - + diff --git a/doc/html/classQextScintillaPrinter.html b/doc/html/classQextScintillaPrinter.html index 8ed8223..a53693e 100644 --- a/doc/html/classQextScintillaPrinter.html +++ b/doc/html/classQextScintillaPrinter.html @@ -36,7 +36,7 @@

    Detailed Description

    The QextScintillaPrinter class is a sub-class of the TQt TQPrinter class that is able to print the text of a Scintilla document.

    -The class can be further sub-classed to alter to tqlayout of the text, adding headers and footers for example. +The class can be further sub-classed to alter to layout of the text, adding headers and footers for example.


    Constructor & Destructor Documentation

    diff --git a/doc/html/functions_0x73.html b/doc/html/functions_0x73.html index 9e1937a..1960d09 100644 --- a/doc/html/functions_0x73.html +++ b/doc/html/functions_0x73.html @@ -334,7 +334,7 @@ Here is a list of all documented class members with links to the class documenta : QextScintillaLexerHTML
  • showUserList() : QextScintilla
  • SingleQuotedHereDocument : QextScintillaLexerPerl, QextScintillaLexerBash
  • SingleQuotedString -: QextScintillaLexerSQL, QextScintillaLexerRuby, QextScintillaLexerPython, QextScintillaLexerPerl, QextScintillaLexerCSS, QextScintillaLexerCPP, QextScintillaLexerBash
  • tqsizeHint() +: QextScintillaLexerSQL, QextScintillaLexerRuby, QextScintillaLexerPython, QextScintillaLexerPerl, QextScintillaLexerCSS, QextScintillaLexerCPP, QextScintillaLexerBash
  • sizeHint() : QextScintillaBase
  • SloppyBraceMatch : QextScintilla
  • SmallRectangle : QextScintilla
  • Spaces diff --git a/doc/html/functions_func_0x73.html b/doc/html/functions_func_0x73.html index 77b5034..1190596 100644 --- a/doc/html/functions_func_0x73.html +++ b/doc/html/functions_func_0x73.html @@ -159,7 +159,7 @@ : QextScintilla
  • setWrapMode() : QextScintillaPrinter, QextScintilla
  • setWrapVisualFlags() : QextScintilla
  • showUserList() -: QextScintilla
  • tqsizeHint() +: QextScintilla
  • sizeHint() : QextScintillaBase
  • standardCommands() : QextScintilla
  • startDrag() : QextScintillaBase
  • startRecording() diff --git a/example/application.cpp b/example/application.cpp index fbc03be..bf19fb6 100644 --- a/example/application.cpp +++ b/example/application.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include @@ -185,7 +185,7 @@ void ApplicationWindow::save() TQString text = e->text(); TQFile f( filename ); if ( !f.open( IO_WriteOnly ) ) { - statusBar()->message( TQString("Could not write to %1").tqarg(filename), + statusBar()->message( TQString("Could not write to %1").arg(filename), 2000 ); return; } @@ -198,7 +198,7 @@ void ApplicationWindow::save() setCaption( filename ); - statusBar()->message( TQString( "File %1 saved" ).tqarg( filename ), 2000 ); + statusBar()->message( TQString( "File %1 saved" ).arg( filename ), 2000 ); } diff --git a/include/Platform.h b/include/Platform.h index 3cc849b..33245b9 100755 --- a/include/Platform.h +++ b/include/Platform.h @@ -354,7 +354,7 @@ public: virtual void SetClip(PRectangle rc)=0; virtual void FlushCachedState()=0; - virtual void SetUnicodeMode(bool tqunicodeMode_)=0; + virtual void SetUnicodeMode(bool unicodeMode_)=0; virtual void SetDBCSMode(int codePage)=0; #if defined(PLAT_QT) @@ -412,7 +412,7 @@ public: static ListBox *Allocate(); virtual void SetFont(Font &font)=0; - virtual void Create(Window &parent, int ctrlID, Point location, int lineHeight_, bool tqunicodeMode_)=0; + virtual void Create(Window &parent, int ctrlID, Point location, int lineHeight_, bool unicodeMode_)=0; virtual void SetAverageCharWidth(int width)=0; virtual void SetVisibleRows(int rows)=0; virtual int GetVisibleRows() const=0; diff --git a/include/Scintilla.h b/include/Scintilla.h index 326831d..ffb1ffa 100755 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -696,7 +696,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCN_AUTOCSELECTION 2022 //--Autogenerated -- end of section automatically generated from Scintilla.iface -// These structures are defined to be exactly the same tqshape as the Win32 +// These structures are defined to be exactly the same shape as the Win32 // CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs. // So older code that treats Scintilla as a RichEdit will work. diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 6154ca5..c3e5b56 100755 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -977,7 +977,7 @@ fun void HideLines=2227(int lineStart, int lineEnd) # Is a line visible? get bool GetLineVisible=2228(int line,) -# Show the tqchildren of a header line. +# Show the children of a header line. set void SetFoldExpanded=2229(int line, bool expanded) # Is a header line expanded? @@ -1075,10 +1075,10 @@ val SC_CACHE_CARET=1 val SC_CACHE_PAGE=2 val SC_CACHE_DOCUMENT=3 -# Sets the degree of caching of tqlayout information. +# Sets the degree of caching of layout information. set void SetLayoutCache=2272(int mode,) -# Retrieve the degree of caching of tqlayout information. +# Retrieve the degree of caching of layout information. get int GetLayoutCache=2273(,) # Sets the document width assumed for scrolling. @@ -1407,16 +1407,16 @@ set void SetFocus=2380(bool focus,) get bool GetFocus=2381(,) # Change error status - 0 = OK. -set void SettqStatus=2382(int statusCode,) +set void SetStatus=2382(int statusCode,) # Get error status. -get int GettqStatus=2383(,) +get int GetStatus=2383(,) # Set whether the mouse is captured when its button is pressed. set void SetMouseDownCaptures=2384(bool captures,) # Get whether mouse gets captured. get bool GetMouseDownCaptures=2385(,) -enu tqCursorShape=SC_CURSOR +enu CursorShape=SC_CURSOR val SC_CURSORNORMAL=-1 val SC_CURSORWAIT=4 # Sets the cursor to one of the SC_CURSOR* values. diff --git a/qt/PlatQt.cpp b/qt/PlatQt.cpp index db5e94a..3b563c6 100644 --- a/qt/PlatQt.cpp +++ b/qt/PlatQt.cpp @@ -194,7 +194,7 @@ public: void SetClip(PRectangle rc); void FlushCachedState() {painter -> flush();} - void SetUnicodeMode(bool tqunicodeMode_) {tqunicodeMode = tqunicodeMode_;} + void SetUnicodeMode(bool unicodeMode_) {unicodeMode = unicodeMode_;} void SetDBCSMode(int codePage) {} void DrawXPM(PRectangle rc,const XPM *xpm); @@ -207,7 +207,7 @@ private: static TQColor convertTQColor(const ColourAllocated &col, unsigned alpha = 0xff); - bool tqunicodeMode; + bool unicodeMode; bool mypainter; TQPainter *painter; }; @@ -217,7 +217,7 @@ Surface *Surface::Allocate() return new SurfaceImpl; } -SurfaceImpl::SurfaceImpl() : tqunicodeMode(false), mypainter(false), painter(0) +SurfaceImpl::SurfaceImpl() : unicodeMode(false), mypainter(false), painter(0) { } @@ -448,7 +448,7 @@ void SurfaceImpl::MeasureWidths(Font &font_,const char *s,int len, { totalWidth += fm.width(qs[i]); - int l = (tqunicodeMode ? TQString(qs[i]).utf8().length() : 1); + int l = (unicodeMode ? TQString(qs[i]).utf8().length() : 1); while (l--) positions[ui++] = totalWidth; @@ -533,7 +533,7 @@ bool SurfaceImpl::setFont(Font &font_) // Convert a Scintilla string to a TQt Unicode string. TQString SurfaceImpl::convertText(const char *s,int len) { - if (tqunicodeMode) + if (unicodeMode) return TQString::fromUtf8(s,len); TQString qs; @@ -594,7 +594,7 @@ PRectangle Window::GetPosition() if (w) { - const TQRect &r = w -> tqgeometry(); + const TQRect &r = w -> geometry(); rc.left = r.left(); rc.top = r.top(); @@ -661,7 +661,7 @@ void Window::SetFont(Font &font) void Window::SetCursor(Cursor curs) { - TQt::tqCursorShape qc; + TQt::CursorShape qc; switch (curs) { diff --git a/qt/SciListBox.cpp b/qt/SciListBox.cpp index ef2475b..f873d7c 100644 --- a/qt/SciListBox.cpp +++ b/qt/SciListBox.cpp @@ -98,7 +98,7 @@ void ListBoxX::Create(Window &parent,int,Point,int,bool) void ListBoxX::SetAverageCharWidth(int) { - // We rely on TQListBox::tqsizeHint() for the size of the list box rather + // We rely on TQListBox::sizeHint() for the size of the list box rather // than make calculations based on the average character width and the // number of visible rows. } @@ -121,7 +121,7 @@ PRectangle ListBoxX::GetDesiredRect() if (slb) { - TQSize sh = slb -> tqsizeHint(); + TQSize sh = slb -> sizeHint(); rc.right = sh.width(); rc.bottom = sh.height(); diff --git a/qt/ScintillaQt.cpp b/qt/ScintillaQt.cpp index 322f300..e626d17 100644 --- a/qt/ScintillaQt.cpp +++ b/qt/ScintillaQt.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include @@ -446,7 +446,7 @@ TQString ScintillaTQt::textRange(const SelectionText *text) // Copy the selected text to the clipboard. void ScintillaTQt::CopyToClipboard(const SelectionText &selectedText) { - TQApplication::tqclipboard() -> setText(textRange(&selectedText)); + TQApplication::clipboard() -> setText(textRange(&selectedText)); } @@ -466,7 +466,7 @@ void ScintillaTQt::Copy() // Implement paste. void ScintillaTQt::Paste() { - TQString str = TQApplication::tqclipboard() -> text(); + TQString str = TQApplication::clipboard() -> text(); if (str.isEmpty()) return; @@ -607,7 +607,7 @@ void ScintillaTQt::ClaimSelection() if (isSel) { - TQClipboard *cb = TQApplication::tqclipboard(); + TQClipboard *cb = TQApplication::clipboard(); // If we support X11 style selection then make it available // now. @@ -683,7 +683,7 @@ void ScintillaTQt::paintEvent(TQPaintEvent *pe) delete sw; // If the painting area was insufficient to cover the new style - // or brace highlight positions then tqrepaint the whole thing. + // or brace highlight positions then repaint the whole thing. if (paintState == paintAbandoned) PWindow(wMain) -> update(); } diff --git a/qt/qextscintilla.cpp b/qt/qextscintilla.cpp index 4b33791..d586e21 100644 --- a/qt/qextscintilla.cpp +++ b/qt/qextscintilla.cpp @@ -1036,7 +1036,7 @@ void QextScintilla::foldClick(int lineClick,int bstate) { if (bstate & ShiftButton) { - // Ensure all tqchildren are visible. + // Ensure all children are visible. SendScintilla(SCI_SETFOLDEXPANDED,lineClick,1); foldExpand(lineClick,TRUE,TRUE,100,levelClick); } @@ -1044,13 +1044,13 @@ void QextScintilla::foldClick(int lineClick,int bstate) { if (SendScintilla(SCI_GETFOLDEXPANDED,lineClick)) { - // Contract this line and all its tqchildren. + // Contract this line and all its children. SendScintilla(SCI_SETFOLDEXPANDED,lineClick,0L); foldExpand(lineClick,FALSE,TRUE,0,levelClick); } else { - // Expand this line and all its tqchildren. + // Expand this line and all its children. SendScintilla(SCI_SETFOLDEXPANDED,lineClick,1); foldExpand(lineClick,TRUE,TRUE,100,levelClick); } @@ -1119,7 +1119,7 @@ void QextScintilla::foldExpand(int &line,bool doExpand,bool force, // Fully expand (if there is any line currently folded) all text. Otherwise, // fold all text. This is mostly taken from SciTE. -void QextScintilla::foldAll(bool tqchildren) +void QextScintilla::foldAll(bool children) { recolor(); @@ -1142,7 +1142,7 @@ void QextScintilla::foldAll(bool tqchildren) if (!(level & SC_FOLDLEVELHEADERFLAG)) continue; - if (tqchildren || + if (children || (SC_FOLDLEVELBASE == (level & SC_FOLDLEVELNUMBERMASK))) { if (expanding) diff --git a/qt/qextscintilla.h b/qt/qextscintilla.h index c34c88d..331ebad 100644 --- a/qt/qextscintilla.h +++ b/qt/qextscintilla.h @@ -920,10 +920,10 @@ public slots: //! If any lines are currently folded then they are all unfolded. //! Otherwise all lines are folded. This has the same effect as //! clicking in the fold margin with the shift and control keys - //! pressed. If \a tqchildren is not set (the default) then only the top + //! pressed. If \a children is not set (the default) then only the top //! level fold points are affected, otherwise the state of all fold //! points are changed. - virtual void foldAll(bool tqchildren = FALSE); + virtual void foldAll(bool children = FALSE); //! If the line \a line is folded then it is unfolded. Otherwise it is //! folded. This has the same effect as clicking in the fold margin. diff --git a/qt/qextscintillabase.cpp b/qt/qextscintillabase.cpp index aa58b9e..4279094 100644 --- a/qt/qextscintillabase.cpp +++ b/qt/qextscintillabase.cpp @@ -21,9 +21,9 @@ #include -#include +#include #include -#include +#include #include #include #include @@ -70,22 +70,22 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f) { sci = 0; - TQGridLayout *tqlayout = new TQGridLayout(this,2,2); + TQGridLayout *layout = new TQGridLayout(this,2,2); txtarea = new TQWidget(this,0,WRepaintNoErase|WResizeNoErase); - txtarea -> tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding)); + txtarea -> setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding)); txtarea -> setMouseTracking(TRUE); txtarea -> setAcceptDrops(TRUE); txtarea -> setFocusPolicy(WheelFocus); txtarea -> setFocusProxy(this); - tqlayout -> addWidget(txtarea,0,0); + layout -> addWidget(txtarea,0,0); vsb = new TQScrollBar(Qt::Vertical,this); - tqlayout -> addWidget(vsb,0,1); + layout -> addWidget(vsb,0,1); connect(vsb,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(handleVSb(int))); hsb = new TQScrollBar(Qt::Horizontal,this); - tqlayout -> addWidget(hsb,1,0); + layout -> addWidget(hsb,1,0); connect(hsb,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(handleHSb(int))); txtarea -> installEventFilter(this); @@ -104,7 +104,7 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f) lexersLinked = TRUE; } - TQClipboard *cb = TQApplication::tqclipboard(); + TQClipboard *cb = TQApplication::clipboard(); if (cb -> supportsSelection()) connect(cb,TQT_SIGNAL(selectionChanged()),TQT_SLOT(handleSelection())); @@ -329,7 +329,7 @@ void QextScintillaBase::mousePress(TQMouseEvent *me) case MidButton: { - TQClipboard *cb = TQApplication::tqclipboard(); + TQClipboard *cb = TQApplication::clipboard(); if (cb -> supportsSelection()) { @@ -488,7 +488,7 @@ void QextScintillaBase::keyPressEvent(TQKeyEvent *ke) // key. if (ke -> text().length() == 1) { - if ((key = ke -> text()[0].tqunicode()) >= 0x80) + if ((key = ke -> text()[0].unicode()) >= 0x80) key = 0; } else @@ -563,12 +563,12 @@ void QextScintillaBase::handleHSb(int val) // Return the current prefered size. -TQSize QextScintillaBase::tqsizeHint() const +TQSize QextScintillaBase::sizeHint() const { int height = sci -> vs.lineHeight * sci -> pdoc -> LinesTotal(); if (sci -> horizontalScrollBarVisible) - height += hsb -> tqsizeHint().height(); + height += hsb -> sizeHint().height(); return TQSize(sci -> scrollWidth,height); } @@ -577,6 +577,6 @@ TQSize QextScintillaBase::tqsizeHint() const // Handle the selection changing. void QextScintillaBase::handleSelection() { - if (!TQApplication::tqclipboard() -> ownsSelection()) + if (!TQApplication::clipboard() -> ownsSelection()) sci -> UnclaimSelection(); } diff --git a/qt/qextscintillabase.h b/qt/qextscintillabase.h index d4e73ba..1e5a792 100644 --- a/qt/qextscintillabase.h +++ b/qt/qextscintillabase.h @@ -2243,7 +2243,7 @@ public: } //! Returns the recommended size of the widget. - virtual TQSize tqsizeHint() const; + virtual TQSize sizeHint() const; //! Returns the viewport widget. This is the widget that actually //! contains the text. diff --git a/qt/qextscintillalexer.cpp b/qt/qextscintillalexer.cpp index 327206f..20a1c22 100644 --- a/qt/qextscintillalexer.cpp +++ b/qt/qextscintillalexer.cpp @@ -339,12 +339,12 @@ bool QextScintillaLexer::writeSettings(TQSettings &qs,const char *prefix) const f = font(i); fdesc += f.family(); - fdesc += fmt.tqarg(f.pointSize()); + fdesc += fmt.arg(f.pointSize()); // The casts are for Borland. - fdesc += fmt.tqarg((int)f.bold()); - fdesc += fmt.tqarg((int)f.italic()); - fdesc += fmt.tqarg((int)f.underline()); + fdesc += fmt.arg((int)f.bold()); + fdesc += fmt.arg((int)f.italic()); + fdesc += fmt.arg((int)f.underline()); if (!qs.writeEntry(key + "font",fdesc,',')) rc = FALSE; diff --git a/qt/qextscintillalexercss.cpp b/qt/qextscintillalexercss.cpp index ff15caa..6983202 100644 --- a/qt/qextscintillalexercss.cpp +++ b/qt/qextscintillalexercss.cpp @@ -199,16 +199,16 @@ const char *QextScintillaLexerCSS::keywords(int set) const "border-top-style border-right-style " "border-bottom-style border-left-style border-style " "top right bottom left position z-index direction " - "tqunicode-bidi min-width max-width min-height " + "unicode-bidi min-width max-width min-height " "max-height overflow clip visibility content quotes " "counter-reset counter-increment marker-offset size " "marks page-break-before page-break-after " "page-break-inside page orphans widows font-stretch " - "font-size-adjust tqunicode-range units-per-em src " + "font-size-adjust unicode-range units-per-em src " "panose-1 stemv stemh slope cap-height x-height " "ascent descent widths bbox definition-src baseline " "centerline mathline topline text-shadow " - "caption-side table-tqlayout border-collapse " + "caption-side table-layout border-collapse " "border-spacing empty-cells speak-header cursor " "outline outline-width outline-style outline-color " "volume speak pause-before pause-after pause " diff --git a/qt/qextscintillalexerhtml.cpp b/qt/qextscintillalexerhtml.cpp index 5013ff9..2da5f01 100644 --- a/qt/qextscintillalexerhtml.cpp +++ b/qt/qextscintillalexerhtml.cpp @@ -474,7 +474,7 @@ const char *QextScintillaLexerHTML::keywords(int set) const "onselect onsubmit onunload " "profile prompt " "readonly rel rev rows rowspan rules " - "scheme scope selected tqshape size span src standby " + "scheme scope selected shape size span src standby " "start style summary " "tabindex target text title topmargin type " "usemap " diff --git a/qt/qextscintillalexeridl.cpp b/qt/qextscintillalexeridl.cpp index ceba60c..51c8eb7 100644 --- a/qt/qextscintillalexeridl.cpp +++ b/qt/qextscintillalexeridl.cpp @@ -84,7 +84,7 @@ const char *QextScintillaLexerIDL::keywords(int set) const "object odl oleautomation optimize optional out out_of_line " "pipe pointer_default pragma properties propget propput " "propputref ptr public range readonly ref represent_as " - "requestedit restricted retval tqshape short signed size_is " + "requestedit restricted retval shape short signed size_is " "small source strict_context_handle string struct switch " "switch_is switch_type transmit_as typedef uidefault union " "unique unsigned user_marshal usesgetlasterror uuid v1_enum " diff --git a/qt/qextscintillalexertex.cpp b/qt/qextscintillalexertex.cpp index aa21e80..912b2a2 100644 --- a/qt/qextscintillalexertex.cpp +++ b/qt/qextscintillalexertex.cpp @@ -137,7 +137,7 @@ const char *QextScintillaLexerTeX::keywords(int set) const "overwithdelims pagedepth pagefilllstretch " "pagefillstretch pagefilstretch pagegoal pageshrink " "pagestretch pagetotal par parfillskip parindent " - "partqshape parskip patterns pausing penalty " + "parshape parskip patterns pausing penalty " "postdisplaypenalty predisplaypenalty predisplaysize " "pretolerance prevdepth prevgraf radical raise read " "relax relpenalty right righthyphenmin rightskip " diff --git a/qt/qextscintillaprinter.h b/qt/qextscintillaprinter.h index 3478b91..a938c1a 100644 --- a/qt/qextscintillaprinter.h +++ b/qt/qextscintillaprinter.h @@ -38,7 +38,7 @@ class QextScintillaBase; //! \brief The QextScintillaPrinter class is a sub-class of the TQt TQPrinter //! class that is able to print the text of a Scintilla document. //! -//! The class can be further sub-classed to alter to tqlayout of the text, adding +//! The class can be further sub-classed to alter to layout of the text, adding //! headers and footers for example. class TQEXTSCINTILLA_EXPORT QextScintillaPrinter : public TQPrinter { diff --git a/src/AutoComplete.cpp b/src/AutoComplete.cpp index daa5fbb..753adca 100755 --- a/src/AutoComplete.cpp +++ b/src/AutoComplete.cpp @@ -45,11 +45,11 @@ bool AutoComplete::Active() { void AutoComplete::Start(Window &parent, int ctrlID, int position, Point location, int startLen_, - int lineHeight, bool tqunicodeMode) { + int lineHeight, bool unicodeMode) { if (active) { Cancel(); } - lb->Create(parent, ctrlID, location, lineHeight, tqunicodeMode); + lb->Create(parent, ctrlID, location, lineHeight, unicodeMode); lb->Clear(); active = true; startLen = startLen_; diff --git a/src/AutoComplete.h b/src/AutoComplete.h index 8fd84c8..10577ca 100755 --- a/src/AutoComplete.h +++ b/src/AutoComplete.h @@ -36,7 +36,7 @@ public: /// Display the auto completion list positioned to be near a character position void Start(Window &parent, int ctrlID, int position, Point location, - int startLen_, int lineHeight, bool tqunicodeMode); + int startLen_, int lineHeight, bool unicodeMode); /// The stop chars are characters which, when typed, cause the auto completion list to disappear void SetStopChars(const char *stopChars_); diff --git a/src/CallTip.cpp b/src/CallTip.cpp index 2de8eae..f4bc5f8 100755 --- a/src/CallTip.cpp +++ b/src/CallTip.cpp @@ -214,7 +214,7 @@ void CallTip::PaintCT(Surface *surfaceWindow) { surfaceWindow->FillRectangle(rcClient, colourBG.allocated); - offsetMain = insetX; // initial tqalignment assuming no arrows + offsetMain = insetX; // initial alignment assuming no arrows PaintContents(surfaceWindow, true); // Draw a raised border around the edges of the window diff --git a/src/CallTip.h b/src/CallTip.h index 1fd38c3..9848a10 100755 --- a/src/CallTip.h +++ b/src/CallTip.h @@ -18,7 +18,7 @@ class CallTip { PRectangle rectUp; // rectangle of last up angle in the tip PRectangle rectDown; // rectangle of last down arrow in the tip int lineHeight; // vertical line spacing - int offsetMain; // The tqalignment point of the call tip + int offsetMain; // The alignment point of the call tip int tabSize; // Tab size in pixels, <=0 no TAB expand bool useStyleCallTip; // if true, STYLE_CALLTIP should be used diff --git a/src/Editor.cpp b/src/Editor.cpp index 1abb78a..055f5dc 100755 --- a/src/Editor.cpp +++ b/src/Editor.cpp @@ -346,7 +346,7 @@ Editor::Editor() { hasFocus = false; hideSelection = false; inOverstrike = false; - errortqStatus = 0; + errorStatus = 0; mouseDownCaptures = true; bufferedDraw = true; @@ -1949,7 +1949,7 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou // See if chars, styles, indicators, are all the same bool allSame = true; const int styleMask = pdoc->stylingBitsMask; - // Check base line tqlayout + // Check base line layout char styleByte = 0; int numCharsInLine = 0; while (numCharsInLine < lineLength) { @@ -1997,7 +1997,7 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou char styleByte = 0; int styleMask = pdoc->stylingBitsMask; ll->styleBitsSet = 0; - // Fill base line tqlayout + // Fill base line layout for (int charInDoc = posLineStart; charInDoc < posLineEnd; charInDoc++) { char chDoc = pdoc->CharAt(charInDoc); styleByte = pdoc->StyleAt(charInDoc); @@ -2815,7 +2815,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { startLineToWrap = -1; if (WrapLines(false, startLineToWrap)) { // The wrapping process has changed the height of some lines so - // abandon this paint for a complete tqrepaint. + // abandon this paint for a complete repaint. if (AbandonPaint()) { return; } @@ -2892,7 +2892,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { //ElapsedTime et; if (lineDoc != lineDocPrevious) { ll.Set(0); - // For rectangular selection this accesses the tqlayout cache so should be after tqlayout returned. + // For rectangular selection this accesses the layout cache so should be after layout returned. lineIterator.SetAt(lineDoc); ll.Set(RetrieveLineLayout(lineDoc)); LayoutLine(lineDoc, surface, vs, ll, wrapWidth); @@ -2930,7 +2930,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { DrawLine(surface, vs, lineDoc, visibleLine, xStart, rcLine, ll, subLine); //durPaint += et.Duration(true); - // Restore the previous styles for the brace highlights in case tqlayout is in cache. + // Restore the previous styles for the brace highlights in case layout is in cache. ll->RestoreBracesHighlight(rangeLine, braces); bool expanded = cs.GetExpanded(lineDoc); @@ -3372,7 +3372,7 @@ void Editor::AddCharUTF(char *s, unsigned int len, bool treatAsDBCS) { // characters representing themselves. } else { // Unroll 1 to 3 byte UTF-8 sequences. See reference data at: - // http://www.cl.cam.ac.uk/~mgk25/tqunicode.html + // http://www.cl.cam.ac.uk/~mgk25/unicode.html // http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt if (byte < 0xE0) { int byte2 = static_cast(s[1]); @@ -3809,7 +3809,7 @@ void Editor::NotifyModified(Document*, DocModification mh, void *) { } //Platform::DebugPrintf("** %x Doc Changed\n", this); - // TODO: could tqinvalidate from mh.startModification to end of screen + // TODO: could invalidate from mh.startModification to end of screen //InvalidateRange(mh.position, mh.position + mh.length); if (paintState == notPainting && !CanDeferToLastStep(mh)) { Redraw(); @@ -5217,7 +5217,7 @@ void Editor::SetHotSpotRange(Point *pt) { int hsStart_ = pdoc->ExtendStyleRange(pos, -1, vs.hotspotSingleLine); int hsEnd_ = pdoc->ExtendStyleRange(pos, 1, vs.hotspotSingleLine); - // Only tqinvalidate the range if the hotspot range has changed... + // Only invalidate the range if the hotspot range has changed... if (hsStart_ != hsStart || hsEnd_ != hsEnd) { if (hsStart != -1) { InvalidateRange(hsStart, hsEnd); @@ -7210,11 +7210,11 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return hasFocus; case SCI_SETSTATUS: - errortqStatus = wParam; + errorStatus = wParam; break; case SCI_GETSTATUS: - return errortqStatus; + return errorStatus; case SCI_SETMOUSEDOWNCAPTURES: mouseDownCaptures = wParam != 0; diff --git a/src/Editor.h b/src/Editor.h index 7dca342..2ce166d 100755 --- a/src/Editor.h +++ b/src/Editor.h @@ -204,7 +204,7 @@ protected: // ScintillaBase subclass needs access to much of Editor bool hasFocus; bool hideSelection; bool inOverstrike; - int errortqStatus; + int errorStatus; bool mouseDownCaptures; /** In bufferedDraw mode, graphics operations are drawn to a pixmap and then copied to diff --git a/src/LineMarker.cpp b/src/LineMarker.cpp index 2af78b5..6ded13c 100755 --- a/src/LineMarker.cpp +++ b/src/LineMarker.cpp @@ -68,7 +68,7 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac pxpm->Draw(surface, rcWhole); return; } - // Restrict most tqshapes a bit + // Restrict most shapes a bit PRectangle rc = rcWhole; rc.top++; rc.bottom--;
  • virtual TQSize QextScintillaBase::tqsizeHint virtual TQSize QextScintillaBase::sizeHint (  )