IntelliPhoto  0.4
PaintingArea Class Reference

#include <PaintingArea.h>

Inheritance diagram for PaintingArea:
Collaboration diagram for PaintingArea:

Public Slots

void slotActivateLayer (int a)
 
void slotDeleteActiveLayer ()
 

Public Member Functions

 PaintingArea (int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)
 
 ~PaintingArea () override
 
bool open (const QString &fileName)
 
bool save (const QString &fileName, const char *fileFormat)
 
int addLayer (int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
 
int addLayerAt (int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
 
void deleteLayer (int index)
 
void setLayerToActive (int index)
 
void setAlphaOfLayer (int index, int alpha)
 
void floodFill (int r, int g, int b, int a)
 
void movePositionActive (int x, int y)
 
void moveActiveLayer (int idx)
 
void colorPickerSetFirstColor ()
 
void colorPickerSetSecondColor ()
 
void colorPickerSwitchColor ()
 
void createPenTool ()
 
void createPlainTool ()
 
void createLineTool ()
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 

Detailed Description

Definition at line 26 of file PaintingArea.h.

Constructor & Destructor Documentation

◆ PaintingArea()

PaintingArea::PaintingArea ( int  maxWidth = 600,
int  maxHeight = 600,
QWidget *  parent = nullptr 
)

Definition at line 20 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ ~PaintingArea()

PaintingArea::~PaintingArea ( )
override

Definition at line 42 of file PaintingArea.cpp.

Member Function Documentation

◆ addLayer()

int PaintingArea::addLayer ( int  width,
int  height,
int  widthOffset = 0,
int  heightOffset = 0,
ImageType  type = ImageType::Raster_Image 
)

Definition at line 57 of file PaintingArea.cpp.

Here is the caller graph for this function:

◆ addLayerAt()

int PaintingArea::addLayerAt ( int  idx,
int  width,
int  height,
int  widthOffset = 0,
int  heightOffset = 0,
ImageType  type = ImageType::Raster_Image 
)

◆ colorPickerSetFirstColor()

void PaintingArea::colorPickerSetFirstColor ( )

Definition at line 167 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ colorPickerSetSecondColor()

void PaintingArea::colorPickerSetSecondColor ( )

Definition at line 172 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ colorPickerSwitchColor()

void PaintingArea::colorPickerSwitchColor ( )

Definition at line 177 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ createLineTool()

void PaintingArea::createLineTool ( )

Definition at line 191 of file PaintingArea.cpp.

◆ createPenTool()

void PaintingArea::createPenTool ( )

Definition at line 181 of file PaintingArea.cpp.

◆ createPlainTool()

void PaintingArea::createPlainTool ( )

Definition at line 186 of file PaintingArea.cpp.

◆ deleteLayer()

void PaintingArea::deleteLayer ( int  index)

Definition at line 74 of file PaintingArea.cpp.

◆ floodFill()

void PaintingArea::floodFill ( int  r,
int  g,
int  b,
int  a 
)

Definition at line 139 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ mouseMoveEvent()

void PaintingArea::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 215 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ mousePressEvent()

void PaintingArea::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 199 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ mouseReleaseEvent()

void PaintingArea::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 225 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ moveActiveLayer()

void PaintingArea::moveActiveLayer ( int  idx)

Definition at line 153 of file PaintingArea.cpp.

◆ movePositionActive()

void PaintingArea::movePositionActive ( int  x,
int  y 
)

Definition at line 148 of file PaintingArea.cpp.

◆ open()

bool PaintingArea::open ( const QString &  fileName)

Definition at line 103 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ paintEvent()

void PaintingArea::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 249 of file PaintingArea.cpp.

◆ resizeEvent()

void PaintingArea::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 260 of file PaintingArea.cpp.

◆ save()

bool PaintingArea::save ( const QString &  fileName,
const char *  fileFormat 
)

Definition at line 115 of file PaintingArea.cpp.

◆ setAlphaOfLayer()

void PaintingArea::setAlphaOfLayer ( int  index,
int  alpha 
)

Definition at line 96 of file PaintingArea.cpp.

◆ setLayerToActive()

void PaintingArea::setLayerToActive ( int  index)

Definition at line 90 of file PaintingArea.cpp.

Here is the caller graph for this function:

◆ slotActivateLayer

void PaintingArea::slotActivateLayer ( int  a)
slot

Definition at line 161 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ slotDeleteActiveLayer

void PaintingArea::slotDeleteActiveLayer ( )
slot

Definition at line 83 of file PaintingArea.cpp.

◆ wheelEvent()

void PaintingArea::wheelEvent ( QWheelEvent *  event)
overrideprotected

Definition at line 238 of file PaintingArea.cpp.

Here is the call graph for this function:

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