Krita Source Code Documentation
Loading...
Searching...
No Matches
photobash_images.photobash_images_modulo.Photobash_Display Class Reference
+ Inheritance diagram for photobash_images.photobash_images_modulo.Photobash_Display:

Public Member Functions

 __init__ (self, parent)
 
 enterEvent (self, event)
 
 leaveEvent (self, event)
 
 mouseMoveEvent (self, event)
 
 mousePressEvent (self, event)
 
 paintEvent (self, event)
 
 setFitCanvas (self, newFit)
 
 setImage (self, path, image)
 
 setImageScale (self, newScale)
 
 sizeHint (self)
 

Public Attributes

 fitCanvasChecked
 
 path
 
 scale
 

Static Public Attributes

bool fitCanvasChecked = False
 
int scale = 100
 
 SIGNAL_CLOSE = pyqtSignal(int)
 
 SIGNAL_HOVER = pyqtSignal(str)
 

Detailed Description

Definition at line 144 of file photobash_images_modulo.py.

Constructor & Destructor Documentation

◆ __init__()

photobash_images.photobash_images_modulo.Photobash_Display.__init__ ( self,
parent )

Definition at line 150 of file photobash_images_modulo.py.

150 def __init__(self, parent):
151 super(Photobash_Display, self).__init__(parent)
152 customSetImage(self, None)
153

References photobash_images.photobash_images_modulo.Photobash_Display.__init__(), and photobash_images.photobash_images_modulo.customSetImage().

Member Function Documentation

◆ enterEvent()

photobash_images.photobash_images_modulo.Photobash_Display.enterEvent ( self,
event )

Definition at line 157 of file photobash_images_modulo.py.

157 def enterEvent(self, event):
158 self.SIGNAL_HOVER.emit("D")
159

References photobash_images.photobash_images_modulo.Photobash_Display.SIGNAL_HOVER, and photobash_images.photobash_images_modulo.Photobash_Button.SIGNAL_HOVER.

◆ leaveEvent()

photobash_images.photobash_images_modulo.Photobash_Display.leaveEvent ( self,
event )

Definition at line 160 of file photobash_images_modulo.py.

160 def leaveEvent(self, event):
161 self.SIGNAL_HOVER.emit("None")
162

References photobash_images.photobash_images_modulo.Photobash_Display.SIGNAL_HOVER, and photobash_images.photobash_images_modulo.Photobash_Button.SIGNAL_HOVER.

◆ mouseMoveEvent()

photobash_images.photobash_images_modulo.Photobash_Display.mouseMoveEvent ( self,
event )

Definition at line 167 of file photobash_images_modulo.py.

167 def mouseMoveEvent(self, event):
168 customMouseMoveEvent(self, event)
169

References photobash_images.photobash_images_modulo.customMouseMoveEvent().

◆ mousePressEvent()

photobash_images.photobash_images_modulo.Photobash_Display.mousePressEvent ( self,
event )

Definition at line 163 of file photobash_images_modulo.py.

163 def mousePressEvent(self, event):
164 if (event.modifiers() == Qt.KeyboardModifier.NoModifier and event.buttons() == Qt.MouseButton.LeftButton):
165 self.SIGNAL_CLOSE.emit(0)
166

References photobash_images.photobash_images_modulo.Photobash_Display.SIGNAL_CLOSE.

◆ paintEvent()

photobash_images.photobash_images_modulo.Photobash_Display.paintEvent ( self,
event )

Definition at line 180 of file photobash_images_modulo.py.

180 def paintEvent(self, event):
181 customPaintEvent(self, event)
182

References photobash_images.photobash_images_modulo.customPaintEvent().

◆ setFitCanvas()

photobash_images.photobash_images_modulo.Photobash_Display.setFitCanvas ( self,
newFit )

Definition at line 170 of file photobash_images_modulo.py.

170 def setFitCanvas(self, newFit):
171 self.fitCanvasChecked = newFit
172

◆ setImage()

photobash_images.photobash_images_modulo.Photobash_Display.setImage ( self,
path,
image )

Definition at line 176 of file photobash_images_modulo.py.

176 def setImage(self, path, image):
177 self.path = path
178 customSetImage(self, image)
179

◆ setImageScale()

photobash_images.photobash_images_modulo.Photobash_Display.setImageScale ( self,
newScale )

Definition at line 173 of file photobash_images_modulo.py.

173 def setImageScale(self, newScale):
174 self.scale = newScale
175

◆ sizeHint()

photobash_images.photobash_images_modulo.Photobash_Display.sizeHint ( self)

Definition at line 154 of file photobash_images_modulo.py.

154 def sizeHint(self):
155 return QSize(5000,5000)
156

Member Data Documentation

◆ fitCanvasChecked [1/2]

bool photobash_images.photobash_images_modulo.Photobash_Display.fitCanvasChecked = False
static

Definition at line 147 of file photobash_images_modulo.py.

◆ fitCanvasChecked [2/2]

photobash_images.photobash_images_modulo.Photobash_Display.fitCanvasChecked

Definition at line 171 of file photobash_images_modulo.py.

◆ path

photobash_images.photobash_images_modulo.Photobash_Display.path

Definition at line 177 of file photobash_images_modulo.py.

◆ scale [1/2]

int photobash_images.photobash_images_modulo.Photobash_Display.scale = 100
static

Definition at line 148 of file photobash_images_modulo.py.

◆ scale [2/2]

photobash_images.photobash_images_modulo.Photobash_Display.scale

Definition at line 174 of file photobash_images_modulo.py.

◆ SIGNAL_CLOSE

photobash_images.photobash_images_modulo.Photobash_Display.SIGNAL_CLOSE = pyqtSignal(int)
static

Definition at line 146 of file photobash_images_modulo.py.

◆ SIGNAL_HOVER

photobash_images.photobash_images_modulo.Photobash_Display.SIGNAL_HOVER = pyqtSignal(str)
static

Definition at line 145 of file photobash_images_modulo.py.


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