diff --git a/nw/gui/__init__.py b/nw/gui/__init__.py index 6359a342..cc2933e7 100644 --- a/nw/gui/__init__.py +++ b/nw/gui/__init__.py @@ -15,6 +15,7 @@ from nw.gui.preferences import GuiPreferences from nw.gui.projload import GuiProjectLoad from nw.gui.projsettings import GuiProjectSettings from nw.gui.projtree import GuiProjectTree +from nw.gui.projwizard import GuiProjectWizard from nw.gui.writingstats import GuiWritingStats from nw.gui.statusbar import GuiMainStatus from nw.gui.theme import GuiIcons, GuiTheme @@ -36,6 +37,7 @@ __all__ = [ "GuiProjectLoad", "GuiProjectSettings", "GuiProjectTree", + "GuiProjectWizard", "GuiWritingStats", "GuiMainStatus", "GuiIcons", diff --git a/nw/gui/build.py b/nw/gui/build.py index 34a01f05..a9fa5571 100644 --- a/nw/gui/build.py +++ b/nw/gui/build.py @@ -401,8 +401,6 @@ class GuiBuildNovel(QDialog): self.setLayout(self.outerBox) self.buildNovel.setFocus() - self.show() - logger.debug("GuiBuildNovel initialisation complete") # Load from Cache diff --git a/nw/gui/projwizard.py b/nw/gui/projwizard.py new file mode 100644 index 00000000..fe24d9bf --- /dev/null +++ b/nw/gui/projwizard.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +"""novelWriter GUI New Project Wizard + + novelWriter – GUI New project Wizard +====================================== + Class holding the new project wizard dialog + + File History: + Created: 2020-07-11 [0.10.1] + + This file is a part of novelWriter + Copyright 2020, Veronica Berglyd Olsen + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +""" + +import logging +import nw + +from PyQt5.QtWidgets import QWizard + +logger = logging.getLogger(__name__) + +class GuiProjectWizard(QWizard): + + def __init__(self, theParent): + QWizard.__init__(self, theParent) + + logger.debug("Initialising GuiProjectWizard ...") + + self.mainConf = nw.CONFIG + self.theParent = theParent + + logger.debug("GuiProjectWizard initialisation complete") + + return + +# END Class GuiProjectWizard