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 ()
 
int getWidthActiveLayer ()
 
int getHeightActiveLayer ()
 

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 25 of file PaintingArea.h.

Constructor & Destructor Documentation

◆ PaintingArea()

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

Definition at line 21 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ ~PaintingArea()

PaintingArea::~PaintingArea ( )
override

Definition at line 43 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 58 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 168 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ colorPickerSetSecondColor()

void PaintingArea::colorPickerSetSecondColor ( )

Definition at line 173 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ colorPickerSwitchColor()

void PaintingArea::colorPickerSwitchColor ( )

Definition at line 178 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ createLineTool()

void PaintingArea::createLineTool ( )

Definition at line 192 of file PaintingArea.cpp.

◆ createPenTool()

void PaintingArea::createPenTool ( )

Definition at line 182 of file PaintingArea.cpp.

◆ createPlainTool()

void PaintingArea::createPlainTool ( )

Definition at line 187 of file PaintingArea.cpp.

◆ deleteLayer()

void PaintingArea::deleteLayer ( int  index)

Definition at line 75 of file PaintingArea.cpp.

◆ floodFill()

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

Definition at line 140 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ getHeightActiveLayer()

int PaintingArea::getHeightActiveLayer ( )

Definition at line 201 of file PaintingArea.cpp.

Here is the caller graph for this function:

◆ getWidthActiveLayer()

int PaintingArea::getWidthActiveLayer ( )

Definition at line 197 of file PaintingArea.cpp.

Here is the caller graph for this function:

◆ mouseMoveEvent()

void PaintingArea::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 224 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ mousePressEvent()

void PaintingArea::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 208 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ mouseReleaseEvent()

void PaintingArea::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 234 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ moveActiveLayer()

void PaintingArea::moveActiveLayer ( int  idx)

Definition at line 154 of file PaintingArea.cpp.

◆ movePositionActive()

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

Definition at line 149 of file PaintingArea.cpp.

◆ open()

bool PaintingArea::open ( const QString &  fileName)

Definition at line 104 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ paintEvent()

void PaintingArea::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 258 of file PaintingArea.cpp.

◆ resizeEvent()

void PaintingArea::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 269 of file PaintingArea.cpp.

◆ save()

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

Definition at line 116 of file PaintingArea.cpp.

◆ setAlphaOfLayer()

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

Definition at line 97 of file PaintingArea.cpp.

◆ setLayerToActive()

void PaintingArea::setLayerToActive ( int  index)

Definition at line 91 of file PaintingArea.cpp.

Here is the caller graph for this function:

◆ slotActivateLayer

void PaintingArea::slotActivateLayer ( int  a)
slot

Definition at line 162 of file PaintingArea.cpp.

Here is the call graph for this function:

◆ slotDeleteActiveLayer

void PaintingArea::slotDeleteActiveLayer ( )
slot

Definition at line 84 of file PaintingArea.cpp.

◆ wheelEvent()

void PaintingArea::wheelEvent ( QWheelEvent *  event)
overrideprotected

Definition at line 247 of file PaintingArea.cpp.

Here is the call graph for this function:

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