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 ()
 
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 paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 

Detailed Description

Definition at line 28 of file PaintingArea.h.

Constructor & Destructor Documentation

◆ PaintingArea()

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

Definition at line 17 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ ~PaintingArea()

PaintingArea::~PaintingArea ( )

Definition at line 38 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 53 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 163 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ colorPickerSetSecondColor()

void PaintingArea::colorPickerSetSecondColor ( )

Definition at line 168 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ colorPickerSwitchColor()

void PaintingArea::colorPickerSwitchColor ( )

Definition at line 173 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ createLineTool()

void PaintingArea::createLineTool ( )

Definition at line 187 of file PaintingArea.cpp.

◆ createPenTool()

void PaintingArea::createPenTool ( )

Definition at line 177 of file PaintingArea.cpp.

◆ createPlainTool()

void PaintingArea::createPlainTool ( )

Definition at line 182 of file PaintingArea.cpp.

◆ deleteLayer()

void PaintingArea::deleteLayer ( int  index)

Definition at line 70 of file PaintingArea.cpp.

◆ floodFill()

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

Definition at line 135 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ mouseMoveEvent()

void PaintingArea::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 211 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ mousePressEvent()

void PaintingArea::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 195 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ mouseReleaseEvent()

void PaintingArea::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 221 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ moveActiveLayer()

void PaintingArea::moveActiveLayer ( int  idx)

Definition at line 149 of file PaintingArea.cpp.

◆ movePositionActive()

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

Definition at line 144 of file PaintingArea.cpp.

◆ open()

bool PaintingArea::open ( const QString &  fileName)

Definition at line 99 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ paintEvent()

void PaintingArea::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 237 of file PaintingArea.cpp.

◆ resizeEvent()

void PaintingArea::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 248 of file PaintingArea.cpp.

◆ save()

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

Definition at line 111 of file PaintingArea.cpp.

◆ setAlphaOfLayer()

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

Definition at line 92 of file PaintingArea.cpp.

◆ setLayerToActive()

void PaintingArea::setLayerToActive ( int  index)

Definition at line 86 of file PaintingArea.cpp.

Here is the caller graph for this function:

◆ slotActivateLayer

void PaintingArea::slotActivateLayer ( int  a)
slot

Definition at line 157 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ slotDeleteActiveLayer

void PaintingArea::slotDeleteActiveLayer ( )
slot

Definition at line 79 of file PaintingArea.cpp.


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