Skip to content

Commit 5b7f2bd

Browse files
committed
Consequently use full qualified unit name in uses.
1 parent 71491db commit 5b7f2bd

File tree

7 files changed

+69
-70
lines changed

7 files changed

+69
-70
lines changed

Lib/UIRibbon.Register.pas

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
unit UIRibbon.Register;
1+
unit UIRibbon.Register;
22

33
interface
44

55
uses
6-
DesignIntf, DesignEditors;
6+
DesignIntf,
7+
DesignEditors;
78

89
type
910
// Adds ability to start RibbonDesigner to right click menu of TUIRibbon control in IDE desginer

Lib/UIRibbon.pas

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
unit UIRibbon;
1+
unit UIRibbon;
22

33
{ Windows Ribbon Framework for Delphi
44
===================================
@@ -21,14 +21,14 @@
2121
interface
2222

2323
uses
24-
Messages,
25-
Windows,
26-
Graphics,
27-
Generics.Collections,
28-
Controls,
29-
Classes,
30-
ImgList,
31-
ActnList,
24+
WinApi.Messages,
25+
WinApi.Windows,
26+
System.Generics.Collections,
27+
System.Classes,
28+
Vcl.Graphics,
29+
Vcl.Controls,
30+
Vcl.ImgList,
31+
Vcl.ActnList,
3232
UIRibbonApi,
3333
UIRibbonCommands;
3434

@@ -572,21 +572,21 @@ TUIRibbon = class(TWinControl, IUIApplication)
572572
implementation
573573

574574
uses
575-
SysUtils,
576-
Actions,
577-
ActiveX,
578-
ComObj,
579-
Dialogs,
580-
PropSys,
581-
Forms,
582-
Menus,
583-
GraphUtil,
584-
Math,
585-
UITypes,
586-
UIRibbonActions,
587-
UIRibbonUtils,
575+
System.SysUtils,
576+
System.Actions,
588577
System.Win.Registry,
589-
Vcl.ActnMan;
578+
System.Win.ComObj,
579+
System.Math,
580+
System.UITypes,
581+
WinApi.ActiveX,
582+
WinApi.PropSys,
583+
Vcl.Dialogs,
584+
Vcl.Forms,
585+
Vcl.Menus,
586+
Vcl.GraphUtil,
587+
Vcl.ActnMan,
588+
UIRibbonActions,
589+
UIRibbonUtils;
590590

591591
type
592592
TUICommandAccess = class(TUICommand);
@@ -1025,7 +1025,7 @@ function TUIRibbon.HandleShortCut(const pMessage: TWMKey): Boolean;
10251025
lShortCut: TShortCut;
10261026
begin
10271027
lShiftState := KeyDataToShiftState(pMessage.KeyData);
1028-
lShortCut := Menus.ShortCut(pMessage.CharCode, lShiftState);
1028+
lShortCut := ShortCut(pMessage.CharCode, lShiftState);
10291029
Result := (lShortCut <> scNone) and Self.HandleShortCut(lShortCut);
10301030
end;
10311031

@@ -1223,7 +1223,7 @@ procedure TUIRibbon.Load();
12231223
// http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/b38da1e9-34a0-440a-bdf0-bb293940dd0c/win8-ribbon-colors
12241224
lForm.Color := RGB(254,254,254)
12251225
else
1226-
lForm.Color := GraphUtil.GetHighLightColor(Self.BackgroundColor);// TColorHelper.IncreaseRgbValues(FRibbon.BackgroundColor, 17, 12, 10)
1226+
lForm.Color := Vcl.GraphUtil.GetHighLightColor(Self.BackgroundColor);// TColorHelper.IncreaseRgbValues(FRibbon.BackgroundColor, 17, 12, 10)
12271227
end;//if clBtnFace
12281228
end;
12291229
end;

Lib/UIRibbonActions.pas

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ interface
44

55
uses
66
System.Classes,
7+
System.Generics.Collections,
8+
Winapi.ActiveX,
79
Vcl.Menus,
8-
ActnList,
9-
ActnMan,
10+
Vcl.ActnList,
11+
Vcl.ActnMan,
1012
UIRibbonCommands,
11-
System.Generics.Collections,
12-
Winapi.ActiveX,
1313
UIRibbonApi;
1414

1515
type
@@ -252,13 +252,11 @@ TRecentItemAction = class(TRibbonAction<TUICommandRecentItems>)
252252
implementation
253253

254254
uses
255-
Controls,
256-
UIRibbon,
257-
{$if CompilerVersion >= 24}
258255
System.Actions,
259-
{$endif}
260256
System.SysUtils,
261-
System.Math;
257+
System.Math,
258+
Vcl.Controls,
259+
UIRibbon;
262260

263261
const
264262
cNoSelection = -1;

Lib/UIRibbonApi.pas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
interface
1919

2020
uses
21-
Windows,
22-
ActiveX;
21+
WinApi.Windows,
22+
WinApi.ActiveX;
2323

2424
{$HPPEMIT '#ifdef _WIN64'}
2525
{$HPPEMIT '#pragma link "UIRibbonPackage.a"'}
@@ -655,9 +655,9 @@ function UIPropertyToIUnknownArrayAlloc(const Key: TUIPropertyKey; const PropVar
655655
implementation
656656

657657
uses
658-
ComObj,
659-
ShLwApi,
660-
SysUtils,
658+
System.Win.ComObj,
659+
WinApi.ShLwApi,
660+
System.SysUtils,
661661
WinApiEx;
662662

663663

Lib/UIRibbonCommands.pas

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
interface
44

55
uses
6-
Generics.Collections,
7-
Windows,
8-
Messages,
9-
Graphics,
10-
Classes,
11-
ActiveX,
12-
Rtti,
13-
ComCtrls,
14-
RichEdit,
15-
PropSys,
16-
ActnList,
17-
UIRibbonApi,
18-
PNGImage,
6+
System.Generics.Collections,
7+
System.Rtti,
8+
System.Classes,
9+
WinApi.Windows,
10+
WinApi.Messages,
11+
WinApi.ActiveX,
12+
WinApi.RichEdit,
13+
WinApi.PropSys,
14+
Vcl.Graphics,
15+
Vcl.ComCtrls,
16+
Vcl.ActnList,
17+
Vcl.Imaging.PNGImage,
1918
Vcl.ImgList,
19+
UIRibbonApi,
2020
System.UITypes;
2121

2222
const
@@ -1301,12 +1301,12 @@ function GetProperty(const Key: TUIPropertyKey): TUIProperty;
13011301
implementation
13021302

13031303
uses
1304-
Menus,
1305-
Forms,
1306-
SysUtils,
1307-
CommCtrl,
1304+
System.SysUtils,
1305+
Vcl.Menus,
1306+
Vcl.Forms,
1307+
Vcl.Controls,
1308+
WinApi.CommCtrl,
13081309
WinApiEx,
1309-
Controls,
13101310
UIRibbon,
13111311
UIRibbonActions;
13121312

@@ -2176,12 +2176,12 @@ procedure TUICommand.SetPropertyValue(const Key: TUIPropertyKey;
21762176

21772177
procedure TUICommand.SetShortCut(const Shift: TShiftState; const Key: Word);
21782178
begin
2179-
FShortCut := Menus.ShortCut(Key, Shift);
2179+
FShortCut := Vcl.Menus.ShortCut(Key, Shift);
21802180
end;
21812181

21822182
procedure TUICommand.SetShortCut(const Shift: TShiftState; const Key: Char);
21832183
begin
2184-
FShortCut := Menus.ShortCut(Ord(Key), Shift);
2184+
FShortCut := Vcl.Menus.ShortCut(Ord(Key), Shift);
21852185
end;
21862186

21872187
procedure TUICommand.SetSmallImage(const Value: TUIImage);
@@ -4268,7 +4268,7 @@ function TUIImage.GetBitmap: HBITMAP;
42684268

42694269
procedure TUIImage.GetBitmapProperties;
42704270
var
4271-
Props: Windows.TBitmap;
4271+
Props: WinApi.Windows.TBitmap;
42724272
begin
42734273
if (GetObject(FBitmap, SizeOf(Props), @Props) <> 0) then
42744274
begin

Lib/UIRibbonUtils.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
interface
44

55
uses
6-
Graphics,
7-
GraphUtil,
6+
Vcl.Graphics,
7+
Vcl.GraphUtil,
88
UIRibbonApi;
99

1010
function HsbToColor(const Hsb: TUIHsbColor): TColor; overload;
@@ -26,8 +26,8 @@ function CreateStringFromResource(const ResourceId: Integer): String;
2626
implementation
2727

2828
uses
29-
Windows,
30-
ActiveX;
29+
WinApi.Windows,
30+
WinApi.ActiveX;
3131

3232
function HsbToColor(const Hsb: TUIHsbColor): TColor;
3333
var

Lib/WinApiEx.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ interface
77
{$WARN SYMBOL_PLATFORM OFF}
88

99
uses
10-
Windows,
11-
ActiveX,
12-
ShlObj;
10+
WinApi.Windows,
11+
WinApi.ActiveX,
12+
WinApi.ShlObj;
1313

1414
type
1515
PSHORT = ^SHORT;
@@ -217,7 +217,7 @@ function VarUI2FromDec(const Input: TDecimal; out Output: UInt16): HRESULT; stdc
217217
implementation
218218

219219
uses
220-
ShLwApi;
220+
WinApi.ShLwApi;
221221

222222
{$REGION 'PropIdl.h'}
223223
const

0 commit comments

Comments
 (0)