mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 04:40:37 +02:00
layer as canvas
This commit is contained in:
@@ -73,7 +73,7 @@ void IntelliPhotoGui::slotCreateNewRasterLayer(){
|
|||||||
// "New Layer" is the title of the window
|
// "New Layer" is the title of the window
|
||||||
// the next tr is the text to display
|
// the next tr is the text to display
|
||||||
// Define the standard Value, min, max, step and ok button
|
// Define the standard Value, min, max, step and ok button
|
||||||
int width = IntelliInputDialog::getInt("New Layer", "Width:", 200, 1, paintingArea->getMaxWidth(), 1, &ok1);
|
int width = IntelliInputDialog::getInt("New Layer", "Width:", 200, 1, paintingArea->getMaxWidth(), 1, &ok1);
|
||||||
|
|
||||||
int height = IntelliInputDialog::getInt("New Layer", "Height:", 200, 1, paintingArea->getMaxHeight(), 1, &ok2);
|
int height = IntelliInputDialog::getInt("New Layer", "Height:", 200, 1, paintingArea->getMaxHeight(), 1, &ok2);
|
||||||
|
|
||||||
@@ -111,9 +111,9 @@ void IntelliPhotoGui::slotChangeDim(){
|
|||||||
// "change Dimension" is the title of the window
|
// "change Dimension" is the title of the window
|
||||||
// the next tr is the text to display
|
// the next tr is the text to display
|
||||||
// Define the standard Value, min, step and ok button
|
// Define the standard Value, min, step and ok button
|
||||||
int width = IntelliInputDialog::getInt("New Layer", "Width:", 600, 1, 50000 , 1, &ok1);
|
int width = IntelliInputDialog::getInt("New Canvas Size", "Width:", 600, 1, 50000 , 1, &ok1);
|
||||||
|
|
||||||
int height = IntelliInputDialog::getInt("New Layer", "Height:", 600, 1, 50000, 1, &ok2);
|
int height = IntelliInputDialog::getInt("New Canvas Size", "Height:", 600, 1, 50000, 1, &ok2);
|
||||||
|
|
||||||
// Change dimension
|
// Change dimension
|
||||||
if (ok1&&ok2) {
|
if (ok1&&ok2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user