How can I get my main DocumentWindow from the overimplemented System Tray Icon? Like I get the instance of JUCEApplication using JUCEApplication::getInstance()?
My situation:
the main doc window is hidden on minimize:
...
void minimizeButtonPressed(){
setVisible(false)
}
...
I have a pop up menu at tray icon, it contains 2 items:
Show
Exit
exit is implemented using JUCEApplication::getInstance()->systemRequestedQuit() (taken from juce demo app)
and “Show” should be smth like
DocumentWindow::getInstance()->setVisible(true) ??? Of course no, because we can have more than one doc windows… but how?..