org.herac.tuxguitar.gui.system.config.items
Class StylesOption

java.lang.Object
  extended by SelectionAdapter
      extended by org.herac.tuxguitar.gui.system.config.items.Option
          extended by org.herac.tuxguitar.gui.system.config.items.StylesOption

public class StylesOption
extends Option


Field Summary
protected  Button defaultFontButton
           
protected  FontData defaultFontData
           
protected  boolean initialized
           
protected  org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor linesColorButton
           
protected  Button lyricFontButton
           
protected  FontData lyricFontData
           
protected  Button noteFontButton
           
protected  FontData noteFontData
           
protected  org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor playNoteColorButton
           
protected  Button printerDefaultFontButton
           
protected  FontData printerDefaultFontData
           
protected  Button printerLyricFontButton
           
protected  FontData printerLyricFontData
           
protected  Button printerNoteFontButton
           
protected  FontData printerNoteFontData
           
protected  Button printerTextFontButton
           
protected  FontData printerTextFontData
           
protected  Button printerTSFontButton
           
protected  FontData printerTSFontData
           
protected  org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor scoreNoteColorButton
           
protected  org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor tabNoteColorButton
           
protected  Button textFontButton
           
protected  FontData textFontData
           
protected  Button timeSignatureFontButton
           
protected  FontData timeSignatureFontData
           
 
Fields inherited from class org.herac.tuxguitar.gui.system.config.items.Option
DEFAULT_INDENT
 
Constructor Summary
StylesOption(TGConfigEditor configEditor, ToolBar toolBar, Composite parent)
           
 
Method Summary
 void applyConfig(boolean force)
           
protected  void copyFontData(FontData src, FontData dst)
           
protected  void copyRGB(RGB src, RGB dst)
           
 void createOption()
           
protected  void loadColor(org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor button, RGB rgb)
           
protected  void loadConfig()
           
protected  void loadFontData(FontData src, FontData dst, Button button)
           
 GridData makeButtonData()
           
protected  void setButtonFontData(Button button, FontData fontData)
           
 void updateConfig()
           
 void updateDefaults()
           
 
Methods inherited from class org.herac.tuxguitar.gui.system.config.items.Option
addSyncThread, computeSize, computeSize, dispose, getComposite, getConfig, getDefaults, getDisplay, getEditor, getGroupData, getShell, getTabbedData, getTabbedData, getTabbedData, getTabbedData, getTabbedData, getToolItem, isDisposed, loadCursor, makeGridData, makeGridData, pack, setVisible, showImageLabel, showLabel, showLabel, showLabel, widgetSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

protected boolean initialized

defaultFontData

protected FontData defaultFontData

noteFontData

protected FontData noteFontData

timeSignatureFontData

protected FontData timeSignatureFontData

textFontData

protected FontData textFontData

lyricFontData

protected FontData lyricFontData

printerDefaultFontData

protected FontData printerDefaultFontData

printerNoteFontData

protected FontData printerNoteFontData

printerTSFontData

protected FontData printerTSFontData

printerTextFontData

protected FontData printerTextFontData

printerLyricFontData

protected FontData printerLyricFontData

defaultFontButton

protected Button defaultFontButton

noteFontButton

protected Button noteFontButton

timeSignatureFontButton

protected Button timeSignatureFontButton

textFontButton

protected Button textFontButton

lyricFontButton

protected Button lyricFontButton

printerDefaultFontButton

protected Button printerDefaultFontButton

printerNoteFontButton

protected Button printerNoteFontButton

printerTSFontButton

protected Button printerTSFontButton

printerTextFontButton

protected Button printerTextFontButton

printerLyricFontButton

protected Button printerLyricFontButton

scoreNoteColorButton

protected org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor scoreNoteColorButton

tabNoteColorButton

protected org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor tabNoteColorButton

playNoteColorButton

protected org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor playNoteColorButton

linesColorButton

protected org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor linesColorButton
Constructor Detail

StylesOption

public StylesOption(TGConfigEditor configEditor,
                    ToolBar toolBar,
                    Composite parent)
Method Detail

createOption

public void createOption()
Specified by:
createOption in class Option

loadFontData

protected void loadFontData(FontData src,
                            FontData dst,
                            Button button)

loadColor

protected void loadColor(org.herac.tuxguitar.gui.system.config.items.StylesOption.ButtonColor button,
                         RGB rgb)

setButtonFontData

protected void setButtonFontData(Button button,
                                 FontData fontData)

copyFontData

protected void copyFontData(FontData src,
                            FontData dst)

copyRGB

protected void copyRGB(RGB src,
                       RGB dst)

loadConfig

protected void loadConfig()

makeButtonData

public GridData makeButtonData()

updateConfig

public void updateConfig()
Specified by:
updateConfig in class Option

updateDefaults

public void updateDefaults()
Specified by:
updateDefaults in class Option

applyConfig

public void applyConfig(boolean force)
Specified by:
applyConfig in class Option