public class DecompileConfigView
extends javax.swing.JDialog
This class provides the configuration window for decompile options.
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JTextArea |
areaGlobalsStr |
(package private) MidicaButton |
btnAddGlobalAtTick |
(package private) MidicaButton |
btnAddGlobalTicks |
(package private) MidicaButton |
btnAllTicks |
(package private) MidicaButton |
btnRestore |
(package private) MidicaButton |
btnRestoreDefaults |
(package private) MidicaButton |
btnSave |
(package private) javax.swing.JCheckBox |
cbxAddConfig |
(package private) javax.swing.JCheckBox |
cbxAddScore |
(package private) javax.swing.JCheckBox |
cbxAddStatistics |
(package private) javax.swing.JCheckBox |
cbxAddStrategyStat |
(package private) javax.swing.JCheckBox |
cbxAddTickComments |
(package private) javax.swing.JCheckBox |
cbxAllSyllablesOrphaned |
(package private) javax.swing.JComboBox<NamedInteger> |
cbxCtrlChangeMode |
(package private) javax.swing.JCheckBox |
cbxKarOneChannel |
(package private) javax.swing.JComboBox<NamedInteger> |
cbxLengthStrategy |
(package private) javax.swing.JComboBox<NamedInteger> |
cbxMaxTargetTicksOn |
(package private) javax.swing.JComboBox<NamedInteger> |
cbxMinTargetTicksOn |
(package private) javax.swing.JComboBox<NamedInteger> |
cbxOrphanedSyllables |
(package private) javax.swing.JCheckBox |
cbxPredefinedChords |
(package private) javax.swing.JCheckBox |
cbxUseDottedNote |
(package private) javax.swing.JCheckBox |
cbxUseDottedRest |
(package private) javax.swing.JCheckBox |
cbxUseKaraoke |
(package private) javax.swing.JCheckBox |
cbxUseTriplettedNote |
(package private) javax.swing.JCheckBox |
cbxUseTriplettedRest |
private DecompileConfigController |
controller |
static java.lang.String |
DOC_ID |
static java.lang.Integer |
DOC_ID_ADD_GLOBAL_AT_TICK |
static java.lang.Integer |
DOC_ID_ADD_GLOBAL_EACH |
static java.lang.Integer |
DOC_ID_ADD_GLOBAL_START |
static java.lang.Integer |
DOC_ID_ADD_GLOBAL_STOP |
static java.lang.Integer |
DOC_ID_UPDATE_GLOBAL_ALL |
(package private) javax.swing.JTextField |
fldAddGlobalAtTick |
(package private) javax.swing.JTextField |
fldAddGlobalsEachTick |
(package private) javax.swing.JTextField |
fldAddGlobalsStartTick |
(package private) javax.swing.JTextField |
fldAddGlobalsStopTick |
(package private) javax.swing.JTextField |
fldChordNoteOffTolerance |
(package private) javax.swing.JTextField |
fldChordNoteOnTolerance |
(package private) javax.swing.JTextField |
fldChordVelocityTolerance |
(package private) javax.swing.JTextField |
fldDurationRatioTolerance |
(package private) javax.swing.JTextField |
fldLengthTickTolerance |
(package private) javax.swing.JTextField |
fldMaxDurToKeep |
(package private) javax.swing.JTextField |
fldMinDurToKeep |
private DecompileConfigIcon |
icon |
private static long |
serialVersionUID |
(package private) javax.swing.JTabbedPane |
tabs |
private static int |
TEXT_AREA_HEIGHT |
private static int |
TEXT_FIELD_HEIGHT |
private static int |
TEXT_FIELD_WIDTH |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
DecompileConfigView(DecompileConfigIcon dcIcon,
javax.swing.JDialog owner)
Creates the window for the decompile configuration.
|
Modifier and Type | Method and Description |
---|---|
private void |
addKeyBindings()
Adds key bindings to the info window.
|
private java.awt.Container |
createButtonArea()
Creates the area for buttons.
|
private java.awt.Container |
createChordArea(java.lang.String tabKey)
Creates the area for chord settings.
|
private java.awt.GridBagConstraints[] |
createConstraintsForArea()
Creates
GridBagConstraints that can be used for the sub areas of the config file. |
private java.awt.Container |
createCtrlChangeArea(java.lang.String tabKey)
Creates the area for control change settings.
|
private java.awt.Container |
createDebugArea(java.lang.String tabKey)
Creates the area for debug settings.
|
private java.awt.Container |
createKaraokeArea(java.lang.String tabKey)
Creates the area for karaoke settings.
|
private java.awt.Container |
createNoteLengthArea(java.lang.String tabKey)
Creates the area for note length calculation settings.
|
private java.awt.Container |
createNoteRestArea(java.lang.String tabKey)
Creates the area for notes/rests settings.
|
private java.awt.Container |
createSliceArea(java.lang.String tabKey)
Creates the area for adding additional global commands.
|
private javax.swing.JComponent |
createTabInfo(java.lang.String tabKey,
java.lang.String infoKey)
Creates the info area for a tab.
|
private void |
init()
Initializes the content of the window.
|
void |
open()
Opens the window.
|
private java.awt.Container |
wrapTabContent(java.awt.Container area)
Wraps the given content of a tab inside another container.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final long serialVersionUID
public static final java.lang.String DOC_ID
public static final java.lang.Integer DOC_ID_ADD_GLOBAL_AT_TICK
public static final java.lang.Integer DOC_ID_ADD_GLOBAL_EACH
public static final java.lang.Integer DOC_ID_ADD_GLOBAL_START
public static final java.lang.Integer DOC_ID_ADD_GLOBAL_STOP
public static final java.lang.Integer DOC_ID_UPDATE_GLOBAL_ALL
private static final int TEXT_FIELD_WIDTH
private static final int TEXT_FIELD_HEIGHT
private static final int TEXT_AREA_HEIGHT
private DecompileConfigController controller
private DecompileConfigIcon icon
javax.swing.JCheckBox cbxAddTickComments
javax.swing.JCheckBox cbxAddConfig
javax.swing.JCheckBox cbxAddScore
javax.swing.JCheckBox cbxAddStatistics
javax.swing.JCheckBox cbxAddStrategyStat
javax.swing.JComboBox<NamedInteger> cbxLengthStrategy
javax.swing.JComboBox<NamedInteger> cbxMinTargetTicksOn
javax.swing.JComboBox<NamedInteger> cbxMaxTargetTicksOn
javax.swing.JTextField fldMinDurToKeep
javax.swing.JTextField fldMaxDurToKeep
javax.swing.JTextField fldLengthTickTolerance
javax.swing.JTextField fldDurationRatioTolerance
javax.swing.JCheckBox cbxPredefinedChords
javax.swing.JTextField fldChordNoteOnTolerance
javax.swing.JTextField fldChordNoteOffTolerance
javax.swing.JTextField fldChordVelocityTolerance
javax.swing.JCheckBox cbxUseDottedNote
javax.swing.JCheckBox cbxUseDottedRest
javax.swing.JCheckBox cbxUseTriplettedNote
javax.swing.JCheckBox cbxUseTriplettedRest
javax.swing.JCheckBox cbxUseKaraoke
javax.swing.JCheckBox cbxAllSyllablesOrphaned
javax.swing.JComboBox<NamedInteger> cbxOrphanedSyllables
javax.swing.JCheckBox cbxKarOneChannel
javax.swing.JComboBox<NamedInteger> cbxCtrlChangeMode
javax.swing.JTextField fldAddGlobalAtTick
MidicaButton btnAddGlobalAtTick
javax.swing.JTextField fldAddGlobalsEachTick
javax.swing.JTextField fldAddGlobalsStartTick
javax.swing.JTextField fldAddGlobalsStopTick
MidicaButton btnAddGlobalTicks
javax.swing.JTextArea areaGlobalsStr
MidicaButton btnAllTicks
javax.swing.JTabbedPane tabs
MidicaButton btnRestoreDefaults
MidicaButton btnRestore
MidicaButton btnSave
public DecompileConfigView(DecompileConfigIcon dcIcon, javax.swing.JDialog owner)
Creates the window for the decompile configuration.
dcIcon
- the icon to open this windowowner
- the file selection windowpublic void open()
Opens the window.
private void init()
Initializes the content of the window.
private java.awt.Container wrapTabContent(java.awt.Container area)
Wraps the given content of a tab inside another container. This is used to position the tab content correctly inside the tab.
area
- the area to be wrappedprivate java.awt.Container createDebugArea(java.lang.String tabKey)
Creates the area for debug settings.
tabKey
- language key for the tab nameprivate java.awt.Container createNoteLengthArea(java.lang.String tabKey)
Creates the area for note length calculation settings.
tabKey
- language key for the tab nameprivate java.awt.Container createChordArea(java.lang.String tabKey)
Creates the area for chord settings.
tabKey
- language key for the tab nameprivate java.awt.Container createNoteRestArea(java.lang.String tabKey)
Creates the area for notes/rests settings.
tabKey
- language key for the tab nameprivate java.awt.Container createKaraokeArea(java.lang.String tabKey)
Creates the area for karaoke settings.
tabKey
- language key for the tab nameprivate java.awt.Container createCtrlChangeArea(java.lang.String tabKey)
Creates the area for control change settings.
tabKey
- language key for the tab nameprivate java.awt.Container createSliceArea(java.lang.String tabKey)
Creates the area for adding additional global commands.
tabKey
- language key for the tab nameprivate java.awt.Container createButtonArea()
Creates the area for buttons.
private java.awt.GridBagConstraints[] createConstraintsForArea()
Creates GridBagConstraints
that can be used for the sub areas of the config file.
Returns the following elements:
private javax.swing.JComponent createTabInfo(java.lang.String tabKey, java.lang.String infoKey)
Creates the info area for a tab.
tabKey
- language key for the titled border (same as the tab name)infoKey
- language key for the info textprivate void addKeyBindings()
Adds key bindings to the info window.