Changeset 39


Ignore:
Timestamp:
Jan 2, 2007, 8:18:36 PM (19 years ago)
Author:
RBRi
Message:
  • ACLProfile calls
Location:
trunk/Components
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Components/ACLLanguageUnit.pas

    r15 r39  
    132132  StdCtrls, Buttons, ExtCtrls, TabCtrls, Dialogs,
    133133  Coolbar2, Multicolumnlistbox,
    134   ACLUtility, ACLStringUtility, ACLProfile, ACLFileUtility;
     134  ACLUtility, ACLStringUtility,
     135//  ACLProfile,
     136  ACLFileUtility;
    135137
    136138var
     
    738740  MinorLanguage: string;
    739741begin
    740   ProfileEvent( 'LoadDefaultLanguage' );
     742//  ProfileEvent( 'LoadDefaultLanguage' );
    741743
    742744  LanguageVar := GetEnv( 'LANG' );
    743745
    744   ProfileEvent( '  LANG='
    745                 + LanguageVar );
     746//  ProfileEvent( '  LANG=' + LanguageVar );
    746747  if LanguageVar = '' then
    747748    LanguageVar := 'EN_US';
     
    750751  MinorLanguage := ExtractNextValue( LanguageVar, '_' );
    751752
    752   ProfileEvent( '  MajorLanguage='
    753                 + MajorLanguage );
    754   ProfileEvent( '  MinorLanguage='
    755                 + MinorLanguage );
     753//  ProfileEvent( '  MajorLanguage=' + MajorLanguage );
     754//  ProfileEvent( '  MinorLanguage=' + MinorLanguage );
    756755
    757756  // note there might be some other stuff on the end of LANG
     
    760759  if MinorLanguage <> '' then
    761760  begin
    762     ProfileEvent( '  Trying Major_Minor' );
     761//    ProfileEvent( '  Trying Major_Minor' );
    763762    if LoadAutoLanguage( AppName,
    764763                         MajorLanguage
     
    767766    begin
    768767      // found a specifc language
    769       ProfileEvent( '    Found' );
     768//      ProfileEvent( '    Found' );
    770769      exit;
    771770    end;
    772771  end;
    773772
    774   ProfileEvent( '  Trying Major only' );
     773//  ProfileEvent( '  Trying Major only' );
    775774  // try generic language?
    776775  if LoadAutoLanguage( AppName, MajorLanguage ) then
    777776  begin
    778     ProfileEvent( '    Found' );
     777//    ProfileEvent( '    Found' );
    779778  end
    780779  else
    781780  begin
    782     ProfileEvent( '    No language found, using default' );
     781//    ProfileEvent( '    No language found, using default' );
    783782
    784783    // load defaults
  • trunk/Components/RichTextStyleUnit.pas

    r15 r39  
    144144uses
    145145  SysUtils,
    146   ACLStringUtility, ACLProfile;
     146  ACLStringUtility;
     147//  ACLProfile;
    147148
    148149Procedure ApplyStyle( const Style: TTextDrawStyle;
     
    525526Procedure TRichTextSettings.SetHeading1Font( NewFont: TFont );
    526527begin
    527   ProfileEvent( 'TRichTextSettings.SetHeading1Font' );
     528//  ProfileEvent( 'TRichTextSettings.SetHeading1Font' );
    528529  AssignFont( FHeading1Font, NewFont );
    529530
    530   if FHeading1FOnt = nil then
    531     ProfileEvent( '  Set to nil' );
     531//  if FHeading1FOnt = nil then
     532//    ProfileEvent( '  Set to nil' );
    532533
    533534end;
  • trunk/Components/RichTextView.PAS

    r15 r39  
    429429Uses
    430430  SysUtils, PMWin, BseDos, Dos, ClipBrd, Printers,
    431   ACLStringUtility, ACLString, ACLProfile,
     431  ACLStringUtility, ACLString,
    432432  ControlScrolling, ControlsUtility,
    433433  RichTextDocumentUnit, RichTextDisplayUnit;
     
    724724  Msg.Result :=
    725725    CopySelectionToBuffer( PChar( Msg.Param1 ),
    726                            Msg.Param2 ); 
     726                           Msg.Param2 );
    727727end;
    728728
Note: See TracChangeset for help on using the changeset viewer.