Browse Source

Change StandardDialog setTitle behaviour to include DMDirc: in the title.

Change-Id: I69d5e094768f2d463a30bf023b996dbe778227c5
Reviewed-on: http://gerrit.dmdirc.com/1233
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.4
Greboid 14 years ago
parent
commit
2a043de513

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

94
         layoutComponents();
94
         layoutComponents();
95
         addListeners();
95
         addListeners();
96
 
96
 
97
-        setTitle("DMDirc: Feedback");
97
+        setTitle("Feedback");
98
         setResizable(false);
98
         setResizable(false);
99
     }
99
     }
100
 
100
 

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

35
 import com.dmdirc.addons.ui_swing.components.vetoable.VetoableComboBoxModel;
35
 import com.dmdirc.addons.ui_swing.components.vetoable.VetoableComboBoxModel;
36
 import com.dmdirc.addons.ui_swing.components.vetoable.VetoableComboBoxSelectionListener;
36
 import com.dmdirc.addons.ui_swing.components.vetoable.VetoableComboBoxSelectionListener;
37
 import com.dmdirc.addons.ui_swing.dialogs.profiles.ProfileManagerDialog;
37
 import com.dmdirc.addons.ui_swing.dialogs.profiles.ProfileManagerDialog;
38
-
39
 import com.dmdirc.logger.ErrorLevel;
38
 import com.dmdirc.logger.ErrorLevel;
40
 import com.dmdirc.logger.Logger;
39
 import com.dmdirc.logger.Logger;
40
+
41
 import java.awt.Dialog.ModalityType;
41
 import java.awt.Dialog.ModalityType;
42
 import java.awt.Insets;
42
 import java.awt.Insets;
43
 import java.awt.event.ActionEvent;
43
 import java.awt.event.ActionEvent;

+ 7
- 1
src/com/dmdirc/addons/ui_swing/dialogs/StandardDialog.java View File

100
         orderButtons(new JButton(), new JButton());
100
         orderButtons(new JButton(), new JButton());
101
     }
101
     }
102
 
102
 
103
+    /** {@inheritDoc} */
104
+    @Override
105
+    public void setTitle(final String title) {
106
+        super.setTitle("DMDirc: " + title);
107
+    }
108
+
103
     /**
109
     /**
104
      * Displays the dialog centering on the parent window.
110
      * Displays the dialog centering on the parent window.
105
      */
111
      */
173
      *
179
      *
174
      * @return Parent window or null
180
      * @return Parent window or null
175
      */
181
      */
176
-    public Window getOwner() {
182
+    public Window getParentWindow() {
177
         return owner;
183
         return owner;
178
     }
184
     }
179
 
185
 

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/about/AboutDialog.java View File

100
         tabbedPane = new JTabbedPane();
100
         tabbedPane = new JTabbedPane();
101
 
101
 
102
         setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
102
         setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
103
-        setTitle("About DMDirc");
103
+        setTitle("About");
104
         setResizable(false);
104
         setResizable(false);
105
 
105
 
106
         orderButtons(new JButton(), new JButton());
106
         orderButtons(new JButton(), new JButton());

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionEditorDialog.java View File

95
             final Action action) {
95
             final Action action) {
96
         super(window, ModalityType.DOCUMENT_MODAL);
96
         super(window, ModalityType.DOCUMENT_MODAL);
97
         setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
97
         setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
98
-        setTitle("DMDirc: Action Editor");
98
+        setTitle("Action Editor");
99
 
99
 
100
         this.group = group;
100
         this.group = group;
101
         this.action = action;
101
         this.action = action;

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/actionsmanager/ActionsManagerDialog.java View File

121
         layoutComponents();
121
         layoutComponents();
122
 
122
 
123
         setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
123
         setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
124
-        setTitle("DMDirc: Actions Manager");
124
+        setTitle("Actions Manager");
125
         setResizable(false);
125
         setResizable(false);
126
     }
126
     }
127
 
127
 

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerDialog.java View File

95
     private AliasManagerDialog(final Window parentWindow) {
95
     private AliasManagerDialog(final Window parentWindow) {
96
         super(parentWindow, ModalityType.MODELESS);
96
         super(parentWindow, ModalityType.MODELESS);
97
 
97
 
98
-        setTitle("DMDirc: Alias manager");
98
+        setTitle("Alias manager");
99
 
99
 
100
         selectedRow = -1;
100
         selectedRow = -1;
101
 
101
 

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/error/ErrorListDialog.java View File

84
     public ErrorListDialog(final MainFrame mainFrame) {
84
     public ErrorListDialog(final MainFrame mainFrame) {
85
         super(mainFrame, ModalityType.MODELESS);
85
         super(mainFrame, ModalityType.MODELESS);
86
 
86
 
87
-        setTitle("DMDirc: Error list");
87
+        setTitle("Error list");
88
         setMinimumSize(new Dimension(600, 550));
88
         setMinimumSize(new Dimension(600, 550));
89
 
89
 
90
         tableModel = new ErrorTableModel();
90
         tableModel = new ErrorTableModel();

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/sslcertificate/SSLCertificateDialog.java View File

82
         layoutComponents();
82
         layoutComponents();
83
 
83
 
84
         setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
84
         setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
85
-        setTitle("DMDirc: Certificate Information");
85
+        setTitle("Certificate Information");
86
         chain.setSelectedIndex(0);
86
         chain.setSelectedIndex(0);
87
     }
87
     }
88
 
88
 

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/updater/SwingRestartDialog.java View File

78
         this.mainFrame = mainFrame;
78
         this.mainFrame = mainFrame;
79
         this.cause = cause;
79
         this.cause = cause;
80
 
80
 
81
-        setTitle("DMDirc: Restart needed");
81
+        setTitle("Restart needed");
82
         setDefaultCloseOperation(DISPOSE_ON_CLOSE);
82
         setDefaultCloseOperation(DISPOSE_ON_CLOSE);
83
         
83
         
84
         initComponents();
84
         initComponents();

+ 1
- 1
src/com/dmdirc/addons/ui_swing/dialogs/url/URLDialog.java View File

72
         layoutComponents();
72
         layoutComponents();
73
         addListeners();
73
         addListeners();
74
 
74
 
75
-        setTitle("DMDirc: Unknown URL Protocol");
75
+        setTitle("Unknown URL Protocol");
76
     }
76
     }
77
 
77
 
78
     /**
78
     /**

Loading…
Cancel
Save