PolygonTool fertig

This commit is contained in:
AshBastian
2019-12-18 15:47:23 +01:00
parent 3525261e1e
commit 89b9e44677
10 changed files with 65 additions and 42 deletions

View File

@@ -8,6 +8,7 @@
// IntelliPhotoGui constructor
IntelliPhotoGui::IntelliPhotoGui(){
//create Gui elements and lay them out
createGui();
// Create actions
@@ -19,7 +20,8 @@ IntelliPhotoGui::IntelliPhotoGui(){
// Size the app
resize(600,600);
//showMaximized();
showMaximized();
}
// User tried to close the app
@@ -105,14 +107,6 @@ void IntelliPhotoGui::slotDeleteLayer(){
paintingArea->deleteLayer(layerNumber);
}
void slotCreatePenTool(){
}
void slotCreateFloodFillTool(){
}
void IntelliPhotoGui::slotSetActiveAlpha(){
// Stores button value
bool ok1, ok2;
@@ -205,7 +199,7 @@ void IntelliPhotoGui::slotSetActiveLayer(){
{
paintingArea->setLayerToActive(layer);
}
};
}
void IntelliPhotoGui::slotSetFirstColor(){
paintingArea->colorPickerSetFirstColor();
@@ -318,7 +312,7 @@ void IntelliPhotoGui::createActions(){
connect(actionColorPickerFirstColor, SIGNAL(triggered()), this, SLOT(slotSetFirstColor()));
actionColorPickerSecondColor = new QAction(tr("&Secondary"), this);
connect(actionColorPickerSecondColor, SIGNAL(triggered()), this, SLOT(slotSetFirstColor()));
connect(actionColorPickerSecondColor, SIGNAL(triggered()), this, SLOT(slotSetSecondColor()));
actionColorSwitch = new QAction(tr("&Switch"), this);
actionColorSwitch->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_S));