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

Tiny login/password authentication dialog. More...

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

Public Member Functions

def __init__ (self, data=None, can_add=False, can_delete=False, can_reorder=True, unique_params=True, params_editable=False, header_labels=[_('Parameter'), _('Value')], on_validate=None, title=_('Value Editor'), icon='table.png', parent=None, flags=QtCore.Qt.WindowFlags())
 
def resizeEvent (self, event)
 
def addMainLayout (self)
 Creates the main (central) layout for controls. More...
 
def validate (self)
 Validates user input (reimplemented in child classes). More...
 
def on_act_addrow (self, checked)
 
def copyrow (self, row_from, row_to)
 
def on_act_delrow (self, checked)
 
def on_act_moverowup (self, checked)
 
def on_act_moverowdown (self, checked)
 
def fill_table (self, data)
 
def table_itemChanged (self, item)
 
def table_itemSelectionChanged (self)
 
def update_actions (self)
 
def serialize_table (self)
 
def list_values (self, col)
 
- 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

 can_add
 
 can_delete
 
 can_reorder
 
 unique_params
 
 params_editable
 
 on_validate
 
 header_labels
 
 layout_controls
 
 tbMain
 
 act_addrow
 
 act_delrow
 
 act_moverowup
 
 act_moverowdown
 
 twParams
 
 data
 
- 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

Tiny login/password authentication dialog.

Constructor & Destructor Documentation

◆ __init__()

def pycross.forms.ParamValueEditor.__init__ (   self,
  data = None,
  can_add = False,
  can_delete = False,
  can_reorder = True,
  unique_params = True,
  params_editable = False,
  header_labels = [_('Parameter'), _('Value')],
  on_validate = None,
  title = _('Value Editor'),
  icon = 'table.png',
  parent = None,
  flags = QtCore.Qt.WindowFlags() 
)

Member Function Documentation

◆ addMainLayout()

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

◆ copyrow()

def pycross.forms.ParamValueEditor.copyrow (   self,
  row_from,
  row_to 
)

◆ fill_table()

def pycross.forms.ParamValueEditor.fill_table (   self,
  data 
)

◆ list_values()

def pycross.forms.ParamValueEditor.list_values (   self,
  col 
)

◆ on_act_addrow()

def pycross.forms.ParamValueEditor.on_act_addrow (   self,
  checked 
)

◆ on_act_delrow()

def pycross.forms.ParamValueEditor.on_act_delrow (   self,
  checked 
)

◆ on_act_moverowdown()

def pycross.forms.ParamValueEditor.on_act_moverowdown (   self,
  checked 
)

◆ on_act_moverowup()

def pycross.forms.ParamValueEditor.on_act_moverowup (   self,
  checked 
)

◆ resizeEvent()

def pycross.forms.ParamValueEditor.resizeEvent (   self,
  event 
)

◆ serialize_table()

def pycross.forms.ParamValueEditor.serialize_table (   self)

◆ table_itemChanged()

def pycross.forms.ParamValueEditor.table_itemChanged (   self,
  item 
)

◆ table_itemSelectionChanged()

def pycross.forms.ParamValueEditor.table_itemSelectionChanged (   self)

◆ update_actions()

def pycross.forms.ParamValueEditor.update_actions (   self)

◆ validate()

def pycross.forms.ParamValueEditor.validate (   self)

Validates user input (reimplemented in child classes).

Returns
bool True if user input is valid, False otherwise
See also
on_btn_OK_clicked()

Reimplemented from pycross.forms.BasicDialog.

Member Data Documentation

◆ act_addrow

pycross.forms.ParamValueEditor.act_addrow

◆ act_delrow

pycross.forms.ParamValueEditor.act_delrow

◆ act_moverowdown

pycross.forms.ParamValueEditor.act_moverowdown

◆ act_moverowup

pycross.forms.ParamValueEditor.act_moverowup

◆ can_add

pycross.forms.ParamValueEditor.can_add

◆ can_delete

pycross.forms.ParamValueEditor.can_delete

◆ can_reorder

pycross.forms.ParamValueEditor.can_reorder

◆ data

pycross.forms.ParamValueEditor.data

◆ header_labels

pycross.forms.ParamValueEditor.header_labels

◆ layout_controls

pycross.forms.ParamValueEditor.layout_controls

◆ on_validate

pycross.forms.ParamValueEditor.on_validate

◆ params_editable

pycross.forms.ParamValueEditor.params_editable

◆ tbMain

pycross.forms.ParamValueEditor.tbMain

◆ twParams

pycross.forms.ParamValueEditor.twParams

◆ unique_params

pycross.forms.ParamValueEditor.unique_params

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