ide: images: anchor editor. Designed by FTurtle, issue #31730

git-svn-id: trunk@54799 -
This commit is contained in:
ondrej 2017-05-02 16:39:06 +00:00
parent e33bff91df
commit 89b56c31b3
41 changed files with 131 additions and 18 deletions

34
.gitattributes vendored
View File

@ -6711,13 +6711,47 @@ images/designer/add_submenu_below.png -text svneol=unset#image/png
images/designer/add_submenu_right.png -text svneol=unset#image/png
images/designer/align.png -text
images/designer/anchor_bottom.png -text svneol=unset#image/png
images/designer/anchor_bottom_bottom.png -text
images/designer/anchor_bottom_bottom_150.png -text
images/designer/anchor_bottom_bottom_200.png -text
images/designer/anchor_bottom_center.png -text
images/designer/anchor_bottom_center_150.png -text
images/designer/anchor_bottom_center_200.png -text
images/designer/anchor_bottom_top.png -text
images/designer/anchor_bottom_top_150.png -text
images/designer/anchor_bottom_top_200.png -text
images/designer/anchor_center_horizontal.png -text svneol=unset#image/png
images/designer/anchor_center_vertical.png -text svneol=unset#image/png
images/designer/anchor_left.png -text svneol=unset#image/png
images/designer/anchor_left_center.png -text
images/designer/anchor_left_center_150.png -text
images/designer/anchor_left_center_200.png -text
images/designer/anchor_left_left.png -text
images/designer/anchor_left_left_150.png -text
images/designer/anchor_left_left_200.png -text
images/designer/anchor_left_right.png -text svneol=unset#image/png
images/designer/anchor_left_right_150.png -text
images/designer/anchor_left_right_200.png -text
images/designer/anchor_right.png -text svneol=unset#image/png
images/designer/anchor_right_center.png -text
images/designer/anchor_right_center_150.png -text
images/designer/anchor_right_center_200.png -text
images/designer/anchor_right_left.png -text
images/designer/anchor_right_left_150.png -text
images/designer/anchor_right_left_200.png -text
images/designer/anchor_right_right.png -text
images/designer/anchor_right_right_150.png -text
images/designer/anchor_right_right_200.png -text
images/designer/anchor_top.png -text svneol=unset#image/png
images/designer/anchor_top_bottom.png -text svneol=unset#image/png
images/designer/anchor_top_bottom_150.png -text
images/designer/anchor_top_bottom_200.png -text
images/designer/anchor_top_center.png -text
images/designer/anchor_top_center_150.png -text
images/designer/anchor_top_center_200.png -text
images/designer/anchor_top_top.png -text
images/designer/anchor_top_top_150.png -text
images/designer/anchor_top_top_200.png -text
images/designer/mirror_horizontal.png -text
images/designer/mirror_vertical.png -text
images/designer/scale.png -text

View File

@ -465,19 +465,31 @@ begin
end;
procedure TAnchorDesigner.LoadGlyphs;
function GetSuffix: String;
begin
if Screen.PixelsPerInch < 144 then Exit('');
if Screen.PixelsPerInch < 192 then Exit('_150');
Exit('_200');
end;
var
Suffix: String;
begin
LeftRefLeftSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_left');
LeftRefCenterSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_center_horizontal');
LeftRefRightSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_left_right');
RightRefLeftSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_left_right');
RightRefCenterSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_center_horizontal');
RightRefRightSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_right');
TopRefTopSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_top');
TopRefCenterSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_center_vertical');
TopRefBottomSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_top_bottom');
BottomRefTopSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_top_bottom');
BottomRefCenterSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_center_vertical');
BottomRefBottomSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_bottom');
Suffix:=GetSuffix;
LeftRefLeftSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_left_left'+Suffix);
LeftRefCenterSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_left_center'+Suffix);
LeftRefRightSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_left_right'+Suffix);
RightRefLeftSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_right_left'+Suffix);
RightRefCenterSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_right_center'+Suffix);
RightRefRightSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_right_right'+Suffix);
TopRefTopSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_top_top'+Suffix);
TopRefCenterSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_top_center'+Suffix);
TopRefBottomSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_top_bottom'+Suffix);
BottomRefTopSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_bottom_top'+Suffix);
BottomRefCenterSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_bottom_center'+Suffix);
BottomRefBottomSpeedButton.LoadGlyphFromResourceName(HInstance, 'anchor_bottom_bottom'+Suffix);
end;
procedure TAnchorDesigner.CreateSideControls;

View File

@ -11,6 +11,45 @@ Creative Commons. Author and source mentioned.
Following images were created by FTurtle:
designer directory:
anchor_bottom_bottom.png
anchor_bottom_bottom_150.png
anchor_bottom_bottom_200.png
anchor_bottom_center.png
anchor_bottom_center_150.png
anchor_bottom_center_200.png
anchor_bottom_top.png
anchor_bottom_top_150.png
anchor_bottom_top_200.png
anchor_left_center.png
anchor_left_center_150.png
anchor_left_center_200.png
anchor_left_left.png
anchor_left_left_150.png
anchor_left_left_200.png
anchor_left_right.png
anchor_left_right_150.png
anchor_left_right_200.png
anchor_right_center.png
anchor_right_center_150.png
anchor_right_center_200.png
anchor_right_left.png
anchor_right_left_150.png
anchor_right_left_200.png
anchor_right_right.png
anchor_right_right_150.png
anchor_right_right_200.png
anchor_top_bottom.png
anchor_top_bottom_150.png
anchor_top_bottom_200.png
anchor_top_center.png
anchor_top_center_150.png
anchor_top_center_200.png
anchor_top_top.png
anchor_top_top_150.png
anchor_top_top_200.png
menu directory:
menu_clear_all_bookmarks.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 B

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

View File

@ -218,14 +218,42 @@ designer/add_sep_above.png
designer/add_sep_below.png
designer/add_submenu_right.png
designer/add_submenu_below.png
designer/anchor_bottom.png
designer/anchor_center_horizontal.png
designer/anchor_center_vertical.png
designer/anchor_left.png
designer/anchor_bottom_bottom.png
designer/anchor_bottom_bottom_150.png
designer/anchor_bottom_bottom_200.png
designer/anchor_bottom_center.png
designer/anchor_bottom_center_150.png
designer/anchor_bottom_center_200.png
designer/anchor_bottom_top.png
designer/anchor_bottom_top_150.png
designer/anchor_bottom_top_200.png
designer/anchor_left_center.png
designer/anchor_left_center_150.png
designer/anchor_left_center_200.png
designer/anchor_left_left.png
designer/anchor_left_left_150.png
designer/anchor_left_left_200.png
designer/anchor_left_right.png
designer/anchor_right.png
designer/anchor_top.png
designer/anchor_left_right_150.png
designer/anchor_left_right_200.png
designer/anchor_right_center.png
designer/anchor_right_center_150.png
designer/anchor_right_center_200.png
designer/anchor_right_left.png
designer/anchor_right_left_150.png
designer/anchor_right_left_200.png
designer/anchor_right_right.png
designer/anchor_right_right_150.png
designer/anchor_right_right_200.png
designer/anchor_top_bottom.png
designer/anchor_top_bottom_150.png
designer/anchor_top_bottom_200.png
designer/anchor_top_center.png
designer/anchor_top_center_150.png
designer/anchor_top_center_200.png
designer/anchor_top_top.png
designer/anchor_top_top_150.png
designer/anchor_top_top_200.png
designer/align.png
designer/mirror_horizontal.png
designer/mirror_vertical.png