[Patchanim-commit] SF.net SVN: patchanim: [168] trunk/patchanim/src/com/mebigfatguy/patchanim
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-02-12 04:24:14
|
Revision: 168 http://patchanim.svn.sourceforge.net/patchanim/?rev=168&view=rev Author: dbrosius Date: 2008-02-11 20:24:08 -0800 (Mon, 11 Feb 2008) Log Message: ----------- add some tooltips Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchControlPanel.java trunk/patchanim/src/com/mebigfatguy/patchanim/main/PatchAnimBundle.java trunk/patchanim/src/com/mebigfatguy/patchanim/resources.properties Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchControlPanel.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchControlPanel.java 2008-02-11 04:16:56 UTC (rev 167) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchControlPanel.java 2008-02-12 04:24:08 UTC (rev 168) @@ -77,6 +77,8 @@ widthLabel = new JLabel(rb.getString(PatchAnimBundle.WIDTH)); widthField = new JTextField(new IntegerDocument(), "", 8); widthLabel.setLabelFor(widthField); + widthField.setToolTipText(rb.getString(PatchAnimBundle.WIDTH_TT)); + JPanel p = Utils.createFormPanel(widthLabel, widthField); Utils.limitPanelHeight(p, widthField); @@ -87,6 +89,7 @@ heightLabel = new JLabel(rb.getString(PatchAnimBundle.HEIGHT)); heightField = new JTextField(new IntegerDocument(), "", 8); heightLabel.setLabelFor(heightField); + heightField.setToolTipText(rb.getString(PatchAnimBundle.HEIGHT_TT)); JPanel p = Utils.createFormPanel(heightLabel, heightField); Utils.limitPanelHeight(p, heightField); @@ -99,6 +102,7 @@ AnimationType.Cycle, AnimationType.Wave }); animationLabel.setLabelFor(animationCB); + animationCB.setToolTipText(rb.getString(PatchAnimBundle.ANIMATION_TT)); JPanel p = Utils.createFormPanel(animationLabel, animationCB); Utils.limitPanelHeight(p, animationCB); @@ -109,6 +113,7 @@ outOfBoundsLabel = new JLabel(rb.getString(PatchAnimBundle.OUTOFBOUNDSCOLOR)); outOfBoundsColorCB = new JComboBox(new Object[] { OutOfBoundsColor.Clip, OutOfBoundsColor.Roll }); + outOfBoundsColorCB.setToolTipText(rb.getString(PatchAnimBundle.OUTOFBOUNDSCOLOR_TT)); outOfBoundsLabel.setLabelFor(outOfBoundsColorCB); JPanel p = Utils.createFormPanel(outOfBoundsLabel, outOfBoundsColorCB); Utils.limitPanelHeight(p, outOfBoundsColorCB); @@ -119,6 +124,7 @@ tweenFramesLabel = new JLabel(rb.getString(PatchAnimBundle.TWEENFRAMES)); tweenFramesField = new JTextField(new IntegerDocument(), "", 8); tweenFramesLabel.setLabelFor(tweenFramesField); + tweenFramesField.setToolTipText(rb.getString(PatchAnimBundle.TWEENFRAMES_TT)); JPanel p = Utils.createFormPanel(tweenFramesLabel, tweenFramesField); Utils.limitPanelHeight(p, tweenFramesField); add(p); @@ -126,6 +132,7 @@ add(Box.createVerticalStrut(5)); testButton = new JButton(rb.getString(PatchAnimBundle.TEST)); + testButton.setToolTipText(rb.getString(PatchAnimBundle.TEST_TT)); add(testButton); Utils.sizeUniformly(new JComponent[] { widthLabel, heightLabel, animationLabel, outOfBoundsLabel, tweenFramesLabel }, Utils.Sizing.Both); Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/main/PatchAnimBundle.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/main/PatchAnimBundle.java 2008-02-11 04:16:56 UTC (rev 167) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/main/PatchAnimBundle.java 2008-02-12 04:24:08 UTC (rev 168) @@ -47,16 +47,22 @@ public static final String CONTROLS = "patchanim.control"; public static final String PATCHES = "patchanim.patches"; public static final String WIDTH = "patchanim.width"; + public static final String WIDTH_TT = "patchanim.tooltip.width"; public static final String HEIGHT = "patchanim.height"; + public static final String HEIGHT_TT = "patchanim.tooltip.height"; public static final String ANIMATION = "patchanim.animation"; + public static final String ANIMATION_TT = "patchanim.tooltip.animation"; public static final String NONE = "patchanim.none"; public static final String CYCLE = "patchanim.cycle"; public static final String WAVE = "patchanim.wave"; public static final String OUTOFBOUNDSCOLOR = "patchanim.outofboundscolor"; + public static final String OUTOFBOUNDSCOLOR_TT = "patchanim.tooltip.outofboundscolor"; public static final String CLIP = "patchanim.clip"; public static final String ROLL = "patchanim.roll"; public static final String TWEENFRAMES = "patchanim.tween"; + public static final String TWEENFRAMES_TT = "patchanim.tooltip.tween"; public static final String TEST = "patchanim.test"; + public static final String TEST_TT = "patchanim.tooltip.test"; public static final String STOP = "patchanim.stop"; public static final String DEFAULTPATCHNAME = "patchanim.defaultpatchname"; public static final String ENTERNEWPATCHNAME = "patchanim.enternewpatchname"; Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/resources.properties =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/resources.properties 2008-02-11 04:16:56 UTC (rev 167) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/resources.properties 2008-02-12 04:24:08 UTC (rev 168) @@ -40,16 +40,22 @@ patchanim.control = Controls patchanim.patches = Patches patchanim.width = Width +patchanim.tooltip.width = The width of the exported animation patchanim.height = Height +patchanim.tooltip.height = The height of the exported animation patchanim.animation = Animation Repeat +patchanim.tooltip.animation = The type of repetition that the animation uses patchanim.none = None patchanim.cycle = Cycle patchanim.wave = Wave patchanim.outofboundscolor = Out Of Bounds Color +patchanim.tooltip.outofboundscolor = How colors that are out of the range of 0 - 255 are handled patchanim.clip = Clip patchanim.roll = Roll patchanim.tween = In-between frames +patchanim.tooltip.tween = How many frames are generated as transitions from one patch to the next patchanim.test = Test +patchanim.tooltip.test = Test the animation using the export settings patchanim.stop = Stop patchanim.defaultpatchname = Patch Coordinates patchanim.enternewpatchname = Rename Patch to This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |