Started adding project and doc classes.
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# -*- coding: utf-8 -*
|
||||
"""novelWriter GUI Project Editor
|
||||
|
||||
novelWriter – GUI Project Editor
|
||||
===================================
|
||||
Class holding the project editor
|
||||
|
||||
File History:
|
||||
Created: 2018-09-29 [0.1.0]
|
||||
|
||||
"""
|
||||
|
||||
import logging
|
||||
import nw
|
||||
|
||||
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QGroupBox, QFormLayout, QLabel, QLineEdit, QPlainTextEdit
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class GuiProjectEditor(QWidget):
|
||||
|
||||
def __init__(self):
|
||||
QWidget.__init__(self)
|
||||
|
||||
logger.debug("Initialising ProjectEditor ...")
|
||||
|
||||
self.outerBox = QVBoxLayout()
|
||||
self.setLayout(self.outerBox)
|
||||
|
||||
self.mainGroup = QGroupBox("Project Settings")
|
||||
self.mainForm = QFormLayout()
|
||||
|
||||
self.editName = QLineEdit()
|
||||
self.editTitle = QLineEdit()
|
||||
self.editAuthors = QPlainTextEdit()
|
||||
|
||||
self.mainForm.addRow("Working Name", self.editName)
|
||||
self.mainForm.addRow("Book Title", self.editTitle)
|
||||
self.mainForm.addRow("Book Authors", self.editAuthors)
|
||||
|
||||
self.mainGroup.setLayout(self.mainForm)
|
||||
self.outerBox.addWidget(self.mainGroup)
|
||||
|
||||
logger.debug("ProjectEditor initialisation complete")
|
||||
|
||||
return
|
||||
|
||||
# END Class GuiProjectEditor
|
||||
Reference in New Issue
Block a user