Compared files  

Left
C:\SDK\wxWidgets-2.6.2\contrib\src\stc\stc.cpp
Last modified2005-05-31 22:46:46.000 +0200
Size95.4 Kb (3286 Lines)
EncodingLatin 1 - ANSI (CP1252) default
Right
C:\SDK\wxWidgets-2.6.3\contrib\src\stc\stc.cpp
Last modified2006-03-16 13:07:00.001 +0100
Size99.1 Kb (3399 Lines)
EncodingLatin 1 - ANSI (CP1252) default


   Comparison Statistics  

Detailed Statistics

All Changes
 BlocksLines
Unchanged133277
Inserted8113
Deleted00
Ignored00
Changed418



   Comparison Details  

9 skipped lines
10U10U// Author:      Robin Dunn
11U11U//
12U12U// Created:     13-Jan-2000
13C// RCS-ID:      $Id: stc.cpp,v 1.97 2005/05/26 18:07:43 RD Exp $ 13C// RCS-ID:      $Id: stc.cpp,v 1.97.2.1 2006/03/12 06:03:51 RD Exp $
14U14U// Copyright:   (c) 2000 by Total Control Software
15U15U// Licence:     wxWindows license
16U16U/////////////////////////////////////////////////////////////////////////////
17U17U 
18U18U#include <ctype.h>
19U19U 
20C#include <wx/wx.h> 20C#include "wx/wx.h"
21C#include <wx/tokenzr.h> 21C#include "wx/tokenzr.h"
22C#include <wx/mstream.h> 22C#include "wx/mstream.h"
23C#include <wx/image.h> 23C#include "wx/image.h"
24C#include <wx/file.h> 24C#include "wx/file.h"
25U25U 
26U26U#include "wx/stc/stc.h"
27U27U#include "ScintillaWX.h"
68 skipped lines
96U96UDEFINE_EVENT_TYPE( wxEVT_STC_HOTSPOT_CLICK )
97U97UDEFINE_EVENT_TYPE( wxEVT_STC_HOTSPOT_DCLICK )
98U98UDEFINE_EVENT_TYPE( wxEVT_STC_CALLTIP_CLICK )
  99ADEFINE_EVENT_TYPE( wxEVT_STC_AUTOCOMP_SELECTION )    
99U100U 
100U101U 
101U102U 
427 skipped lines
529U530U         
530U531U}
531U532U 
  533A// Add a set of markers to a line.
  534Avoid wxStyledTextCtrl::MarkerAddSet(int line, int set) {
  535A    SendMsg(2466, line, set);
  536A}
  537A 
532U538U// Set a margin to be either numeric or symbolic.
533U539Uvoid wxStyledTextCtrl::SetMarginType(int margin, int marginType) {
534U540U    SendMsg(2240, margin, marginType);
391 skipped lines
926U932U    SendMsg(2286, separatorCharacter, 0);
927U933U}
928U934U 
  935A// Set the maximum width, in characters, of auto-completion and user lists.
  936A// Set to 0 to autosize to fit longest item, which is the default.
  937Avoid wxStyledTextCtrl::AutoCompSetMaxWidth(int characterCount) {
  938A    SendMsg(2208, characterCount, 0);
  939A}
12 skipped lines
  952A// Set the maximum height, in rows, of auto-completion and user lists.
  953Aint wxStyledTextCtrl::AutoCompGetMaxHeight() {
  954A    return SendMsg(2211, 0, 0);
  955A}
  956A 
929U957U// Set the number of spaces used for one level of indentation.
930U958Uvoid wxStyledTextCtrl::SetIndent(int indentSize) {
931U959U    SendMsg(2122, indentSize, 0);
495 skipped lines
1427U1455U    return SendMsg(2221, lineDisplay, 0);
1428U1456U}
1429U1457U 
  1458A// The number of display lines needed to wrap a document line
  1459Aint wxStyledTextCtrl::WrapCount(int line) {
  1460A    return SendMsg(2235, line, 0);
  1461A}
  1462A 
1430U1463U// Set the fold level of a line.
1431U1464U// This encodes an integer level along with flags indicating whether the
1432U1465U// line is a header and whether it is effectively white space.
178 skipped lines
1611U1644U 
1612U1645U// Retrieve whether the maximum scroll position has the last
1613U1646U// line at the bottom of the view.
1614Cint wxStyledTextCtrl::GetEndAtLastLine() { 1647Cbool wxStyledTextCtrl::GetEndAtLastLine() {
1615C    return SendMsg(2278, 0, 0); 1648C    return SendMsg(2278, 0, 0) != 0;
1616U1649U}
1617U1650U 
1618U1651U// Retrieve the height of a particular line of text in pixels.
793 skipped lines
2412U2445U    SendMsg(2446, bytes, 0);
2413U2446U}
2414U2447U 
2415C// Find the position of a column on a line taking into account tabs and  2448C// Find the position of a column on a line taking into account tabs and
2416U2449U// multi-byte characters. If beyond end of line, return line end position.
2417U2450Uint wxStyledTextCtrl::FindColumn(int line, int column) {
2418U2451U    return SendMsg(2456, line, column);
2419U2452U}
2420U2453U 
  2454A// Can the caret preferred x position only be changed by explicit movement commands?
  2455Abool wxStyledTextCtrl::GetCaretSticky() {
  2456A    return SendMsg(2457, 0, 0) != 0;
  2457A}
  2458A 
20 skipped lines
  2479A// Duplicate the selection. If selection empty duplicate the line containing the caret.
  2480Avoid wxStyledTextCtrl::SelectionDuplicate() {
  2481A    SendMsg(2469, 0, 0);
  2482A}
  2483A 
2421U2484U// Start notifying the container of all key presses and commands.
2422U2485Uvoid wxStyledTextCtrl::StartRecord() {
2423U2486U    SendMsg(3001, 0, 0);
34 skipped lines
2458U2521U    SendMsg(4006, 0, (long)(const char*)wx2stc(language));
2459U2522U}
2460U2523U 
  2524A// Retrieve a 'property' value previously set with SetProperty.
  2525AwxString wxStyledTextCtrl::GetProperty(const wxString& key) {
  2526A         int len = SendMsg(SCI_GETPROPERTY, (long)(const char*)wx2stc(key), (long)NULL);
  2527A         if (!len) return wxEmptyString;
  2528A 
28 skipped lines
  2557A// Retrieve the number of bits the current lexer needs for styling.
  2558Aint wxStyledTextCtrl::GetStyleBitsNeeded() {
  2559A    return SendMsg(4011, 0, 0);
  2560A}
  2561A 
2461U2562U// END of generated section
2462U2563U//----------------------------------------------------------------------
2463U2564U 
170 skipped lines
2634U2735U        case wxSTC_CHARSET_THAI:
2635U2736U            encoding = wxFONTENCODING_ISO8859_11;
2636U2737U            break;
  2738A 
  2739A        case wxSTC_CHARSET_CYRILLIC:
  2740A            encoding = wxFONTENCODING_ISO8859_5;
  2741A            break;
  2742A                 
  2743A        case wxSTC_CHARSET_8859_15:
  2744A            encoding = wxFONTENCODING_ISO8859_15;;
  2745A            break;
2637U2746U    }
2638U2747U 
2639U2748U    // We just have Scintilla track the wxFontEncoding for us.  It gets used
559 skipped lines
3199U3308U        evt.SetEventType(wxEVT_STC_CALLTIP_CLICK);
3200U3309U        break;
3201U3310U 
  3311A    case SCN_AUTOCSELECTION:
  3312A        evt.SetEventType(wxEVT_STC_AUTOCOMP_SELECTION);
  3313A        break;
  3314A         
3202U3315U    default:
3203U3316U        return;
3204U3317U    }
82 skipped lines

   Text comparison Options  

Match character case: yes.
Match line endings: no.
Match spaces

At start of lines: yes,
In middle of lines: yes,
At end of lines: yes.
Blank lines as empty lines: no.
Activate comparison algorithm
At word level: yes,
At character level: no.


   Legend  

UExample of unchanged line
CExample of modified line
AExample of added line
RExample of removed line
IExample of ignored line
Modified text
Added text
Removed text

This report has been generated by Ellié Computing Merge on 2006-09-07 16:23:46.001 +0200.
© 2005-2006 Ellié Computing http://www.elliecomputing.com. All rights reserved.