// Lay out this dialog.
Panel tempPanel = new Panel();
tempPanel.setLayout(new GridLayout(0, 1));
// Add the setting controls.
minimapEnabled = new Checkbox(Messages
.getString("CommonSettingsDialog.minimapEnabled")); //$NON-NLS-1$
tempPanel.add(minimapEnabled);
autoEndFiring = new Checkbox(Messages
.getString("CommonSettingsDialog.autoEndFiring")); //$NON-NLS-1$
tempPanel.add(autoEndFiring);
autoDeclareSearchlight = new Checkbox(Messages
.getString("CommonSettingsDialog.autoDeclareSearchlight")); //$NON-NLS-1$
tempPanel.add(autoDeclareSearchlight);
nagForMASC = new Checkbox(Messages
.getString("CommonSettingsDialog.nagForMASC")); //$NON-NLS-1$
tempPanel.add(nagForMASC);
mouseWheelZoom = new Checkbox(Messages
.getString("CommonSettingsDialog.mouseWheelZoom")); //$NON-NLS-1$
tempPanel.add(mouseWheelZoom);
nagForPSR = new Checkbox(Messages
.getString("CommonSettingsDialog.nagForPSR")); //$NON-NLS-1$
tempPanel.add(nagForPSR);
nagForNoAction = new Checkbox(Messages
.getString("CommonSettingsDialog.nagForNoAction")); //$NON-NLS-1$
tempPanel.add(nagForNoAction);
animateMove = new Checkbox(Messages
.getString("CommonSettingsDialog.animateMove")); //$NON-NLS-1$
tempPanel.add(animateMove);
showWrecks = new Checkbox(Messages
.getString("CommonSettingsDialog.showWrecks")); //$NON-NLS-1$
tempPanel.add(showWrecks);
soundMute = new Checkbox(Messages
.getString("CommonSettingsDialog.soundMute")); //$NON-NLS-1$
tempPanel.add(soundMute);
showMapHexPopup = new Checkbox(Messages
.getString("CommonSettingsDialog.showMapHexPopup")); //$NON-NLS-1$
tempPanel.add(showMapHexPopup);
Panel panSetting;
panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
panSetting.add(new Label(Messages
.getString("CommonSettingsDialog.tooltipDelay"))); //$NON-NLS-1$
tooltipDelay = new TextField(4);
panSetting.add(tooltipDelay);
tempPanel.add(panSetting);
panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
unitStartChar = new Choice();
// Add option for "A, B, C, D..."
unitStartChar.addItem("\u0041, \u0042, \u0043, \u0044..."); //$NON-NLS-1$
// Add option for "ALPHA, BETA, GAMMA, DELTA..."
unitStartChar.addItem("\u0391, \u0392, \u0393, \u0394..."); //$NON-NLS-1$
// Add option for "alpha, beta, gamma, delta..."
unitStartChar.addItem("\u03B1, \u03B2, \u03B3, \u03B4..."); //$NON-NLS-1$
panSetting.add(unitStartChar);
panSetting.add(new Label(Messages
.getString("CommonSettingsDialog.protoMechUnitCodes"))); //$NON-NLS-1$
panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
panSetting.add(new Label(Messages
.getString("CommonSettingsDialog.pathFiderTimeLimit"))); //$NON-NLS-1$
maxPathfinderTime = new TextField(5);
panSetting.add(maxPathfinderTime);
tempPanel.add(panSetting);
getFocus = new Checkbox(Messages
.getString("CommonSettingsDialog.getFocus")); //$NON-NLS-1$
tempPanel.add(getFocus);
tempPanel.add(panSetting);
// player-specific settings
defaultAutoejectDisabled = new Checkbox(Messages
.getString("CommonSettingsDialog.defaultAutoejectDisabled")); //$NON-NLS-1$
defaultAutoejectDisabled.addItemListener(this);
tempPanel.add(defaultAutoejectDisabled);
useAverageSkills = new Checkbox(Messages
.getString("CommonSettingsDialog.useAverageSkills")); //$NON-NLS-1$
useAverageSkills.addItemListener(this);
tempPanel.add(useAverageSkills);
showUnitId = new Checkbox(Messages
.getString("CommonSettingsDialog.showUnitId")); //$NON-NLS-1$
showUnitId.addItemListener(this);
tempPanel.add(showUnitId);
// client-side gameLog settings
keepGameLog = new Checkbox(Messages
.getString("CommonSettingsDialog.keepGameLog")); //$NON-NLS-1$
keepGameLog.addItemListener(this);
tempPanel.add(keepGameLog);
panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
panSetting.add(new Label(Messages
.getString("CommonSettingsDialog.logFileName"))); //$NON-NLS-1$
gameLogFilename = new TextField(15);
panSetting.add(gameLogFilename);
tempPanel.add(panSetting);
panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
panSetting.add(new Label(Messages
.getString("CommonSettingsDialog.tileset"))); //$NON-NLS-1$
tileSetChoice = new Choice();
panSetting.add(tileSetChoice);
tempPanel.add(panSetting);
/*
* panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
* panSetting.add( new
* Label(Messages.getString("CommonSettingsDialog.logFileMaxSize")) );
* //$NON-NLS-1$ gameLogMaxSize = new TextField(5); panSetting.add(
* gameLogMaxSize ); tempPanel.add( panSetting );
*/
stampFilenames = new Checkbox(Messages
.getString("CommonSettingsDialog.stampFilenames")); //$NON-NLS-1$
stampFilenames.addItemListener(this);
tempPanel.add(stampFilenames);
panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
panSetting.add(new Label(Messages
.getString("CommonSettingsDialog.stampFormat"))); //$NON-NLS-1$
stampFormat = new TextField(15);
panSetting.add(stampFormat);
tempPanel.add(panSetting);
// scrolling options
tempPanel.add(new AdvancedLabel(Messages
.getString("CommonSettingsDialog.mapScrollText"))); //$NON-NLS-1$
rightDragScroll = new Checkbox(Messages
.getString("CommonSettingsDialog.rightDragScroll")); //$NON-NLS-1$
tempPanel.add(rightDragScroll);
ctlScroll = new Checkbox(Messages
.getString("CommonSettingsDialog.ctlScroll")); //$NON-NLS-1$
tempPanel.add(ctlScroll);
clickEdgeScroll = new Checkbox(Messages
.getString("CommonSettingsDialog.clickEdgeScroll")); //$NON-NLS-1$
tempPanel.add(clickEdgeScroll);
alwaysRightClickScroll = new Checkbox(Messages
.getString("CommonSettingsDialog.alwaysRightClickScroll")); //$NON-NLS-1$
tempPanel.add(alwaysRightClickScroll);
autoEdgeScroll = new Checkbox(Messages
.getString("CommonSettingsDialog.autoEdgeScroll")); //$NON-NLS-1$
tempPanel.add(autoEdgeScroll);
panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
panSetting.add(new Label(Messages
.getString("CommonSettingsDialog.scrollSesitivity"))); //$NON-NLS-1$
scrollSensitivity = new TextField(4);
panSetting.add(scrollSensitivity);
tempPanel.add(panSetting);
// locale settings
panSetting = new Panel(new FlowLayout(FlowLayout.LEFT));
panSetting.add(new Label(Messages
.getString("CommonSettingsDialog.locale"))); //$NON-NLS-1$
// locale = new TextField(8);
locale = new Choice();
locale.add(Messages.getString("CommonSettingsDialog.locale.English")); //$NON-NLS-1$
locale.add(Messages.getString("CommonSettingsDialog.locale.Deutsch")); //$NON-NLS-1$
locale.add(Messages.getString("CommonSettingsDialog.locale.Russian")); //$NON-NLS-1$
panSetting.add(locale);
tempPanel.add(panSetting);
// chatloungtab setting
chatloungeTabs = new Checkbox(Messages
.getString("CommonSettingsDialog.chatloungeTabs")); //$NON-NLS-1$
tempPanel.add(chatloungeTabs);
// showMapsheets setting
showMapsheets = new Checkbox(Messages
.getString("CommonSettingsDialog.showMapsheets")); //$NON-NLS-1$
tempPanel.add(showMapsheets);
return tempPanel;
}