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

Crossword creation dialog providing options to populate the crossword grid. More...

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

Public Member Functions

def __init__ (self, parent=None, flags=QtCore.Qt.WindowFlags())
 Constructor. More...
 
def addMainLayout (self)
 Creates the main (central) layout for controls. More...
 
def validate (self)
 Checks that the text / pattern file is valid (if selected) or that the number of rows and columns is valid (if creating an empty cw grid). More...
 
def rb_toggled (self, toggled)
 Show / hide panels under radio buttons. 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 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

 layout_controls
 
 rb_grid
 QtWidgets.QRadioButton 'load from pattern file' option More...
 
 rb_file
 QtWidgets.QRadioButton 'load from file' option More...
 
 rb_empty
 QtWidgets.QRadioButton 'empty grid' option More...
 
 gb_pattern
 
 le_pattern
 
 layout_pattern
 
 gb_file
 
 le_file
 
 layout_file
 
 gb_manual
 
 le_rows
 
 le_cols
 
 combo_pattern
 
 layout_manual
 
- 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 creation dialog providing options to populate the crossword grid.

Constructor & Destructor Documentation

◆ __init__()

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

Constructor.

Parameters
parentQtWidgets.QWidget parent widget (default = None, i.e. no parent)
flagsQtCore.Qt.WindowFlags Qt window flags

Member Function Documentation

◆ addMainLayout()

def pycross.forms.LoadCwDialog.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.

◆ rb_toggled()

def pycross.forms.LoadCwDialog.rb_toggled (   self,
  toggled 
)

Show / hide panels under radio buttons.

◆ validate()

def pycross.forms.LoadCwDialog.validate (   self)

Checks that the text / pattern file is valid (if selected) or that the number of rows and columns is valid (if creating an empty cw grid).

Reimplemented from pycross.forms.BasicDialog.

Member Data Documentation

◆ combo_pattern

pycross.forms.LoadCwDialog.combo_pattern

◆ gb_file

pycross.forms.LoadCwDialog.gb_file

◆ gb_manual

pycross.forms.LoadCwDialog.gb_manual

◆ gb_pattern

pycross.forms.LoadCwDialog.gb_pattern

◆ layout_controls

pycross.forms.LoadCwDialog.layout_controls

◆ layout_file

pycross.forms.LoadCwDialog.layout_file

◆ layout_manual

pycross.forms.LoadCwDialog.layout_manual

◆ layout_pattern

pycross.forms.LoadCwDialog.layout_pattern

◆ le_cols

pycross.forms.LoadCwDialog.le_cols

◆ le_file

pycross.forms.LoadCwDialog.le_file

◆ le_pattern

pycross.forms.LoadCwDialog.le_pattern

◆ le_rows

pycross.forms.LoadCwDialog.le_rows

◆ rb_empty

pycross.forms.LoadCwDialog.rb_empty

QtWidgets.QRadioButton 'empty grid' option

◆ rb_file

pycross.forms.LoadCwDialog.rb_file

QtWidgets.QRadioButton 'load from file' option

◆ rb_grid

pycross.forms.LoadCwDialog.rb_grid

QtWidgets.QRadioButton 'load from pattern file' option


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