@@ -1443,7 +1443,7 @@ procedure TMainForm.ShowStatusMsg(Msg: String=''; PanelNr: Integer=6);
14431443 Msg := _(SIdle);
14441444 if Msg <> StatusBar.Panels[PanelNr].Text then begin
14451445 StatusBar.Panels[PanelNr].Text := Msg;
1446- if ( PanelNr = 6) and (not IsWine) then begin
1446+ if PanelNr = 6 then begin
14471447 // Immediately repaint this special panel, as it holds critical update messages,
14481448 // while avoiding StatusBar.Repaint which refreshes all panels
14491449 // Caution: statusbar.Repaint crashes with QT here. See issue #2270
@@ -1460,9 +1460,6 @@ procedure TMainForm.StatusBarClick(Sender: TObject);
14601460 PanelRect: TRect;
14611461begin
14621462 // Handle click events on specific statusbar panels
1463- // Prevent SendMessage on Wine
1464- if IsWine then
1465- Exit;
14661463 Click := StatusBar.ScreenToClient(Mouse.CursorPos);
14671464 for i:=0 to StatusBar.Panels.Count-1 do begin
14681465 PanelRect := StatusBar.ClientRect;
@@ -2203,11 +2200,11 @@ procedure TMainForm.AfterFormCreate;
22032200 LastStatsCall := StrToDateTimeDef(AppSettings.ReadString(asLastUsageStatisticCall), DateTimeNever);
22042201 if DaysBetween(Now, LastStatsCall) >= 30 then begin
22052202 // Report used app version, bits.
2206- // Also report environment: WinDesktop, WinUWP or Wine
2203+ // Also report environment = OS + "Desktop" (+ "Portable")
22072204
2208- if IsWine then Environment := 'Wine'
2209- else if AppSettings.PortableMode then Environment := 'WinDesktopPortable'
2210- else Environment := GetOS + 'Desktop ';
2205+ Environment := GetOS + 'Desktop';
2206+ if AppSettings.PortableMode then
2207+ Environment := Environment + 'Portable ';
22112208
22122209 StatsCall := THttpDownload.Create(Self);
22132210 StatsURL := APPDOMAIN + 'savestats.php?c=' + IntToStr(FAppVerRevision) +
@@ -3851,34 +3848,27 @@ procedure TMainForm.actDropObjectsExecute(Sender: TObject);
38513848procedure TMainForm.actLaunchCommandlineExecute(Sender: TObject);
38523849var
38533850 path, p, log, cmd: String;
3854- sep: Char;
38553851 Conn: TDBConnection;
38563852begin
38573853 // Launch mysql.exe
38583854 Conn := ActiveConnection;
38593855 if not Conn.Parameters.IsAnyMySQL then
38603856 ErrorDialog(_('Command line only works on MySQL connections.'))
38613857 else begin
3862- if IsWine then begin
3863- cmd := 'mysql';
3864- sep := '/';
3865- end else begin
3866- cmd := 'mysql.exe';
3867- sep := '\';
3868- end;
3858+ cmd := 'mysql' {$IFDEF WINDOWS}+ '.exe'{$ENDIF};
38693859 path := AppSettings.ReadString(asMySQLBinaries);
3870- if (Length(path)>0) and ( path[Length(path)] <> sep) then
3871- path := path + sep ;
3860+ if not path.IsEmpty then
3861+ path := IncludeTrailingPathDelimiter( path) ;
38723862 if not FileExists(path+cmd, true) then begin
38733863 ErrorDialog(f_('You need to tell %s where your MySQL binaries reside, in %s > %s > %s.', [APPNAME, _('Tools'), _('Preferences'), _('General')])+
38743864 CRLF+CRLF+f_('Current setting is: "%s"', [path]));
38753865 end else begin
38763866 p := '';
3877- if IsWine then begin
3878- p := ' -e '+path+cmd;
3879- path := '';
3880- cmd := '$TERM';
3881- end;
3867+ {$IFNDEF WINDOWS}
3868+ p := ' -e '+path+cmd;
3869+ path := '';
3870+ cmd := '$TERM';
3871+ {$ENDIF}
38823872
38833873 log := path + cmd + p + Conn.Parameters.GetExternalCliArguments(Conn, nbTrue);
38843874 LogSQL(f_('Launching command line: %s', [log]), lcInfo);
@@ -5812,10 +5802,10 @@ procedure TMainForm.AnyGridAdvancedHeaderDraw(Sender: TVTHeader;
58125802 if ColSortDirection = sdAscending then begin
58135803 // This is a bit wrong - but the "Ubuntu" font doesn't have the triangle character,
58145804 // which seems available on many Windows fonts only. See #1090
5815- SortText := IfThen(IsWine, '↑', '▲') ;
5805+ SortText := {$IFDEF LINUX} '↑' {$ELSE} '▲' {$ENDIF} ;
58165806 NumCharTop := 0;
58175807 end else begin
5818- SortText := IfThen(IsWine, '↓', '▼') ;
5808+ SortText := {$IFDEF LINUX} '↓' {$ELSE} '▼' {$ENDIF} ;
58195809 NumCharTop := 5;
58205810 end;
58215811 // Paint arrow:
@@ -8846,10 +8836,6 @@ procedure TMainForm.AnyGridGetHint(Sender: TBaseVirtualTree; Node:
88468836 Conn: TDBConnection;
88478837 ValIsNumber: Boolean;
88488838begin
8849- // Disable tooltips on Wine, as they prevent users from clicking + editing clipped cells
8850- if IsWine then
8851- Exit;
8852-
88538839 Tree := TVirtualStringTree(Sender);
88548840
88558841 if Tree = QueryTabs.ActiveHelpersTree then begin
@@ -14799,7 +14785,7 @@ procedure TMainForm.EnableProgress(MaxValue: Integer);
1479914785begin
1480014786 // Initialize progres bar and button
1480114787 SetProgressState(pbsNormal);
14802- ProgressBarStatus.Visible := True and (not IsWine) ;
14788+ ProgressBarStatus.Visible := True;
1480314789 SetProgressPosition(0);
1480414790 ProgressBarStatus.Max := MaxValue;
1480514791end;
0 commit comments