diff options
Diffstat (limited to 'client/trunk/src')
8 files changed, 128 insertions, 32 deletions
diff --git a/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.form b/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.form index f561077..7dcc441 100644 --- a/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.form +++ b/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.form | |||
@@ -30,6 +30,10 @@ | |||
30 | </Group> | 30 | </Group> |
31 | <Group type="102" alignment="0" attributes="0"> | 31 | <Group type="102" alignment="0" attributes="0"> |
32 | <EmptySpace min="-2" pref="36" max="-2" attributes="0"/> | 32 | <EmptySpace min="-2" pref="36" max="-2" attributes="0"/> |
33 | <Component id="jLabel10" pref="351" max="32767" attributes="0"/> | ||
34 | </Group> | ||
35 | <Group type="102" alignment="0" attributes="0"> | ||
36 | <EmptySpace min="-2" pref="36" max="-2" attributes="0"/> | ||
33 | <Component id="jLabel6" pref="351" max="32767" attributes="0"/> | 37 | <Component id="jLabel6" pref="351" max="32767" attributes="0"/> |
34 | </Group> | 38 | </Group> |
35 | <Group type="102" alignment="0" attributes="0"> | 39 | <Group type="102" alignment="0" attributes="0"> |
@@ -64,16 +68,21 @@ | |||
64 | <EmptySpace max="-2" attributes="0"/> | 68 | <EmptySpace max="-2" attributes="0"/> |
65 | <Component id="jSpinner2" pref="239" max="32767" attributes="0"/> | 69 | <Component id="jSpinner2" pref="239" max="32767" attributes="0"/> |
66 | </Group> | 70 | </Group> |
71 | <Group type="102" alignment="0" attributes="0"> | ||
72 | <Component id="jLabel9" min="-2" max="-2" attributes="0"/> | ||
73 | <EmptySpace max="-2" attributes="0"/> | ||
74 | <Component id="jCheckBox1" min="-2" max="-2" attributes="0"/> | ||
75 | </Group> | ||
67 | </Group> | 76 | </Group> |
68 | </Group> | 77 | </Group> |
69 | <Group type="102" alignment="1" attributes="0"> | ||
70 | <EmptySpace pref="341" max="32767" attributes="0"/> | ||
71 | <Component id="jButton1" min="-2" max="-2" attributes="0"/> | ||
72 | </Group> | ||
73 | <Group type="102" alignment="0" attributes="0"> | 78 | <Group type="102" alignment="0" attributes="0"> |
74 | <EmptySpace min="-2" pref="36" max="-2" attributes="0"/> | 79 | <EmptySpace min="-2" pref="36" max="-2" attributes="0"/> |
75 | <Component id="jLabel4" min="-2" pref="351" max="-2" attributes="0"/> | 80 | <Component id="jLabel4" min="-2" pref="351" max="-2" attributes="0"/> |
76 | </Group> | 81 | </Group> |
82 | <Group type="102" alignment="1" attributes="0"> | ||
83 | <EmptySpace pref="341" max="32767" attributes="0"/> | ||
84 | <Component id="jButton1" min="-2" max="-2" attributes="0"/> | ||
85 | </Group> | ||
77 | </Group> | 86 | </Group> |
78 | <EmptySpace max="-2" attributes="0"/> | 87 | <EmptySpace max="-2" attributes="0"/> |
79 | </Group> | 88 | </Group> |
@@ -107,10 +116,17 @@ | |||
107 | <Component id="jComboBox1" alignment="3" min="-2" max="-2" attributes="0"/> | 116 | <Component id="jComboBox1" alignment="3" min="-2" max="-2" attributes="0"/> |
108 | </Group> | 117 | </Group> |
109 | <EmptySpace max="-2" attributes="0"/> | 118 | <EmptySpace max="-2" attributes="0"/> |
110 | <Component id="jLabel8" min="-2" pref="85" max="-2" attributes="0"/> | 119 | <Component id="jLabel8" min="-2" pref="90" max="-2" attributes="0"/> |
120 | <EmptySpace max="-2" attributes="0"/> | ||
121 | <Group type="103" groupAlignment="1" attributes="0"> | ||
122 | <Component id="jLabel9" min="-2" max="-2" attributes="0"/> | ||
123 | <Component id="jCheckBox1" min="-2" max="-2" attributes="0"/> | ||
124 | </Group> | ||
125 | <EmptySpace max="-2" attributes="0"/> | ||
126 | <Component id="jLabel10" pref="34" max="32767" attributes="0"/> | ||
111 | <EmptySpace max="-2" attributes="0"/> | 127 | <EmptySpace max="-2" attributes="0"/> |
112 | <Component id="jButton1" min="-2" max="-2" attributes="0"/> | 128 | <Component id="jButton1" min="-2" max="-2" attributes="0"/> |
113 | <EmptySpace max="32767" attributes="0"/> | 129 | <EmptySpace max="-2" attributes="0"/> |
114 | </Group> | 130 | </Group> |
115 | </Group> | 131 | </Group> |
116 | </DimensionLayout> | 132 | </DimensionLayout> |
@@ -200,5 +216,23 @@ | |||
200 | <Property name="name" type="java.lang.String" value="jLabel8" noResource="true"/> | 216 | <Property name="name" type="java.lang.String" value="jLabel8" noResource="true"/> |
201 | </Properties> | 217 | </Properties> |
202 | </Component> | 218 | </Component> |
219 | <Component class="javax.swing.JLabel" name="jLabel9"> | ||
220 | <Properties> | ||
221 | <Property name="text" type="java.lang.String" resourceKey="jLabel9.text"/> | ||
222 | <Property name="name" type="java.lang.String" value="jLabel9" noResource="true"/> | ||
223 | </Properties> | ||
224 | </Component> | ||
225 | <Component class="javax.swing.JCheckBox" name="jCheckBox1"> | ||
226 | <Properties> | ||
227 | <Property name="text" type="java.lang.String" resourceKey="jCheckBox1.text"/> | ||
228 | <Property name="name" type="java.lang.String" value="jCheckBox1" noResource="true"/> | ||
229 | </Properties> | ||
230 | </Component> | ||
231 | <Component class="javax.swing.JLabel" name="jLabel10"> | ||
232 | <Properties> | ||
233 | <Property name="text" type="java.lang.String" resourceKey="jLabel10.text"/> | ||
234 | <Property name="name" type="java.lang.String" value="jLabel10" noResource="true"/> | ||
235 | </Properties> | ||
236 | </Component> | ||
203 | </SubComponents> | 237 | </SubComponents> |
204 | </Form> | 238 | </Form> |
diff --git a/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java b/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java index 597aca8..98ae88b 100644 --- a/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java +++ b/client/trunk/src/com/fourisland/instadisc/AdvancedSettingsForm.java | |||
@@ -47,6 +47,8 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
47 | } else { | 47 | } else { |
48 | jComboBox1.setSelectedIndex(1); | 48 | jComboBox1.setSelectedIndex(1); |
49 | } | 49 | } |
50 | |||
51 | jCheckBox1.setSelected(Wrapper.getConfig("useUnreadFlag").equals("true")); | ||
50 | } | 52 | } |
51 | 53 | ||
52 | /** This method is called from within the constructor to | 54 | /** This method is called from within the constructor to |
@@ -70,6 +72,9 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
70 | jSpinner3 = new javax.swing.JSpinner(); | 72 | jSpinner3 = new javax.swing.JSpinner(); |
71 | jComboBox1 = new javax.swing.JComboBox(); | 73 | jComboBox1 = new javax.swing.JComboBox(); |
72 | jLabel8 = new javax.swing.JLabel(); | 74 | jLabel8 = new javax.swing.JLabel(); |
75 | jLabel9 = new javax.swing.JLabel(); | ||
76 | jCheckBox1 = new javax.swing.JCheckBox(); | ||
77 | jLabel10 = new javax.swing.JLabel(); | ||
73 | 78 | ||
74 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); | 79 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); |
75 | setName("Form"); // NOI18N | 80 | setName("Form"); // NOI18N |
@@ -117,6 +122,15 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
117 | jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N | 122 | jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N |
118 | jLabel8.setName("jLabel8"); // NOI18N | 123 | jLabel8.setName("jLabel8"); // NOI18N |
119 | 124 | ||
125 | jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N | ||
126 | jLabel9.setName("jLabel9"); // NOI18N | ||
127 | |||
128 | jCheckBox1.setText(resourceMap.getString("jCheckBox1.text")); // NOI18N | ||
129 | jCheckBox1.setName("jCheckBox1"); // NOI18N | ||
130 | |||
131 | jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N | ||
132 | jLabel10.setName("jLabel10"); // NOI18N | ||
133 | |||
120 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); | 134 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); |
121 | getContentPane().setLayout(layout); | 135 | getContentPane().setLayout(layout); |
122 | layout.setHorizontalGroup( | 136 | layout.setHorizontalGroup( |
@@ -128,6 +142,9 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
128 | .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 351, Short.MAX_VALUE)) | 142 | .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 351, Short.MAX_VALUE)) |
129 | .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() | 143 | .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() |
130 | .addGap(36, 36, 36) | 144 | .addGap(36, 36, 36) |
145 | .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 351, Short.MAX_VALUE)) | ||
146 | .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() | ||
147 | .addGap(36, 36, 36) | ||
131 | .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 351, Short.MAX_VALUE)) | 148 | .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 351, Short.MAX_VALUE)) |
132 | .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() | 149 | .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() |
133 | .addContainerGap() | 150 | .addContainerGap() |
@@ -153,13 +170,17 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
153 | .addGroup(layout.createSequentialGroup() | 170 | .addGroup(layout.createSequentialGroup() |
154 | .addComponent(jLabel5) | 171 | .addComponent(jLabel5) |
155 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | 172 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
156 | .addComponent(jSpinner2, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE)))) | 173 | .addComponent(jSpinner2, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE)) |
157 | .addGroup(layout.createSequentialGroup() | 174 | .addGroup(layout.createSequentialGroup() |
158 | .addContainerGap(341, Short.MAX_VALUE) | 175 | .addComponent(jLabel9) |
159 | .addComponent(jButton1)) | 176 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
177 | .addComponent(jCheckBox1)))) | ||
160 | .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() | 178 | .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() |
161 | .addGap(36, 36, 36) | 179 | .addGap(36, 36, 36) |
162 | .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 351, javax.swing.GroupLayout.PREFERRED_SIZE))) | 180 | .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 351, javax.swing.GroupLayout.PREFERRED_SIZE)) |
181 | .addGroup(layout.createSequentialGroup() | ||
182 | .addContainerGap(341, Short.MAX_VALUE) | ||
183 | .addComponent(jButton1))) | ||
163 | .addContainerGap()) | 184 | .addContainerGap()) |
164 | ); | 185 | ); |
165 | layout.setVerticalGroup( | 186 | layout.setVerticalGroup( |
@@ -187,10 +208,16 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
187 | .addComponent(jSpinner3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) | 208 | .addComponent(jSpinner3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
188 | .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) | 209 | .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
189 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | 210 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
190 | .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE) | 211 | .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) |
212 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | ||
213 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) | ||
214 | .addComponent(jLabel9) | ||
215 | .addComponent(jCheckBox1)) | ||
216 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | ||
217 | .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE) | ||
191 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | 218 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
192 | .addComponent(jButton1) | 219 | .addComponent(jButton1) |
193 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) | 220 | .addContainerGap()) |
194 | ); | 221 | ); |
195 | 222 | ||
196 | pack(); | 223 | pack(); |
@@ -201,6 +228,7 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
201 | Wrapper.setConfig("verIDBufferSize", ((Integer) jSpinner2.getValue()).toString()); | 228 | Wrapper.setConfig("verIDBufferSize", ((Integer) jSpinner2.getValue()).toString()); |
202 | Wrapper.setConfig("ipCheckValue", ((Integer) jSpinner3.getValue()).toString()); | 229 | Wrapper.setConfig("ipCheckValue", ((Integer) jSpinner3.getValue()).toString()); |
203 | Wrapper.setConfig("ipCheckUnit", (String) jComboBox1.getSelectedItem()); | 230 | Wrapper.setConfig("ipCheckUnit", (String) jComboBox1.getSelectedItem()); |
231 | Wrapper.setConfig("useUnreadFlag", ((Boolean) jCheckBox1.isSelected()).toString()); | ||
204 | 232 | ||
205 | ((InstaDiscView) InstaDiscApp.getApplication().getMainView()).updateTimer(); | 233 | ((InstaDiscView) InstaDiscApp.getApplication().getMainView()).updateTimer(); |
206 | 234 | ||
@@ -226,8 +254,10 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
226 | 254 | ||
227 | // Variables declaration - do not modify//GEN-BEGIN:variables | 255 | // Variables declaration - do not modify//GEN-BEGIN:variables |
228 | private javax.swing.JButton jButton1; | 256 | private javax.swing.JButton jButton1; |
257 | private javax.swing.JCheckBox jCheckBox1; | ||
229 | private javax.swing.JComboBox jComboBox1; | 258 | private javax.swing.JComboBox jComboBox1; |
230 | private javax.swing.JLabel jLabel1; | 259 | private javax.swing.JLabel jLabel1; |
260 | private javax.swing.JLabel jLabel10; | ||
231 | private javax.swing.JLabel jLabel2; | 261 | private javax.swing.JLabel jLabel2; |
232 | private javax.swing.JLabel jLabel3; | 262 | private javax.swing.JLabel jLabel3; |
233 | private javax.swing.JLabel jLabel4; | 263 | private javax.swing.JLabel jLabel4; |
@@ -235,6 +265,7 @@ public class AdvancedSettingsForm extends javax.swing.JDialog { | |||
235 | private javax.swing.JLabel jLabel6; | 265 | private javax.swing.JLabel jLabel6; |
236 | private javax.swing.JLabel jLabel7; | 266 | private javax.swing.JLabel jLabel7; |
237 | private javax.swing.JLabel jLabel8; | 267 | private javax.swing.JLabel jLabel8; |
268 | private javax.swing.JLabel jLabel9; | ||
238 | private javax.swing.JSpinner jSpinner1; | 269 | private javax.swing.JSpinner jSpinner1; |
239 | private javax.swing.JSpinner jSpinner2; | 270 | private javax.swing.JSpinner jSpinner2; |
240 | private javax.swing.JSpinner jSpinner3; | 271 | private javax.swing.JSpinner jSpinner3; |
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java index 7133f6f..e327271 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java | |||
@@ -170,6 +170,7 @@ public class Step2 extends javax.swing.JDialog { | |||
170 | Wrapper.setConfig("nextFilterID", "0"); | 170 | Wrapper.setConfig("nextFilterID", "0"); |
171 | Wrapper.setConfig("ipCheckValue", "1"); | 171 | Wrapper.setConfig("ipCheckValue", "1"); |
172 | Wrapper.setConfig("ipCheckUnit", "day"); | 172 | Wrapper.setConfig("ipCheckUnit", "day"); |
173 | Wrapper.setConfig("useUnreadFlag", "true"); | ||
173 | Wrapper.setConfig("initCheck", "done"); | 174 | Wrapper.setConfig("initCheck", "done"); |
174 | 175 | ||
175 | StepEndResults.ok = true; | 176 | StepEndResults.ok = true; |
diff --git a/client/trunk/src/com/fourisland/instadisc/IDItemListCellRenderer.java b/client/trunk/src/com/fourisland/instadisc/IDItemListCellRenderer.java index dd14b21..20bb76e 100644 --- a/client/trunk/src/com/fourisland/instadisc/IDItemListCellRenderer.java +++ b/client/trunk/src/com/fourisland/instadisc/IDItemListCellRenderer.java | |||
@@ -32,8 +32,7 @@ public class IDItemListCellRenderer extends JLabel implements ListCellRenderer { | |||
32 | { | 32 | { |
33 | this.setText("<HTML><I>" + Wrapper.getSubscription(item.getSubscription()).getTitle() + "</I>, <B>" + item.getTitle() + "</B> by " + item.getAuthor()); | 33 | this.setText("<HTML><I>" + Wrapper.getSubscription(item.getSubscription()).getTitle() + "</I>, <B>" + item.getTitle() + "</B> by " + item.getAuthor()); |
34 | } | 34 | } |
35 | 35 | if ((Wrapper.getConfig("useUnreadFlag").equals("true")) && (item.getUnread())) | |
36 | if (item.getUnread()) | ||
37 | { | 36 | { |
38 | this.setText(this.getText() + "<BR><B>New </B> at " + new SimpleDateFormat("EEEE, MMMM d yyyy k:mm aa").format(item.getRecieved())); | 37 | this.setText(this.getText() + "<BR><B>New </B> at " + new SimpleDateFormat("EEEE, MMMM d yyyy k:mm aa").format(item.getRecieved())); |
39 | } | 38 | } |
@@ -46,7 +45,7 @@ public class IDItemListCellRenderer extends JLabel implements ListCellRenderer { | |||
46 | { | 45 | { |
47 | this.setForeground(arg0.getForeground()); | 46 | this.setForeground(arg0.getForeground()); |
48 | 47 | ||
49 | if (item.getUnread()) | 48 | if ((Wrapper.getConfig("useUnreadFlag").equals("true")) && (item.getUnread())) |
50 | { | 49 | { |
51 | this.setBackground(java.awt.Color.yellow); | 50 | this.setBackground(java.awt.Color.yellow); |
52 | } else | 51 | } else |
diff --git a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form index c08ee2f..f570bb8 100644 --- a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form +++ b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form | |||
@@ -110,6 +110,9 @@ | |||
110 | <Property name="text" type="java.lang.String" resourceKey="jMenu1.text"/> | 110 | <Property name="text" type="java.lang.String" resourceKey="jMenu1.text"/> |
111 | <Property name="name" type="java.lang.String" value="jMenu1" noResource="true"/> | 111 | <Property name="name" type="java.lang.String" value="jMenu1" noResource="true"/> |
112 | </Properties> | 112 | </Properties> |
113 | <Events> | ||
114 | <EventHandler event="menuSelected" listener="javax.swing.event.MenuListener" parameters="javax.swing.event.MenuEvent" handler="jMenu1MenuSelected"/> | ||
115 | </Events> | ||
113 | <SubComponents> | 116 | <SubComponents> |
114 | <MenuItem class="javax.swing.JMenuItem" name="jMenuItem7"> | 117 | <MenuItem class="javax.swing.JMenuItem" name="jMenuItem7"> |
115 | <Properties> | 118 | <Properties> |
diff --git a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java index 3448197..24364b4 100644 --- a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java +++ b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java | |||
@@ -233,6 +233,15 @@ public class InstaDiscView extends FrameView { | |||
233 | 233 | ||
234 | jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N | 234 | jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N |
235 | jMenu1.setName("jMenu1"); // NOI18N | 235 | jMenu1.setName("jMenu1"); // NOI18N |
236 | jMenu1.addMenuListener(new javax.swing.event.MenuListener() { | ||
237 | public void menuCanceled(javax.swing.event.MenuEvent evt) { | ||
238 | } | ||
239 | public void menuDeselected(javax.swing.event.MenuEvent evt) { | ||
240 | } | ||
241 | public void menuSelected(javax.swing.event.MenuEvent evt) { | ||
242 | jMenu1MenuSelected(evt); | ||
243 | } | ||
244 | }); | ||
236 | 245 | ||
237 | jMenuItem7.setText(resourceMap.getString("jMenuItem7.text")); // NOI18N | 246 | jMenuItem7.setText(resourceMap.getString("jMenuItem7.text")); // NOI18N |
238 | jMenuItem7.setName("jMenuItem7"); // NOI18N | 247 | jMenuItem7.setName("jMenuItem7"); // NOI18N |
@@ -347,7 +356,11 @@ public class InstaDiscView extends FrameView { | |||
347 | try { | 356 | try { |
348 | if (java.awt.Desktop.isDesktopSupported()) | 357 | if (java.awt.Desktop.isDesktopSupported()) |
349 | { | 358 | { |
350 | Wrapper.setUnreadFlagItem(item.getID(), false); | 359 | if (Wrapper.getConfig("useUnreadFlag").equals("true")) |
360 | { | ||
361 | Wrapper.setUnreadFlagItem(item.getID(), false); | ||
362 | } | ||
363 | |||
351 | refreshItemPane(); | 364 | refreshItemPane(); |
352 | 365 | ||
353 | java.awt.Desktop.getDesktop().browse(new URI(item.getURL())); | 366 | java.awt.Desktop.getDesktop().browse(new URI(item.getURL())); |
@@ -415,34 +428,47 @@ public class InstaDiscView extends FrameView { | |||
415 | }//GEN-LAST:event_jMenuItem7ActionPerformed | 428 | }//GEN-LAST:event_jMenuItem7ActionPerformed |
416 | 429 | ||
417 | private void jList1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MouseReleased | 430 | private void jList1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MouseReleased |
418 | int i = jList1.locationToIndex(evt.getPoint()); | 431 | if (Wrapper.getConfig("useUnreadFlag").equals("true")) |
419 | if ((evt.isPopupTrigger()) && (i != -1)) | ||
420 | { | 432 | { |
421 | jList1.setSelectedIndex(i); | 433 | int i = jList1.locationToIndex(evt.getPoint()); |
422 | new UnreadFlagPopupMenu((Item) jList1.getSelectedValue()).show(jList1, evt.getX(), evt.getY()); | 434 | if ((evt.isPopupTrigger()) && (i != -1)) |
435 | { | ||
436 | jList1.setSelectedIndex(i); | ||
437 | new UnreadFlagPopupMenu((Item) jList1.getSelectedValue()).show(jList1, evt.getX(), evt.getY()); | ||
438 | } | ||
423 | } | 439 | } |
424 | }//GEN-LAST:event_jList1MouseReleased | 440 | }//GEN-LAST:event_jList1MouseReleased |
425 | 441 | ||
426 | private void jList1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MousePressed | 442 | private void jList1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MousePressed |
427 | int i = jList1.locationToIndex(evt.getPoint()); | 443 | if (Wrapper.getConfig("useUnreadFlag").equals("true")) |
428 | if ((evt.isPopupTrigger()) && (i != -1)) | ||
429 | { | 444 | { |
430 | jList1.setSelectedIndex(i); | 445 | int i = jList1.locationToIndex(evt.getPoint()); |
431 | new UnreadFlagPopupMenu((Item) jList1.getSelectedValue()).show(jList1, evt.getX(), evt.getY()); | 446 | if ((evt.isPopupTrigger()) && (i != -1)) |
447 | { | ||
448 | jList1.setSelectedIndex(i); | ||
449 | new UnreadFlagPopupMenu((Item) jList1.getSelectedValue()).show(jList1, evt.getX(), evt.getY()); | ||
450 | } | ||
432 | } | 451 | } |
433 | }//GEN-LAST:event_jList1MousePressed | 452 | }//GEN-LAST:event_jList1MousePressed |
434 | 453 | ||
435 | private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed | 454 | private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed |
436 | Item[] items = Wrapper.getAllItem(); | 455 | if (Wrapper.getConfig("useUnreadFlag").equals("true")) |
437 | int i = 0; | ||
438 | for (i=0; i < items.length; i++) | ||
439 | { | 456 | { |
440 | Wrapper.setUnreadFlagItem(items[i].getID(), false); | 457 | Item[] items = Wrapper.getAllItem(); |
441 | } | 458 | int i = 0; |
459 | for (i=0; i < items.length; i++) | ||
460 | { | ||
461 | Wrapper.setUnreadFlagItem(items[i].getID(), false); | ||
462 | } | ||
442 | 463 | ||
443 | refreshItemPane(); | 464 | refreshItemPane(); |
465 | } | ||
444 | }//GEN-LAST:event_jMenuItem8ActionPerformed | 466 | }//GEN-LAST:event_jMenuItem8ActionPerformed |
445 | 467 | ||
468 | private void jMenu1MenuSelected(javax.swing.event.MenuEvent evt) {//GEN-FIRST:event_jMenu1MenuSelected | ||
469 | jMenuItem8.setEnabled(Wrapper.getConfig("useUnreadFlag").equals("true")); | ||
470 | }//GEN-LAST:event_jMenu1MenuSelected | ||
471 | |||
446 | // Variables declaration - do not modify//GEN-BEGIN:variables | 472 | // Variables declaration - do not modify//GEN-BEGIN:variables |
447 | private javax.swing.JList jList1; | 473 | private javax.swing.JList jList1; |
448 | private javax.swing.JMenu jMenu1; | 474 | private javax.swing.JMenu jMenu1; |
diff --git a/client/trunk/src/com/fourisland/instadisc/UnreadFlagPopupMenu.java b/client/trunk/src/com/fourisland/instadisc/UnreadFlagPopupMenu.java index 25cca54..673524b 100644 --- a/client/trunk/src/com/fourisland/instadisc/UnreadFlagPopupMenu.java +++ b/client/trunk/src/com/fourisland/instadisc/UnreadFlagPopupMenu.java | |||
@@ -4,7 +4,6 @@ import com.fourisland.instadisc.Database.Item; | |||
4 | import com.fourisland.instadisc.Database.Wrapper; | 4 | import com.fourisland.instadisc.Database.Wrapper; |
5 | import java.awt.event.ActionEvent; | 5 | import java.awt.event.ActionEvent; |
6 | import java.awt.event.ActionListener; | 6 | import java.awt.event.ActionListener; |
7 | import javax.swing.JList; | ||
8 | import javax.swing.JMenuItem; | 7 | import javax.swing.JMenuItem; |
9 | import javax.swing.JPopupMenu; | 8 | import javax.swing.JPopupMenu; |
10 | 9 | ||
diff --git a/client/trunk/src/com/fourisland/instadisc/resources/AdvancedSettingsForm.properties b/client/trunk/src/com/fourisland/instadisc/resources/AdvancedSettingsForm.properties index e05a8fb..44a1ff2 100644 --- a/client/trunk/src/com/fourisland/instadisc/resources/AdvancedSettingsForm.properties +++ b/client/trunk/src/com/fourisland/instadisc/resources/AdvancedSettingsForm.properties | |||
@@ -9,3 +9,6 @@ jLabel6.text=<HTML>If this is a higher value, less viral Items will get in, but | |||
9 | jButton1.text=Done | 9 | jButton1.text=Done |
10 | jLabel7.text=IP Timer Interval: | 10 | jLabel7.text=IP Timer Interval: |
11 | jLabel8.text=<HTML>This is how often InstaDisc contacts the Central Server to see if your IP Address has changed. If your IP Address has changed and the Central Server doesn't know about it yet, you won't be able to recieve InstaDisc Items. | 11 | jLabel8.text=<HTML>This is how often InstaDisc contacts the Central Server to see if your IP Address has changed. If your IP Address has changed and the Central Server doesn't know about it yet, you won't be able to recieve InstaDisc Items. |
12 | jLabel9.text=Use Unread Flag? | ||
13 | jCheckBox1.text= | ||
14 | jLabel10.text=<HTML>If this is checked, all incoming items will automatically be marked as read. | ||