pycrossword  0.3
Pure-Python implementation of a crossword puzzle generator and editor
Public Member Functions | Public Attributes | List of all members
pycross.forms.CwInfoDialog Class Reference

Crossword information editor window. More...

Inheritance diagram for pycross.forms.CwInfoDialog:
pycross.forms.BasicDialog

Public Member Functions

def __init__ (self, mainwindow, parent=None, flags=QtCore.Qt.WindowFlags())
 Constructor. More...
 
def addMainLayout (self)
 Creates the main (central) layout for controls. More...
 
def init (self)
 Initializes controls from crossword info. More...
 
def to_info (self)
 Returns crossword information record initialized from the current control values. More...
 
- Public Member Functions inherited from pycross.forms.BasicDialog
def __init__ (self, geometry=None, title=None, icon=None, parent=None, flags=QtCore.Qt.WindowFlags(), sizepolicy=QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed))
 Constructor. More...
 
def initUI (self, geometry=None, title=None, icon=None)
 Creates the core controls: OK and Cancel buttons and layouts. More...
 
def validate (self)
 Validates user input (reimplemented in child classes). More...
 
def on_btn_OK_clicked (self)
 Fires when the OK button is clicked. More...
 
def on_btn_cancel_clicked (self)
 Fires when the Cancel button is clicked: rejects input and closes window. More...
 

Public Attributes

 mainwindow
 QtWidgets.QMainWindow pointer to gui::MainWindow instance More...
 
 layout_controls
 
 le_title
 
 le_author
 
 le_editor
 
 le_publisher
 
 le_copyright
 
 de_date
 
 btn_stats
 
- Public Attributes inherited from pycross.forms.BasicDialog
 layout_controls
 QtWidgets.QFormLayout central layout for controls More...
 
 btn_OK
 QtWidgets.QPushButton OK button More...
 
 btn_cancel
 QtWidgets.QPushButton Cancel button More...
 
 layout_bottom
 QtWidgets.QHBoxLayout bottom layout for OK and Cancel buttons More...
 
 layout_main
 QtWidgets.QVBoxLayout window layout More...
 

Detailed Description

Crossword information editor window.

Constructor & Destructor Documentation

◆ __init__()

def pycross.forms.CwInfoDialog.__init__ (   self,
  mainwindow,
  parent = None,
  flags = QtCore.Qt.WindowFlags() 
)

Constructor.

Parameters
mainwindowQtWidgets.QMainWindow pointer to gui::MainWindow instance
parentQtWidgets.QWidget parent widget (default = None, i.e. no parent)
flagsQtCore.Qt.WindowFlags Qt window flags

Member Function Documentation

◆ addMainLayout()

def pycross.forms.CwInfoDialog.addMainLayout (   self)

Creates the main (central) layout for controls.

Must be overridden by child classes to change the layout type (default = QtWidgets.QFormLayout) and add controls.

Reimplemented from pycross.forms.BasicDialog.

◆ init()

def pycross.forms.CwInfoDialog.init (   self)

Initializes controls from crossword info.

◆ to_info()

def pycross.forms.CwInfoDialog.to_info (   self)

Returns crossword information record initialized from the current control values.

Returns
crossword::CWInfo crossword information record

Member Data Documentation

◆ btn_stats

pycross.forms.CwInfoDialog.btn_stats

◆ de_date

pycross.forms.CwInfoDialog.de_date

◆ layout_controls

pycross.forms.CwInfoDialog.layout_controls

◆ le_author

pycross.forms.CwInfoDialog.le_author

◆ le_copyright

pycross.forms.CwInfoDialog.le_copyright

◆ le_editor

pycross.forms.CwInfoDialog.le_editor

◆ le_publisher

pycross.forms.CwInfoDialog.le_publisher

◆ le_title

pycross.forms.CwInfoDialog.le_title

◆ mainwindow

pycross.forms.CwInfoDialog.mainwindow

QtWidgets.QMainWindow pointer to gui::MainWindow instance


The documentation for this class was generated from the following file: