Added first page to wizard

This commit is contained in:
Veronica K. B. Olsen
2020-07-11 15:07:11 +02:00
parent 8cc75fcbd4
commit 1277e5025d
2 changed files with 87 additions and 10 deletions
+11 -9
View File
@@ -43,7 +43,7 @@ from nw.gui import (
GuiBuildNovel, GuiDocEditor, GuiDocMerge, GuiDocSplit, GuiDocViewDetails,
GuiDocViewer, GuiItemDetails, GuiItemEditor, GuiMainMenu, GuiMainStatus,
GuiOutline, GuiOutlineDetails, GuiPreferences, GuiProjectLoad, GuiTheme,
GuiProjectSettings, GuiProjectTree, GuiWritingStats
GuiProjectSettings, GuiProjectTree, GuiWritingStats, GuiProjectWizard
)
from nw.core import NWProject, NWDoc, NWIndex
from nw.constants import nwFiles, nwItemType, nwAlert
@@ -766,14 +766,16 @@ class GuiMain(QMainWindow):
def newProjectDialog(self):
"""Select where to save new project.
"""
dlgOpt = QFileDialog.Options()
dlgOpt |= QFileDialog.ShowDirsOnly
dlgOpt |= QFileDialog.DontUseNativeDialog
projPath = QFileDialog.getExistingDirectory(
self, "Select Location for New novelWriter Project", "", options=dlgOpt
)
if projPath:
return projPath
newProj = GuiProjectWizard(self)
newProj.exec_()
# dlgOpt = QFileDialog.Options()
# dlgOpt |= QFileDialog.ShowDirsOnly
# dlgOpt |= QFileDialog.DontUseNativeDialog
# projPath = QFileDialog.getExistingDirectory(
# self, "Select Location for New novelWriter Project", "", options=dlgOpt
# )
# if projPath:
# return projPath
return None
def editConfigDialog(self):