org.herac.tuxguitar.gui.actions.track
Class TrackPropertiesAction

java.lang.Object
  extended by org.herac.tuxguitar.gui.actions.ActionAdapter
      extended by org.herac.tuxguitar.gui.actions.Action
          extended by org.herac.tuxguitar.gui.actions.track.TrackPropertiesAction

public class TrackPropertiesAction
extends Action


Field Summary
protected  Shell dialog
           
protected  Combo instrumentCombo
           
static java.lang.String NAME
           
protected  Text nameText
           
protected  Combo offsetCombo
           
protected  Button percussionCheckBox
           
protected  Combo[] stringCombos
           
protected  int stringCount
           
protected  Spinner stringCountSpinner
           
protected  java.util.List tempStrings
           
protected  TGColor trackColor
           
 
Fields inherited from class org.herac.tuxguitar.gui.actions.Action
AUTO_LOCK, AUTO_UNLOCK, AUTO_UPDATE, DISABLE_ON_PLAYING, KEY_BINDING_AVAILABLE
 
Constructor Summary
TrackPropertiesAction()
           
 
Method Summary
protected  int execute(TypedEvent e)
           
protected  java.lang.String[] getAllValueNames()
           
 GridData getButtonsData()
           
protected  boolean hasInfoChanges(TGTrackImpl track, java.lang.String name, TGColor color, int offset)
           
protected  boolean hasInstrumentChanges(TGTrackImpl track, int instrument, boolean percussion)
           
protected  boolean hasTuningChanges(TGTrackImpl track, java.util.List newStrings)
           
protected  void initTempStrings(java.util.List realStrings)
           
protected  void setDefaultTuning()
           
 void showDialog(Shell shell)
           
protected  void updateTrackProperties()
           
protected  void updateTuningGroup(boolean enabled)
           
 
Methods inherited from class org.herac.tuxguitar.gui.actions.Action
addUndoableEdit, fireUpdate, getEditor, getFlags, getName, getSongManager, isKeyBindingAvailable, process, updateTablature
 
Methods inherited from class org.herac.tuxguitar.gui.actions.ActionAdapter
menuHidden, menuShown, mouseDoubleClick, mouseDown, mouseUp, shellActivated, shellClosed, shellDeactivated, shellDeiconified, shellIconified, widgetDefaultSelected, widgetSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

dialog

protected Shell dialog

nameText

protected Text nameText

trackColor

protected TGColor trackColor

tempStrings

protected java.util.List tempStrings

stringCountSpinner

protected Spinner stringCountSpinner

stringCombos

protected Combo[] stringCombos

offsetCombo

protected Combo offsetCombo

stringCount

protected int stringCount

instrumentCombo

protected Combo instrumentCombo

percussionCheckBox

protected Button percussionCheckBox
Constructor Detail

TrackPropertiesAction

public TrackPropertiesAction()
Method Detail

execute

protected int execute(TypedEvent e)
Specified by:
execute in class Action

showDialog

public void showDialog(Shell shell)

getButtonsData

public GridData getButtonsData()

updateTrackProperties

protected void updateTrackProperties()

hasInfoChanges

protected boolean hasInfoChanges(TGTrackImpl track,
                                 java.lang.String name,
                                 TGColor color,
                                 int offset)

hasTuningChanges

protected boolean hasTuningChanges(TGTrackImpl track,
                                   java.util.List newStrings)

hasInstrumentChanges

protected boolean hasInstrumentChanges(TGTrackImpl track,
                                       int instrument,
                                       boolean percussion)

updateTuningGroup

protected void updateTuningGroup(boolean enabled)

initTempStrings

protected void initTempStrings(java.util.List realStrings)

setDefaultTuning

protected void setDefaultTuning()

getAllValueNames

protected java.lang.String[] getAllValueNames()