Skip to content

Commit ab83380

Browse files
committed
#4 Whitelabel engine
Signed-off-by: Kaur Palang <kaur.palang@brightcodecompany.com>
1 parent 06c3782 commit ab83380

File tree

62 files changed

+6033
-5751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6033
-5751
lines changed

client/src/com/mirth/connect/client/ui/AboutMirth.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void loadContent() {
5555
StringBuilder content = new StringBuilder();
5656

5757
if (PlatformUI.SERVER_VERSION != null) {
58-
content.append("Mirth Connect Server " + PlatformUI.SERVER_VERSION + "\n\n");
58+
content.append(String.format("%s Server %s\n\n", BrandingConstants.PRODUCT_NAME, PlatformUI.SERVER_VERSION));
5959
}
6060

6161
if (PlatformUI.BUILD_DATE != null) {
@@ -116,7 +116,7 @@ private void initComponents() {
116116

117117
jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
118118
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
119-
jLabel2.setText("About Mirth Connect");
119+
jLabel2.setText(String.format("About %s", BrandingConstants.PRODUCT_NAME));
120120

121121
javax.swing.GroupLayout mirthHeadingPanel1Layout = new javax.swing.GroupLayout(mirthHeadingPanel1);
122122
mirthHeadingPanel1.setLayout(mirthHeadingPanel1Layout);
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package com.mirth.connect.client.ui;
2+
3+
import javax.swing.ImageIcon;
4+
5+
public class BrandingConstants {
6+
7+
public static final String PRODUCT_NAME = "OpenIntegrationEngine";
8+
9+
/*
10+
Sets the title of the Administrator window
11+
*/
12+
public static final String WINDOW_TITLE = "OpenIntegrationEngine Administrator";
13+
14+
public static final String ISSUE_TRACKER_LOCATION = "https://github.com/openintegrationengine/engine/issues";
15+
16+
17+
// The URL that is opened when clicking the bottom image in Login window
18+
// The one where you're asked for server URL, username, and password
19+
public static final String COMPANY_URL = "https://github.com/openintegrationengine";
20+
public static final String COMPANY_TOOLTIP = "OpenIntegrationEngine";
21+
22+
23+
// The URL that is opened when clicking the image in the Top right corner of the main administrator window
24+
public static final String PRODUCT_URL = "https://github.com/openintegrationengine";
25+
public static final String PRODUCT_TOOLTIP = "OpenIntegrationEngine";
26+
27+
28+
// The URL that is opened when clicking "Help" button in Administrator
29+
public static String HELP_URL_LOCATION = "https://github.com/OpenIntegrationEngine/engine/discussions";
30+
31+
// The "More info" in Server settings "Provide usage statistics"
32+
public static final String PRIVACY_URL = "https://github.com/openintegrationengine";
33+
public static final String PRIVACY_TOOLTIP = "Privacy Information";
34+
35+
// The URL that is opened when clicking "Visit + PRODUCT_NAME" button in Administrator
36+
public static final String HOMEPAGE_URL = "https://openintegrationengine.org/";
37+
38+
// Icons
39+
public static final ImageIcon FAVICON = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/branding/rendered/oie_logo_favicon.png"));
40+
// These images must be at 215px x 30px scale
41+
public static final ImageIcon LOGO = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/branding/rendered/oie_logo_color.png"));
42+
public static final ImageIcon LOGO_GRAY = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/branding/rendered/oie_logo_white.png"));
43+
}

client/src/com/mirth/connect/client/ui/ChannelPanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public ChannelPanel() {
217217
parent.addTask(TaskConstants.CHANNEL_DEPLOY_DEBUG, "Debug Channel", "Deploys the currently selected channel in debug mode.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/bug_go.png")), channelTasks, channelPopupMenu, this);
218218
parent.addTask(TaskConstants.CHANNEL_DEPLOY, "Deploy Channel", "Deploys the currently selected channel.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/arrow_redo.png")), channelTasks, channelPopupMenu, this);
219219
parent.addTask(TaskConstants.CHANNEL_EDIT_GLOBAL_SCRIPTS, "Edit Global Scripts", "Edit scripts that are not channel specific.", "G", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/script_edit.png")), channelTasks, channelPopupMenu, this);
220-
parent.addTask(TaskConstants.CHANNEL_EDIT_CODE_TEMPLATES, "Edit Code Templates", "Create and manage templates to be used in JavaScript throughout Mirth Connect.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/page_edit.png")), channelTasks, channelPopupMenu, this);
220+
parent.addTask(TaskConstants.CHANNEL_EDIT_CODE_TEMPLATES, "Edit Code Templates", String.format("Create and manage templates to be used in JavaScript throughout %s.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/page_edit.png")), channelTasks, channelPopupMenu, this);
221221
parent.addTask(TaskConstants.CHANNEL_NEW_CHANNEL, "New Channel", "Create a new channel.", "N", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/application_form_add.png")), channelTasks, channelPopupMenu, this);
222222
parent.addTask(TaskConstants.CHANNEL_IMPORT_CHANNEL, "Import Channel", "Import a channel from an XML file.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/report_go.png")), channelTasks, channelPopupMenu, this);
223223
parent.addTask(TaskConstants.CHANNEL_EXPORT_ALL_CHANNELS, "Export All Channels", "Export all of the channels to XML files.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/report_disk.png")), channelTasks, channelPopupMenu, this);
@@ -2659,7 +2659,7 @@ private String getMissingExtensions(InvalidChannel channel) {
26592659
StringBuilder builder = new StringBuilder();
26602660

26612661
if (!missingConnectors.isEmpty()) {
2662-
builder.append("\n\nYour Mirth Connect installation is missing required connectors for this channel:\n ");
2662+
builder.append(String.format("\n\nYour %s installation is missing required connectors for this channel:\n ", BrandingConstants.PRODUCT_NAME));
26632663
builder.append(StringUtils.join(missingConnectors.toArray(), "\n "));
26642664
builder.append("\n\n");
26652665
}
@@ -2668,7 +2668,7 @@ private String getMissingExtensions(InvalidChannel channel) {
26682668
if (missingConnectors.isEmpty()) {
26692669
builder.append("\n\n");
26702670
}
2671-
builder.append("Your Mirth Connect installation is missing required data types for this channel:\n ");
2671+
builder.append(String.format("Your %s installation is missing required data types for this channel:\n ", BrandingConstants.PRODUCT_NAME));
26722672
builder.append(StringUtils.join(missingDataTypes.toArray(), "\n "));
26732673
builder.append("\n\n");
26742674
}

client/src/com/mirth/connect/client/ui/ChannelSetup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ private void loadChannelInfo() {
780780
encryptAttachmentsCheckBox.setSelected(properties.isEncryptAttachments());
781781
encryptCustomMetaDataCheckBox.setSelected(properties.isEncryptCustomMetaData());
782782

783-
// Fix dataTypes and properties not set by previous versions of Mirth Connect
783+
// Fix dataTypes and properties not set by previous versions
784784
fixNullDataTypesAndProperties();
785785

786786
// load message storage settings

client/src/com/mirth/connect/client/ui/CustomBannerPanelDialog.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import javax.swing.AbstractButton;
2020
import javax.swing.BorderFactory;
21-
import javax.swing.ImageIcon;
2221
import javax.swing.JButton;
2322
import javax.swing.JDialog;
2423
import javax.swing.JFrame;
@@ -58,7 +57,7 @@ public CustomBannerPanelDialog(JFrame parent, String title, String text) {
5857
private void initComponents() {
5958
setLayout(new MigLayout("insets 12")); // layout sets 12 pixel border
6059
setTitle(title);
61-
setIconImage(UIConstants.MIRTH_FAVICON.getImage());
60+
setIconImage(BrandingConstants.FAVICON.getImage());
6261
getContentPane().setBackground(UIConstants.BACKGROUND_COLOR); // set dialog box to background color
6362
setBackground(UIConstants.BACKGROUND_COLOR); // get all other backgrounds for each piece
6463

client/src/com/mirth/connect/client/ui/ErrorDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
100100
question.setBackground(new java.awt.Color(224, 223, 227));
101101
question.setBorder(null);
102102
question.setEditable(false);
103-
question.setText("An unexpected error has occurred. If this is a severe error and you are on NextGen Healthcare Support, please contact the NextGen Healthcare Help Desk.");
103+
question.setText("An unexpected error has occurred. Check \"mirth.log\" and client console output for further details.");
104104
question.setFocusable(false);
105105
questionPane.setViewportView(question);
106106

client/src/com/mirth/connect/client/ui/FirstLoginDialog.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
144144

145145
jTextPane1.setEditable(false);
146146
jTextPane1.setBackground(new java.awt.Color(250, 250, 210));
147-
jTextPane1.setText("You may now customize your Mirth Connect user account information. You also have the option of changing your account password.");
147+
jTextPane1.setText(String.format("You may now customize your %s user account information. You also have the option of changing your account password.", BrandingConstants.PRODUCT_NAME));
148148
jTextPane1.setAutoscrolls(false);
149149
jTextPane1.setDisabledTextColor(new java.awt.Color(0, 0, 0));
150150
jTextPane1.setEnabled(false);
@@ -166,7 +166,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
166166
userConsentCheckBox.setToolTipText("<html></html>");
167167

168168
contentTextPane.setContentType("text/html");
169-
contentTextPane.setText("<html>&nbsp;&nbsp;&nbsp;&nbsp;For more information on the processing of your personal data, click <a href=\"https://www.nextgen.com/privacy-policy\">here to find our Privacy Policy.</a></html>");
169+
contentTextPane.setText(String.format("<html>&nbsp;&nbsp;&nbsp;&nbsp;For more information on the processing of your personal data, click <a href=\"%s\">here to find our Privacy Policy.</a></html>", BrandingConstants.PRIVACY_URL));
170170

171171
MutableAttributeSet set = new SimpleAttributeSet();
172172
StyleConstants.setLineSpacing(set, 1);

0 commit comments

Comments
 (0)