Skip to content

Commit 89419fb

Browse files
committed
Minor AppMan improvements, Flex bundle added to config...
1 parent f5cbdc5 commit 89419fb

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

External/Tools/AppMan/MainForm.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

External/Tools/AppMan/MainForm.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public partial class MainForm : Form, IMessageFilter
3939
private Boolean haveUpdates;
4040
private Boolean checkOnly;
4141

42+
/**
43+
* Static link label margin constant
44+
*/
45+
public static Int32 LINK_MARGIN = 4;
46+
4247
/**
4348
* Static type and state constants
4449
*/
@@ -694,6 +699,7 @@ private void PopulateListView()
694699
if (this.appGroups.Count > 1) this.listView.ShowGroups = true;
695700
else this.listView.ShowGroups = false;
696701
this.UpdateEntryStates();
702+
this.UpdateLinkPositions();
697703
this.GenerateBundleLinks();
698704
this.listView.EndUpdate();
699705
}
@@ -703,6 +709,18 @@ private void PopulateListView()
703709
}
704710
}
705711

712+
/// <summary>
713+
/// Update the link label positions for example if the font is different size.
714+
/// </summary>
715+
private void UpdateLinkPositions()
716+
{
717+
this.allLinkLabel.Location = new Point(this.selectLabel.Bounds.Right + LINK_MARGIN, this.allLinkLabel.Location.Y);
718+
this.noneLinkLabel.Location = new Point(this.allLinkLabel.Bounds.Right + LINK_MARGIN, this.allLinkLabel.Location.Y);
719+
this.newLinkLabel.Location = new Point(this.noneLinkLabel.Bounds.Right + LINK_MARGIN, this.allLinkLabel.Location.Y);
720+
this.instLinkLabel.Location = new Point(this.newLinkLabel.Bounds.Right + LINK_MARGIN, this.allLinkLabel.Location.Y);
721+
this.updateLinkLabel.Location = new Point(this.instLinkLabel.Bounds.Right + LINK_MARGIN, this.allLinkLabel.Location.Y);
722+
}
723+
706724
/// <summary>
707725
/// Generates the bundle selection links.
708726
/// </summary>
@@ -719,7 +737,7 @@ private void GenerateBundleLinks()
719737
LinkLabel linkLabel = new LinkLabel();
720738
linkLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
721739
linkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(this.BundleLinkLabelLinkClicked);
722-
linkLabel.Location = new Point(prevLink.Bounds.Right + 5, prevLink.Location.Y);
740+
linkLabel.Location = new Point(prevLink.Bounds.Right + LINK_MARGIN, this.allLinkLabel.Location.Y);
723741
linkLabel.Links[0].LinkData = bundle;
724742
linkLabel.LinkColor = Color.Green;
725743
linkLabel.AutoSize = true;

appman.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
<Build>1</Build>
7070
<Desc>Apache Flex SDK and dependencies installer</Desc>
7171
<Group>Compilers</Group>
72+
<Bundles>
73+
<Bundle>Flex</Bundle>
74+
</Bundles>
7275
<Type>Executable</Type>
7376
<Info>http://flex.apache.org/index.html</Info>
7477
<Urls>
@@ -114,6 +117,7 @@
114117
<Bundle>Haxe</Bundle>
115118
<Bundle>AS3</Bundle>
116119
<Bundle>AIR</Bundle>
120+
<Bundle>Flex</Bundle>
117121
</Bundles>
118122
<Info>http://www.adobe.com/support/flashplayer/downloads.html</Info>
119123
<Urls>

0 commit comments

Comments
 (0)