Ejemplo n.º 1
0
    /**
       @param saveName Initial value of the box and what will be returned in the event
       that the user presses ok.

       @return True unless cancelled
     */
    static bool getFilename(std::string& saveName, GWindow* osWindow, GuiSkinRef skin) {
        ReferenceCountedPointer<SaveDialog> guiWindow = new SaveDialog(saveName, skin);
        guiWindow->showModal(osWindow);
        return guiWindow->ok;
    }