Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit 877dc3a

Browse files
author
Matt York
committed
- Added a rudimentary about page
1 parent ba413f8 commit 877dc3a

4 files changed

Lines changed: 236 additions & 2 deletions

File tree

AndroidGears/META-INF/plugin.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin version="2">
22
<id>com.github.androidgears.plugin5</id>
33
<name>Android Gears</name>
4-
<version>0.5.2</version>
4+
<version>0.5.3</version>
55
<vendor email="myork@cs.ua.edu" url="http://www.androidgears.org">Android Gears</vendor>
66

77
<description><![CDATA[
@@ -72,8 +72,11 @@
7272
description="Manage the settings for your Android Gears Plugin">
7373
<keyboard-shortcut first-keystroke="control alt shift G" second-keystroke="S" keymap="$default"/>
7474
</action>
75+
<action id="AndroidGears.AboutGearsAction" class="Actions.AboutGearsAction" text="About Android Gears"
76+
description="Credits and Information About Android Gears">
77+
<keyboard-shortcut first-keystroke="control alt shift G" second-keystroke="A" keymap="$default"/>
78+
</action>
7579
</group>
76-
7780
</actions>
7881

7982
</idea-plugin>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package Actions;
2+
3+
import Forms.AboutGearsForm;
4+
import Forms.SettingsForm;
5+
import com.intellij.openapi.actionSystem.AnAction;
6+
import com.intellij.openapi.actionSystem.AnActionEvent;
7+
8+
import javax.swing.*;
9+
10+
/**
11+
* Created by matthewyork on 12/3/14.
12+
*/
13+
public class AboutGearsAction extends AnAction {
14+
public void actionPerformed(AnActionEvent e) {
15+
JFrame frame = new JFrame("About Android Gears");
16+
frame.setContentPane(new AboutGearsForm().MasterPanel);
17+
frame.setResizable(false);
18+
frame.pack();
19+
frame.setLocationRelativeTo(null);
20+
frame.setVisible(true);
21+
}
22+
}
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Forms.AboutGearsForm">
3+
<grid id="27dc6" binding="MasterPanel" layout-manager="GridLayoutManager" row-count="5" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
4+
<margin top="10" left="10" bottom="10" right="10"/>
5+
<constraints>
6+
<xy x="20" y="20" width="440" height="400"/>
7+
</constraints>
8+
<properties/>
9+
<border type="none"/>
10+
<children>
11+
<grid id="d6d55" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
12+
<margin top="0" left="0" bottom="0" right="0"/>
13+
<constraints>
14+
<grid row="0" column="0" row-span="4" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="2" indent="0" use-parent-layout="false">
15+
<minimum-size width="70" height="-1"/>
16+
<preferred-size width="70" height="24"/>
17+
</grid>
18+
</constraints>
19+
<properties/>
20+
<border type="none"/>
21+
<children>
22+
<component id="bfa8" class="javax.swing.JLabel">
23+
<constraints>
24+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="7" anchor="8" fill="0" indent="0" use-parent-layout="false">
25+
<minimum-size width="-1" height="30"/>
26+
<preferred-size width="-1" height="30"/>
27+
<maximum-size width="-1" height="30"/>
28+
</grid>
29+
</constraints>
30+
<properties>
31+
<background swing-color="Button.background"/>
32+
<icon value="Forms/AndroidGearsHeader.png"/>
33+
<text value=""/>
34+
</properties>
35+
</component>
36+
<vspacer id="c8816">
37+
<constraints>
38+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
39+
</constraints>
40+
</vspacer>
41+
</children>
42+
</grid>
43+
<hspacer id="3db46">
44+
<constraints>
45+
<grid row="3" column="1" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
46+
</constraints>
47+
</hspacer>
48+
<component id="1c148" class="javax.swing.JLabel">
49+
<constraints>
50+
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false">
51+
<minimum-size width="-1" height="40"/>
52+
<preferred-size width="-1" height="40"/>
53+
</grid>
54+
</constraints>
55+
<properties>
56+
<font name="Roboto" size="26" style="0"/>
57+
<text value="Android Gears"/>
58+
</properties>
59+
</component>
60+
<grid id="e85ea" layout-manager="GridLayoutManager" row-count="7" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
61+
<margin top="0" left="0" bottom="0" right="0"/>
62+
<constraints>
63+
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
64+
</constraints>
65+
<properties/>
66+
<border type="none"/>
67+
<children>
68+
<component id="17ab1" class="javax.swing.JLabel" binding="VersionNumberLabel">
69+
<constraints>
70+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false">
71+
<minimum-size width="-1" height="20"/>
72+
<preferred-size width="-1" height="20"/>
73+
</grid>
74+
</constraints>
75+
<properties>
76+
<font name="Roboto" size="12" style="0"/>
77+
<text value="v0.5.3"/>
78+
</properties>
79+
</component>
80+
<hspacer id="fc6bf">
81+
<constraints>
82+
<grid row="0" column="1" row-span="4" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false">
83+
<preferred-size width="38" height="11"/>
84+
</grid>
85+
</constraints>
86+
</hspacer>
87+
<component id="fd08c" class="javax.swing.JLabel">
88+
<constraints>
89+
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false">
90+
<minimum-size width="-1" height="20"/>
91+
<preferred-size width="-1" height="20"/>
92+
</grid>
93+
</constraints>
94+
<properties>
95+
<font name="Roboto" size="16" style="1"/>
96+
<text value="Authors"/>
97+
</properties>
98+
</component>
99+
<component id="f8245" class="javax.swing.JLabel">
100+
<constraints>
101+
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false">
102+
<minimum-size width="-1" height="20"/>
103+
<preferred-size width="-1" height="20"/>
104+
</grid>
105+
</constraints>
106+
<properties>
107+
<font name="Roboto" size="16" style="0"/>
108+
<text value="Matthew York - github.com/matthewyork"/>
109+
</properties>
110+
</component>
111+
<vspacer id="ac1d9">
112+
<constraints>
113+
<grid row="6" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false">
114+
<minimum-size width="-1" height="20"/>
115+
<preferred-size width="-1" height="20"/>
116+
<maximum-size width="-1" height="20"/>
117+
</grid>
118+
</constraints>
119+
</vspacer>
120+
<component id="688c1" class="javax.swing.JLabel">
121+
<constraints>
122+
<grid row="4" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false">
123+
<minimum-size width="-1" height="20"/>
124+
<preferred-size width="-1" height="20"/>
125+
</grid>
126+
</constraints>
127+
<properties>
128+
<font name="Roboto" size="16" style="0"/>
129+
<text value="Aaron Fleshner - github.com/adfleshner"/>
130+
</properties>
131+
</component>
132+
<component id="b1f49" class="javax.swing.JLabel">
133+
<constraints>
134+
<grid row="5" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false">
135+
<minimum-size width="-1" height="20"/>
136+
<preferred-size width="-1" height="20"/>
137+
</grid>
138+
</constraints>
139+
<properties>
140+
<font name="Roboto" size="16" style="0"/>
141+
<text value="Ben Gordon - github.com/bennyguitar"/>
142+
</properties>
143+
</component>
144+
<vspacer id="2af02">
145+
<constraints>
146+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false">
147+
<minimum-size width="-1" height="20"/>
148+
<preferred-size width="-1" height="20"/>
149+
<maximum-size width="-1" height="20"/>
150+
</grid>
151+
</constraints>
152+
</vspacer>
153+
</children>
154+
</grid>
155+
<grid id="698d" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
156+
<margin top="0" left="0" bottom="0" right="0"/>
157+
<constraints>
158+
<grid row="4" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
159+
</constraints>
160+
<properties/>
161+
<border type="none"/>
162+
<children>
163+
<component id="69aa8" class="javax.swing.JLabel">
164+
<constraints>
165+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="1" fill="0" indent="0" use-parent-layout="false">
166+
<minimum-size width="-1" height="20"/>
167+
<preferred-size width="-1" height="20"/>
168+
</grid>
169+
</constraints>
170+
<properties>
171+
<font name="Roboto" size="12" style="0"/>
172+
<text value="androidgears.org"/>
173+
</properties>
174+
</component>
175+
<vspacer id="d8852">
176+
<constraints>
177+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
178+
</constraints>
179+
</vspacer>
180+
</children>
181+
</grid>
182+
</children>
183+
</grid>
184+
</form>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package Forms;
2+
3+
import com.intellij.ide.plugins.PluginManager;
4+
import com.intellij.ide.plugins.PluginVendor;
5+
import com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser;
6+
import com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.UnknownFeature;
7+
8+
import javax.swing.*;
9+
10+
import java.util.List;
11+
12+
import static com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser.Plugin;
13+
14+
/**
15+
* Created by matthewyork on 12/3/14.
16+
*/
17+
public class AboutGearsForm {
18+
public JPanel MasterPanel;
19+
private JLabel VersionNumberLabel;
20+
21+
public AboutGearsForm() {
22+
//Implemente dynamic version number here
23+
//If only these classes were well documented...
24+
}
25+
}

0 commit comments

Comments
 (0)