49 lines
1.2 KiB
Python
49 lines
1.2 KiB
Python
# -*- 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
|