Recent

Author Topic: $ifdef LCLCarbon -> $ifdef Darwin  (Read 235 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2002
    • UVviewsoft
$ifdef LCLCarbon -> $ifdef Darwin
« on: October 28, 2022, 09:29:09 pm »
I found lot of places of "LCLCarbon" define usage, in the Lazarus dir. Consider to check them all, and replace to "darwin" where it's possible.

From CudaText FindInFiles 4 plugin:
Quote
+Search "LCLCarbon". Report with [styles].
   <lcl/lclproc.pas>: #1
      <  659>:     {$IFDEF LCLcarbon}
   <components/codetools/definetemplates.pas>: #1
      < 6687>:   // define LCLwidgetset, e.g. LCLcarbon, LCLgtk, LCLgtk2
   <components/mouseandkeyinput/mouseandkeyinput.pas>: #1
      <   29>:     {$IFDEF LCLcarbon}
   <components/virtualtreeview/laz.vtconfig.inc>: #1
      <   47>: {$if defined(CPU64) or defined(LCLCarbon)}
   <components/virtualtreeview/laz.virtualtrees.pas>: #4
      <  122>:   {$if defined(LCLGtk2) or defined(LCLCarbon) or defined(LCLQt)}
      <  248>:   {$if defined(LCLCarbon) or defined(LCLCocoa)}
      <16828>:         {$if DEFINED(LCLQt) OR DEFINED(LCLCarbon)}
      <18139>:         {$if DEFINED(LCLQt) OR DEFINED(LCLCarbon)}
   <components/tachart/tafonts.pas>: #1
      <   55>:  {$IFDEF LCLCarbon}
   <components/tachart/tadrawerfpcanvas.pas>: #1
      <  419>:   {$IFDEF LCLCarbon}
   <components/tachart/demo/nogui/tadrawerfpcanvas.pas>: #1
      <  419>:   {$IFDEF LCLCarbon}
   <components/printers/osprinters.pas>: #2
      <   37>:     {$IFDEF LCLCarbon}
      <   74>:     {$IFDEF LCLCarbon}
   <components/printers/printersdlgs.pp>: #1
      <  140>:     {$IFDEF LCLCarbon}
   <components/onlinepackagemanager/opkman_repositories.pas>: #1
      <  120>:     {$IFDEF LCLCarbon}
   <components/onlinepackagemanager/opkman_visualtree.pas>: #5
      <  224>:        {$IFDEF LCLCarbon}
      <  234>:        {$IFDEF LCLCarbon}
      <  245>:        {$IFDEF LCLCarbon}
      <  255>:        {$IFDEF LCLCarbon}
      <  276>:      {$IFDEF LCLCarbon}
   <components/synedit/syneditmousecmds.pp>: #1
      <  370>:   SYNEDIT_LINK_MODIFIER = {$IFDEF LCLcarbon}ssMeta{$ELSE}ssCtrl{$ENDIF};
   <components/synedit/synedit.pp>: #1
      < 1697>:   {$IFDEF LCLcarbon}
   <components/opengl/openglcontext.pas>: #1
      <   55>: {$IFDEF LCLCarbon}
   <components/ideintf/objectinspector.pp>: #3
      < 1696>:     {$IFDEF LCLCarbon}
      < 3330>:   {$IFDEF LCLCarbon}
      < 3364>:   {$IFDEF LCLCarbon}
   <components/ideintf/propedits.pp>: #2
      <   46>:   {$IFDEF LCLCarbon}
      < 3188>:     {$IFDEF LCLCarbon}
   <ide/keymapping.pp>: #1
      < 3525>:     {$IFDEF LCLcarbon}
   <ide/ideguicmdline.pas>: #1
      <   78>: {$IFDEF LCLCarbon}
   <ide/patheditordlg.pas>: #1
      <  268>:   {$IFDEF LCLCarbon}
   <ide/componentpalette.pas>: #1
      <  341>:       {$IFDEF LCLCarbon}
   <ide/initialsetupdlgs.pas>: #1
      < 1448>:       {$IFNDEF LCLCarbon}
   <ide/frames/modematrixctrl.pas>: #1
      < 1627>:     {$IFDEF LCLcarbon}

zeljko

  • Hero Member
  • *****
  • Posts: 1388
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: $ifdef LCLCarbon -> $ifdef Darwin
« Reply #1 on: November 07, 2022, 05:38:59 pm »
Better use LCLCocoa since Qt5 also works under mac, but sometimes does not need OS specific ifdefs.

 

TinyPortal © 2005-2018