Exemplo n.º 1
0
void MainWindow::makeVisible()
{
    restoreWindowPosition();
    setVisible (true);
    addToDesktop();  // (must add before restoring size so that fullscreen will work)
    restoreWindowPosition();

    getContentComponent()->grabKeyboardFocus();
}
Exemplo n.º 2
0
MainWindow* MainWindowList::createNewMainWindow()
{
    auto w = new MainWindow();
    windows.add (w);
    w->restoreWindowPosition();
    avoidSuperimposedWindows (w);
    return w;
}
Exemplo n.º 3
0
void MainWindow::makeVisible()
{
    setVisible (true);
    restoreWindowPosition();
    addToDesktop();

    getContentComponent()->grabKeyboardFocus();
}
Exemplo n.º 4
0
FileLocationEditorWindow::FileLocationEditorWindow(int posX, int posY, 
                                                   ApplicationCommandManager* acm, 
                                                   UndoManager& um)
    : DocumentWindow("File Locations",
                     Colour::greyLevel(0.6f),
                     DocumentWindow::allButtons,
                     true)
{
    setUsingNativeTitleBar (true);
    
    setContentOwned(new FileLocationEditor(um, acm), true);
    
    restoreWindowPosition(posX, posY);

    Component::setVisible(true);
    setResizable(true, false);

    setWantsKeyboardFocus (false);

    setResizeLimits(400, 200, 32000, 32000);
}