|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.window.ApplicationWindow
com.groovemanager.gui.EditorWindow
com.groovemanager.app.sse.SimpleSampleEditor
com.groovemanager.app.mc909se.Mc909SampleEditor
This class represents the Mc909 sample editor application
| Nested Class Summary | |
|---|---|
(package private) class |
Mc909SampleEditor.Left909
This class overrides the SampleEditor´s Leftbar with a new one adapted to the needs of the Mc909SampleEditor |
(package private) class |
Mc909SampleEditor.Properties
This class represents the special properties of MC909 sample files. |
| Nested classes inherited from class com.groovemanager.app.sse.SimpleSampleEditor |
|---|
SimpleSampleEditor.AudioPlayerPositionReader, SimpleSampleEditor.LeftBar |
| Nested classes inherited from class org.eclipse.jface.window.Window |
|---|
org.eclipse.jface.window.Window.IExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class com.groovemanager.app.sse.SimpleSampleEditor |
|---|
configAction, controlBar, copySource, effectActions, fileCloseAction, fileManager, fileOpenAction, fileSaveAction, fileSaveAsAction, keyListener, left, leftBar, listenToWaveDisplay, listenToZoomWaveForm, mainContent, memoryReader, player, positionReader, readMemory, rightBar, sashForm, style, tabFolder, transportBar, waveContent, zoomAll, zoomIn, zoomOut, zoomSel, zoomWaveDisplay |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
Mc909SampleEditor()
Create a new Mc909SampleEditor in a top level window using the default Filemanager |
|
Mc909SampleEditor(FileManager fileManager)
Create a new Mc909SampleEditor in a top level window |
|
Mc909SampleEditor(org.eclipse.swt.widgets.Shell shell)
Create a new Mc909SampleEditor using the default FileManager |
|
Mc909SampleEditor(org.eclipse.swt.widgets.Shell shell,
FileManager fileManager)
Create a new Mc909SampleEditor |
|
Mc909SampleEditor(org.eclipse.swt.widgets.Shell shell,
int style)
Create a new Mc909SampleEditor using the default FileManager |
|
Mc909SampleEditor(org.eclipse.swt.widgets.Shell shell,
int style,
FileManager fileManager)
Create a new Mc909SampleEditor |
|
| Method Summary | |
|---|---|
protected ConfigAction |
createConfigAction()
Create the action that will be used for "Settings" |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
This methos must be implemented to create the EditorWindow´s contents |
protected void |
createControlBarElements(org.eclipse.swt.widgets.Composite comp)
Create the control bar elements (bottom bar) |
protected void |
createLeftBarElements(org.eclipse.swt.widgets.Composite comp)
Create the elements for the left bar |
(package private) void |
export()
Open the dialog for importing or exporting samples from/to the Mc909 |
(package private) void |
exportRS()
Open the wizard for exporting a Rhythm set to the Mc909 |
void |
fileClosed(java.io.File f)
Notification that the user requested to close a file |
void |
fileOpened(java.io.File f)
Notification that the user desired to open a file. |
(package private) Mc909SampleEditor.Properties |
getActiveProperties()
Get the Properties instance corresponding to the active WaveTab or null, if no WaveTab is currently active |
protected org.eclipse.swt.graphics.Image |
getImage()
Get the icon to be used for this editor |
protected int[] |
getSashFormWeights()
Get the weights to be used for the SashForm |
protected java.lang.String |
getTitle()
Get the title to be used for the window |
(package private) void |
importFile(java.io.File sourceSample)
Import a Sample from the MC909. |
void |
keyPressed(int key)
Notification that a KeyboardKey has been pressed |
void |
keyReleased(int key)
Notification that a KeyboardKey has been released |
void |
newFile()
Notification that the user requested to create a new file. |
| Methods inherited from class com.groovemanager.gui.EditorWindow |
|---|
errorMessage |
| Methods inherited from class org.eclipse.jface.window.ApplicationWindow |
|---|
addMenuBar, addStatusLine, addToolBar, canHandleShellCloseEvent, close, configureShell, createStatusLineManager, createToolBarControl, createToolBarManager, getFont, getMenuBarManager, getStatusLineManager, getSymbolicFontName, getToolBarControl, getToolBarManager, run, setStatus, toolBarChildrenExist |
| Methods inherited from class org.eclipse.jface.window.Window |
|---|
constrainShellSize, create, createShell, getContents, getDefaultImage, getInitialLocation, getInitialSize, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, setBlockOnOpen, setDefaultImage, setExceptionHandler, setReturnCode, setShellStyle, setWindowManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mc909SampleEditor()
public Mc909SampleEditor(FileManager fileManager)
fileManager - The FileManager to usepublic Mc909SampleEditor(org.eclipse.swt.widgets.Shell shell)
shell - The parent shell. May be null to create a
top level window.
public Mc909SampleEditor(org.eclipse.swt.widgets.Shell shell,
FileManager fileManager)
shell - The parent shell. May be null to create a
top level window.fileManager - The FileManager to use
public Mc909SampleEditor(org.eclipse.swt.widgets.Shell shell,
int style)
shell - The parent shell. May be null to create a
top level window.style - The window´s style
public Mc909SampleEditor(org.eclipse.swt.widgets.Shell shell,
int style,
FileManager fileManager)
shell - The parent shell. May be null to create a
top level window.style - The window´s stylefileManager - The FileManager to use| Method Detail |
|---|
protected ConfigAction createConfigAction()
SimpleSampleEditor
createConfigAction in class SimpleSampleEditorSimpleSampleEditor.createConfigAction()protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
EditorWindow
createContents in class SimpleSampleEditorWindow.createContents(org.eclipse.swt.widgets.Composite)protected void createControlBarElements(org.eclipse.swt.widgets.Composite comp)
SimpleSampleEditor
createControlBarElements in class SimpleSampleEditorcomp - The parent compositeSimpleSampleEditor.createControlBarElements(org.eclipse.swt.widgets.Composite)protected void createLeftBarElements(org.eclipse.swt.widgets.Composite comp)
SimpleSampleEditor
createLeftBarElements in class SimpleSampleEditorcomp - The parent CompositeSimpleSampleEditor.createLeftBarElements(org.eclipse.swt.widgets.Composite)void export()
void exportRS()
public void fileClosed(java.io.File f)
FileCloseListener
fileClosed in interface FileCloseListenerfileClosed in class SimpleSampleEditorf - The file to be closedFileCloseListener.fileClosed(java.io.File)public void fileOpened(java.io.File f)
FileOpenListener
fileOpened in interface FileOpenListenerfileOpened in class SimpleSampleEditorf - The file to be openedFileOpenListener.fileOpened(java.io.File)Mc909SampleEditor.Properties getActiveProperties()
null, if no WaveTab is currently active
protected org.eclipse.swt.graphics.Image getImage()
SimpleSampleEditor
getImage in class SimpleSampleEditorSimpleSampleEditor.getImage()protected int[] getSashFormWeights()
SimpleSampleEditor
getSashFormWeights in class SimpleSampleEditorSimpleSampleEditor.getSashFormWeights()protected java.lang.String getTitle()
SimpleSampleEditor
getTitle in class SimpleSampleEditorSimpleSampleEditor.getTitle()
void importFile(java.io.File sourceSample)
throws java.io.IOException,
NotFinishedException
sourceSample - The sample file to import
java.io.IOException - If an I/O error occurs
NotFinishedException - If the Copy process did not finishpublic void keyPressed(int key)
KeyboardKeyListener
keyPressed in interface KeyboardKeyListenerkey - The note value of the key that has been pressed in the range
from 0 to 127KeyboardKeyListener.keyPressed(int)public void keyReleased(int key)
KeyboardKeyListener
keyReleased in interface KeyboardKeyListenerkey - The note value of the key that has been released in the range
from 0 to 127KeyboardKeyListener.keyReleased(int)public void newFile()
FileNewListener
newFile in interface FileNewListenernewFile in class SimpleSampleEditorFileNewListener.newFile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||