|
@@ -22,7 +22,6 @@
|
22
|
22
|
|
23
|
23
|
package com.dmdirc.ui.swing.dialogs.actionsmanager;
|
24
|
24
|
|
25
|
|
-import com.dmdirc.Main;
|
26
|
25
|
import com.dmdirc.actions.Action;
|
27
|
26
|
import com.dmdirc.actions.ActionGroup;
|
28
|
27
|
import com.dmdirc.actions.ActionManager;
|
|
@@ -33,7 +32,7 @@ import com.dmdirc.config.prefs.validator.ActionGroupValidator;
|
33
|
32
|
import com.dmdirc.config.prefs.validator.FileNameValidator;
|
34
|
33
|
import com.dmdirc.config.prefs.validator.ValidatorChain;
|
35
|
34
|
import com.dmdirc.ui.swing.components.TextLabel;
|
36
|
|
-import com.dmdirc.ui.swing.MainFrame;
|
|
35
|
+import com.dmdirc.ui.swing.SwingController;
|
37
|
36
|
import com.dmdirc.ui.swing.components.ListScroller;
|
38
|
37
|
import com.dmdirc.ui.swing.components.StandardDialog;
|
39
|
38
|
import com.dmdirc.ui.swing.components.StandardInputDialog;
|
|
@@ -97,7 +96,8 @@ public final class ActionsManagerDialog extends StandardDialog implements Action
|
97
|
96
|
|
98
|
97
|
/** Creates a new instance of ActionsManagerDialog. */
|
99
|
98
|
private ActionsManagerDialog() {
|
100
|
|
- super((MainFrame) Main.getUI().getMainWindow(), false);
|
|
99
|
+ super(null, ModalityType.MODELESS);
|
|
100
|
+ setIconImage(SwingController.getMainFrame().getIcon().getImage());
|
101
|
101
|
|
102
|
102
|
initComponents();
|
103
|
103
|
addListeners();
|
|
@@ -114,7 +114,7 @@ public final class ActionsManagerDialog extends StandardDialog implements Action
|
114
|
114
|
getActionsManagerDialog();
|
115
|
115
|
|
116
|
116
|
me.pack();
|
117
|
|
- me.setLocationRelativeTo((MainFrame) Main.getUI().getMainWindow());
|
|
117
|
+ me.setLocationRelativeTo(SwingController.getMainFrame());
|
118
|
118
|
me.setVisible(true);
|
119
|
119
|
me.requestFocus();
|
120
|
120
|
|
|
@@ -151,7 +151,7 @@ public final class ActionsManagerDialog extends StandardDialog implements Action
|
151
|
151
|
infoLabel = new TextLabel("Actions allow you to make DMDirc" +
|
152
|
152
|
" intelligently respond to various events.");
|
153
|
153
|
groups = new JList(new DefaultListModel());
|
154
|
|
- actions = new ActionsGroupPanel(null);
|
|
154
|
+ actions = new ActionsGroupPanel(this, null);
|
155
|
155
|
info = new ActionGroupInformationPanel(null);
|
156
|
156
|
settings = new HashMap<ActionGroup, ActionGroupSettingsPanel>();
|
157
|
157
|
activeSettings = new ActionGroupSettingsPanel(null, this);
|