|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.geeboss.view.MainView
public class MainView
This is Geeboss's Main view. All GUI Elements are registered in here and getter Methods are provided so that other Classes are able to access and use them. All settings are loaded in here.
Field Summary | |
---|---|
static org.eclipse.swt.widgets.Display |
mDisplay
A lot of other obj have to access display |
static MainView |
mGeebossGui
For classes who needs to access the MainController |
static boolean |
mIsClosing
Flag is set to true when Geeboss is exiting |
static LoggerImpl |
mLogger
Log all catched Exceptions |
static org.eclipse.swt.widgets.Shell |
mShell
A lot of other obj have to access shell |
Constructor Summary | |
---|---|
MainView(GeebossContainer container)
Instantiate a new GUI |
Method Summary | |
---|---|
void |
abnormalShutDown()
This method is called from the Shutdown Hook Thread in case Geeboss was shut down not the normal way (e.g. the OS is shutting down). |
void |
changeWindowLayout()
Change the window layout between 2 and 3 column window layout |
void |
enableSystrayIcon(boolean enabled)
Enable / Disable Systray Icon for Geeboss |
GeebossContainer |
getContainer()
Getter for container |
org.eclipse.swt.widgets.Display |
getDisplay()
Getter for display |
EffectTabFolder |
getEffectTabFolder()
Get the NewsTabFolder displaying newsfeeds |
EventManager |
getEventManager()
Get the event manager for Geeboss. |
FakeToolTip |
getFakeToolTip()
Get the FakeToolTip Object |
GeebossMenu |
getGeebossMenu()
Method to let other obj access this object |
MidiThread |
getMidiThread()
Let other objects access this thread |
PatchTree |
getPatchTree()
Method to let other obj access this object |
Quickview |
getQuickview()
Get the Geeboss quickview control |
java.util.HashMap<java.lang.String,int[]> |
getSaveSashWeights()
Method to let other obj access this object |
org.eclipse.swt.widgets.Shell |
getShell()
Getter for shell |
StatusLine |
getStatusLine()
Get the StatusLine control |
StompView |
getStompView()
Get the NewsText composite |
SystemTray |
getSystray()
Get the SystemTray object |
void |
initialize()
Initialize this component |
boolean |
isAlive()
This method is called to check if Geeboss is still alive or was just closed by the user. |
boolean |
isBusy()
Check if Geeboss is currently busy with a midi job |
void |
onClose(org.eclipse.swt.widgets.Event event,
boolean forceExit)
Called when the Shell is closed. |
void |
setup(org.eclipse.swt.widgets.Display display)
Setup the MainView with the parent display |
void |
showGui()
Open Geeboss shell |
void |
updateCoreSettings(SettingsFactory geebossSettingsParser,
boolean isHotLoad)
Update core settings of Geeboss that need to be loaded first |
void |
updateI18N()
Update all controlls text with i18n |
void |
updateUserSettings(SettingsFactory geebossSettingsParser,
boolean isHotLoad)
Update some user settings from the "user.xml" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.eclipse.swt.widgets.Display mDisplay
public static boolean mIsClosing
public static LoggerImpl mLogger
public static MainView mGeebossGui
public static org.eclipse.swt.widgets.Shell mShell
Constructor Detail |
---|
public MainView(GeebossContainer container)
container
- The geeboss containerMethod Detail |
---|
public void setup(org.eclipse.swt.widgets.Display display)
display
- the parent displaypublic void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
public GeebossContainer getContainer()
public org.eclipse.swt.widgets.Display getDisplay()
public org.eclipse.swt.widgets.Shell getShell()
public boolean isAlive()
public void abnormalShutDown()
public void changeWindowLayout()
public void enableSystrayIcon(boolean enabled)
enabled
- true if enabledpublic EventManager getEventManager()
public FakeToolTip getFakeToolTip()
public PatchTree getPatchTree()
public MidiThread getMidiThread()
public GeebossMenu getGeebossMenu()
public EffectTabFolder getEffectTabFolder()
public StompView getStompView()
public Quickview getQuickview()
public StatusLine getStatusLine()
public SystemTray getSystray()
public java.util.HashMap<java.lang.String,int[]> getSaveSashWeights()
public boolean isBusy()
public void updateI18N()
updateI18N
in interface Translatable
public void onClose(org.eclipse.swt.widgets.Event event, boolean forceExit)
event
- The occuring EventforceExit
- If true, force Geeboss to exitpublic void showGui()
public void updateCoreSettings(SettingsFactory geebossSettingsParser, boolean isHotLoad)
geebossSettingsParser
- The settings parser to useisHotLoad
- true if the settings are imported by the user from the running programpublic void updateUserSettings(SettingsFactory geebossSettingsParser, boolean isHotLoad)
geebossSettingsParser
- The settings parser to useisHotLoad
- true if the settings are imported by the user from the running program
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |