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

Dialog for sharing crosswords in social networks. More...

Inheritance diagram for pycross.forms.ShareDialog:
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 on_btn_share_settings (self)
 Shows the Sharing page of the global settings dialog. More...
 
def on_btn_export_settings (self)
 Shows the Export page of the global settings dialog. 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 event (self, QtCore.QEvent event)
 
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
 
 layout_controls
 
 gb_share
 
 layout_gb_share
 
 combo_target
 
 le_title
 
 le_tags
 
 le_source
 
 te_notes
 
 btn_share_settings
 
 gb_export
 
 layout_gb_export
 
 rb_pdf
 
 rb_jpg
 
 rb_png
 
 rb_svg
 
 rb_xpf
 
 rb_ipuz
 
 btn_export_settings
 
- 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

Dialog for sharing crosswords in social networks.

Constructor & Destructor Documentation

◆ __init__()

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

◆ on_btn_export_settings()

def pycross.forms.ShareDialog.on_btn_export_settings (   self)

Shows the Export page of the global settings dialog.

◆ on_btn_share_settings()

def pycross.forms.ShareDialog.on_btn_share_settings (   self)

Shows the Sharing page of the global settings dialog.

Member Data Documentation

◆ btn_export_settings

pycross.forms.ShareDialog.btn_export_settings

◆ btn_share_settings

pycross.forms.ShareDialog.btn_share_settings

◆ combo_target

pycross.forms.ShareDialog.combo_target

◆ gb_export

pycross.forms.ShareDialog.gb_export

◆ gb_share

pycross.forms.ShareDialog.gb_share

◆ layout_controls

pycross.forms.ShareDialog.layout_controls

◆ layout_gb_export

pycross.forms.ShareDialog.layout_gb_export

◆ layout_gb_share

pycross.forms.ShareDialog.layout_gb_share

◆ le_source

pycross.forms.ShareDialog.le_source

◆ le_tags

pycross.forms.ShareDialog.le_tags

◆ le_title

pycross.forms.ShareDialog.le_title

◆ mainwindow

pycross.forms.ShareDialog.mainwindow

◆ rb_ipuz

pycross.forms.ShareDialog.rb_ipuz

◆ rb_jpg

pycross.forms.ShareDialog.rb_jpg

◆ rb_pdf

pycross.forms.ShareDialog.rb_pdf

◆ rb_png

pycross.forms.ShareDialog.rb_png

◆ rb_svg

pycross.forms.ShareDialog.rb_svg

◆ rb_xpf

pycross.forms.ShareDialog.rb_xpf

◆ te_notes

pycross.forms.ShareDialog.te_notes

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