ソースを参照

Add some more events.

Change-Id: I6d37f19a1cd41dba2f48c54270485af25bcf2635
Reviewed-on: http://gerrit.dmdirc.com/3248
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
pull/1/head
Chris Smith 10年前
コミット
8cf7c3b2b7

+ 9
- 4
src/com/dmdirc/actions/CoreActionType.java ファイルの表示

@@ -38,18 +38,23 @@ import com.dmdirc.interfaces.actions.ActionType;
38 38
 public enum CoreActionType implements ActionType {
39 39
 
40 40
     /** Client opened. */
41
+    @Deprecated
41 42
     CLIENT_OPENED(ClientEvents.CLIENT_EVENT, "Client opened"),
42 43
     /** Client closed. */
44
+    @Deprecated
43 45
     CLIENT_CLOSED(ClientEvents.CLIENT_EVENT, "Client closed"),
44 46
     /** Client closing. */
47
+    @Deprecated
45 48
     CLIENT_CLOSING(ClientEvents.CLIENT_EVENT, "Client closing"),
46 49
     /** Client minimised. */
47 50
     CLIENT_MINIMISED(ClientEvents.CLIENT_EVENT, "Client minimised"),
48 51
     /** Client unminimised. */
49 52
     CLIENT_UNMINIMISED(ClientEvents.CLIENT_EVENT, "Client unminimised"),
50 53
     /** Client lost focus. */
54
+    @Deprecated
51 55
     CLIENT_FOCUS_LOST(ClientEvents.CLIENT_EVENT, "Client lost focus"),
52 56
     /** Client gained focus. */
57
+    @Deprecated
53 58
     CLIENT_FOCUS_GAINED(ClientEvents.CLIENT_EVENT, "Client gained focus"),
54 59
     /** Function key pressed. */
55 60
     CLIENT_KEY_PRESSED(ClientEvents.CLIENT_EVENT_WITH_KEY, "Function key pressed"),
@@ -149,7 +154,7 @@ public enum CoreActionType implements ActionType {
149 154
      *
150 155
      * @since 0.6.3m2 */
151 156
     CHANNEL_MODE_NOTICE(ChannelEvents.CHANNEL_SOURCED_EVENT_WITH_CHARARG,
152
-    "Channel mode notice received"),
157
+            "Channel mode notice received"),
153 158
     /** Channel CTCP received. */
154 159
     CHANNEL_CTCP(ChannelEvents.CHANNEL_CTCP, "Channel CTCP received"),
155 160
     /** Someone joined a channel. */
@@ -168,19 +173,19 @@ public enum CoreActionType implements ActionType {
168 173
      *
169 174
      * @since 0.6.3 */
170 175
     CHANNEL_LISTMODERETRIEVED(ChannelEvents.CHANNEL_LISTMODEEVENT,
171
-    "Channel list mode value retrieved"),
176
+            "Channel list mode value retrieved"),
172 177
     /** Channel mode discovered. */
173 178
     CHANNEL_MODESDISCOVERED(ChannelEvents.CHANNEL_MODEEVENT, "Channel modes discovered"),
174 179
     /** Channel mode changes. */
175 180
     CHANNEL_MODECHANGE(ChannelEvents.CHANNEL_SOURCED_EVENT_WITH_ARG, "Someone changed channel modes"),
176 181
     /** Someone changed someone else's user modes. */
177 182
     CHANNEL_USERMODECHANGE(ChannelEvents.CHANNEL_SOURCED_EVENT_WITH_VICTIM,
178
-    "Someone changed someone else's modes"),
183
+            "Someone changed someone else's modes"),
179 184
     /** Someone changed nickname. */
180 185
     CHANNEL_NICKCHANGE(ChannelEvents.CHANNEL_NICKEVENT, "Someone changed nicknames"),
181 186
     /** Someone changed a topic. */
182 187
     CHANNEL_TOPICCHANGE(ChannelEvents.CHANNEL_SOURCED_EVENT_WITH_ARG,
183
-    "Someone changed channel topic"),
188
+            "Someone changed channel topic"),
184 189
     /** Query opened. */
185 190
     QUERY_OPENED(QueryEvents.QUERY_EVENT, "Query window opened"),
186 191
     /** Query closed. */

+ 30
- 0
src/com/dmdirc/events/ClientClosingEvent.java ファイルの表示

@@ -0,0 +1,30 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+/**
26
+ * Fired when the client is about to close.
27
+ */
28
+public class ClientClosingEvent extends DMDircEvent {
29
+
30
+}

+ 32
- 0
src/com/dmdirc/events/ClientFocusGainedEvent.java ファイルの表示

@@ -0,0 +1,32 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+/**
26
+ * Fired when the the client is bought into focus.
27
+ *
28
+ * TODO: This should be moved into the Swing UI once the corresponding action types are removed.
29
+ */
30
+public class ClientFocusGainedEvent extends DMDircEvent {
31
+
32
+}

+ 32
- 0
src/com/dmdirc/events/ClientFocusLostEvent.java ファイルの表示

@@ -0,0 +1,32 @@
1
+/*
2
+ * Copyright (c) 2006-2014 DMDirc Developers
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.events;
24
+
25
+/**
26
+ * Fired when the the client loses focus.
27
+ *
28
+ * TODO: This should be moved into the Swing UI once the corresponding action types are removed.
29
+ */
30
+public class ClientFocusLostEvent extends DMDircEvent {
31
+
32
+}

読み込み中…
キャンセル
保存