Changeset 423 for trunk/Packages/CevoComponents
- Timestamp:
- Apr 25, 2022, 6:01:01 PM (3 years ago)
- Location:
- trunk/Packages/CevoComponents
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/DrawDlg.pas
r413 r423 1 1 unit DrawDlg; 2 2 3 {$mode delphi}{$H+}4 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, Forms, LCLIntf, LCLType, {$IFDEF LINUX}LMessages,{$ENDIF}6 Classes, SysUtils, Forms, LCLIntf, LCLType, {$IFDEF UNIX}LMessages,{$ENDIF} 9 7 Messages, Graphics, Controls, ButtonBase, ButtonA, ButtonB, Area, ScreenTools 10 8 {$IFDEF LCLGTK2}, Gtk2Globals{$ENDIF}; … … 76 74 MoveActive := False; 77 75 AddHandlerOnVisibleChanged(VisibleChangedHandler); 78 {$IFDEF LINUX}76 {$IFDEF UNIX} 79 77 OnDeactivate := DoDeactivate; 80 78 {$ENDIF} … … 131 129 MousePos1: TPoint; 132 130 MousePos2: TPoint; 133 {$IFDEF LINUX}131 {$IFDEF UNIX} 134 132 MousePosNew: TPoint; 135 133 NewFormPos: TPoint; … … 139 137 inherited; 140 138 MousePos2 := Mouse.CursorPos; 141 {$IFDEF LINUX}139 {$IFDEF UNIX} 142 140 // Only if client is not doing own mouse move handling 143 141 if not Assigned(OnMouseDown) or not Assigned(OnMouseMove) or not Assigned(OnMouseUp) then begin -
trunk/Packages/CevoComponents/ScreenTools.pas
r417 r423 1647 1647 I: Integer; 1648 1648 begin 1649 {$IFDEF LINUX}1649 {$IFDEF UNIX} 1650 1650 // Wait and process messages little bit to avoid crash or force repaint under Gtk2 1651 1651 for I := 0 to 10 do begin -
trunk/Packages/CevoComponents/Sound.pas
r383 r423 7 7 StringTables, Directories, LCLType 8 8 {$IFDEF WINDOWS}, MMSystem, Windows{$ENDIF} 9 {$IFDEF LINUX}, Process, AsyncProcess2{$ENDIF};9 {$IFDEF UNIX}, Process, AsyncProcess2{$ENDIF}; 10 10 11 11 type … … 29 29 TSound = class 30 30 private 31 {$IFDEF LINUX}31 {$IFDEF UNIX} 32 32 PlayCommand: string; 33 33 SoundPlayerAsyncProcess: TAsyncProcess; … … 63 63 {$R *.lfm} 64 64 65 {$IFDEF LINUX}65 {$IFDEF UNIX} 66 66 resourcestring 67 67 SUnableToPlay = 'PlayStyle=%s: Unable to play %s Message:%s'; … … 88 88 end 89 89 {$ENDIF} 90 {$IFDEF LINUX}90 {$IFDEF UNIX} 91 91 PlayCommand := GetNonWindowsPlayCommand; 92 92 FDeviceID := 1; … … 100 100 mciSendCommand(FDeviceID, MCI_CLOSE, MCI_WAIT, 0); 101 101 {$ENDIF} 102 {$IFDEF LINUX}102 {$IFDEF UNIX} 103 103 FreeAndNil(SoundPlayerSyncProcess); 104 104 FreeAndNil(SoundPlayerAsyncProcess); … … 162 162 PlayParm: TMCI_Play_Parms; 163 163 {$ENDIF} 164 {$IFDEF LINUX}164 {$IFDEF UNIX} 165 165 var 166 166 L: TStringList; … … 175 175 end 176 176 {$ENDIF} 177 {$IFDEF LINUX}177 {$IFDEF UNIX} 178 178 // How to play in Linux? Use generic Linux commands 179 179 // Use asyncprocess to play sound as SND_ASYNC … … 232 232 mciSendCommand(FDeviceID, MCI_STOP, 0, 0); 233 233 {$ENDIF} 234 {$IFDEF LINUX}234 {$IFDEF UNIX} 235 235 if SoundPlayerSyncProcess <> nil then SoundPlayerSyncProcess.Terminate(1); 236 236 if SoundPlayerAsyncProcess <> nil then SoundPlayerAsyncProcess.Terminate(1);
Note:
See TracChangeset
for help on using the changeset viewer.