Added project wizard class file

This commit is contained in:
Veronica K. B. Olsen
2020-07-11 13:49:48 +02:00
parent efaa3b6719
commit 8cc75fcbd4
3 changed files with 51 additions and 2 deletions
+2
View File
@@ -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",
-2
View File
@@ -401,8 +401,6 @@ class GuiBuildNovel(QDialog):
self.setLayout(self.outerBox)
self.buildNovel.setFocus()
self.show()
logger.debug("GuiBuildNovel initialisation complete")
# Load from Cache
+49
View File
@@ -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 <https://www.gnu.org/licenses/>.
"""
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