Browse Source

Merge branch 'master' of https://github.com/DMDirc/Plugins into dev3

pull/384/head
Greg Holmes 9 years ago
parent
commit
2d24de8c0b

+ 1
- 1
systray/src/com/dmdirc/addons/systray/SystrayManager.java View File

@@ -30,7 +30,7 @@ import com.dmdirc.config.prefs.PreferencesCategory;
30 30
 import com.dmdirc.config.prefs.PreferencesDialogModel;
31 31
 import com.dmdirc.config.prefs.PreferencesSetting;
32 32
 import com.dmdirc.config.prefs.PreferencesType;
33
-import com.dmdirc.events.ClientMinimisedEvent;
33
+import com.dmdirc.addons.ui_swing.events.ClientMinimisedEvent;
34 34
 import com.dmdirc.events.ClientPrefsOpenedEvent;
35 35
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
36 36
 import com.dmdirc.plugins.PluginDomain;

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/DMDircEventQueue.java View File

@@ -26,7 +26,7 @@ import com.dmdirc.DMDircMBassador;
26 26
 import com.dmdirc.addons.ui_swing.actions.CopyAction;
27 27
 import com.dmdirc.addons.ui_swing.actions.CutAction;
28 28
 import com.dmdirc.addons.ui_swing.events.SwingWindowEvent;
29
-import com.dmdirc.events.ClientKeyPressedEvent;
29
+import com.dmdirc.addons.ui_swing.events.ClientKeyPressedEvent;
30 30
 
31 31
 import java.awt.AWTEvent;
32 32
 import java.awt.Component;

+ 2
- 2
ui_swing/src/com/dmdirc/addons/ui_swing/EventTriggeringFocusListener.java View File

@@ -23,8 +23,8 @@
23 23
 package com.dmdirc.addons.ui_swing;
24 24
 
25 25
 import com.dmdirc.DMDircMBassador;
26
-import com.dmdirc.events.ClientFocusGainedEvent;
27
-import com.dmdirc.events.ClientFocusLostEvent;
26
+import com.dmdirc.addons.ui_swing.events.ClientFocusGainedEvent;
27
+import com.dmdirc.addons.ui_swing.events.ClientFocusLostEvent;
28 28
 
29 29
 import java.awt.event.WindowEvent;
30 30
 import java.awt.event.WindowFocusListener;

+ 2
- 2
ui_swing/src/com/dmdirc/addons/ui_swing/MainFrame.java View File

@@ -36,8 +36,8 @@ import com.dmdirc.addons.ui_swing.events.SwingWindowSelectedEvent;
36 36
 import com.dmdirc.addons.ui_swing.framemanager.FrameManager;
37 37
 import com.dmdirc.addons.ui_swing.framemanager.FramemanagerPosition;
38 38
 import com.dmdirc.addons.ui_swing.framemanager.ctrltab.CtrlTabWindowManager;
39
-import com.dmdirc.events.ClientMinimisedEvent;
40
-import com.dmdirc.events.ClientUnminimisedEvent;
39
+import com.dmdirc.addons.ui_swing.events.ClientMinimisedEvent;
40
+import com.dmdirc.addons.ui_swing.events.ClientUnminimisedEvent;
41 41
 import com.dmdirc.events.FrameTitleChangedEvent;
42 42
 import com.dmdirc.events.UnreadStatusChangedEvent;
43 43
 import com.dmdirc.interfaces.LifecycleController;

+ 32
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/events/ClientFocusGainedEvent.java View File

@@ -0,0 +1,32 @@
1
+/*
2
+ * Copyright (c) 2006-2015 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.addons.ui_swing.events;
24
+
25
+import com.dmdirc.events.DMDircEvent;
26
+
27
+/**
28
+ * Fired when the the client is bought into focus.
29
+ */
30
+public class ClientFocusGainedEvent extends DMDircEvent {
31
+
32
+}

+ 32
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/events/ClientFocusLostEvent.java View File

@@ -0,0 +1,32 @@
1
+/*
2
+ * Copyright (c) 2006-2015 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.addons.ui_swing.events;
24
+
25
+import com.dmdirc.events.DMDircEvent;
26
+
27
+/**
28
+ * Fired when the the client loses focus.
29
+ */
30
+public class ClientFocusLostEvent extends DMDircEvent {
31
+
32
+}

+ 44
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/events/ClientKeyPressedEvent.java View File

@@ -0,0 +1,44 @@
1
+/*
2
+ * Copyright (c) 2006-2015 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.addons.ui_swing.events;
24
+
25
+import com.dmdirc.events.DMDircEvent;
26
+
27
+import javax.swing.KeyStroke;
28
+
29
+/**
30
+ * Event describing a function key press.
31
+ */
32
+public class ClientKeyPressedEvent extends DMDircEvent {
33
+
34
+    private final KeyStroke keyStroke;
35
+
36
+    public ClientKeyPressedEvent(final KeyStroke keyStroke) {
37
+        this.keyStroke = keyStroke;
38
+    }
39
+
40
+    public KeyStroke getKeyStroke() {
41
+        return keyStroke;
42
+    }
43
+
44
+}

+ 32
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/events/ClientMinimisedEvent.java View File

@@ -0,0 +1,32 @@
1
+/*
2
+ * Copyright (c) 2006-2015 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.addons.ui_swing.events;
24
+
25
+import com.dmdirc.events.DMDircEvent;
26
+
27
+/**
28
+ * Fired when the the client is minimised.
29
+ */
30
+public class ClientMinimisedEvent extends DMDircEvent {
31
+
32
+}

+ 32
- 0
ui_swing/src/com/dmdirc/addons/ui_swing/events/ClientUnminimisedEvent.java View File

@@ -0,0 +1,32 @@
1
+/*
2
+ * Copyright (c) 2006-2015 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.addons.ui_swing.events;
24
+
25
+import com.dmdirc.events.DMDircEvent;
26
+
27
+/**
28
+ * Fired when the the client is unminimised.
29
+ */
30
+public class ClientUnminimisedEvent extends DMDircEvent {
31
+
32
+}

+ 2
- 2
ui_swing/test/com/dmdirc/addons/ui_swing/EventTriggeringFocusListenerTest.java View File

@@ -23,8 +23,8 @@
23 23
 package com.dmdirc.addons.ui_swing;
24 24
 
25 25
 import com.dmdirc.DMDircMBassador;
26
-import com.dmdirc.events.ClientFocusGainedEvent;
27
-import com.dmdirc.events.ClientFocusLostEvent;
26
+import com.dmdirc.addons.ui_swing.events.ClientFocusGainedEvent;
27
+import com.dmdirc.addons.ui_swing.events.ClientFocusLostEvent;
28 28
 
29 29
 import java.awt.event.WindowEvent;
30 30
 

+ 1
- 1
windowflashing/src/com/dmdirc/addons/windowflashing/WindowFlashingManager.java View File

@@ -32,7 +32,7 @@ import com.dmdirc.config.prefs.PreferencesCategory;
32 32
 import com.dmdirc.config.prefs.PreferencesDialogModel;
33 33
 import com.dmdirc.config.prefs.PreferencesSetting;
34 34
 import com.dmdirc.config.prefs.PreferencesType;
35
-import com.dmdirc.events.ClientFocusGainedEvent;
35
+import com.dmdirc.addons.ui_swing.events.ClientFocusGainedEvent;
36 36
 import com.dmdirc.events.ClientPrefsOpenedEvent;
37 37
 import com.dmdirc.interfaces.config.AggregateConfigProvider;
38 38
 import com.dmdirc.plugins.PluginDomain;

Loading…
Cancel
Save