Image: Merge taskboxes into one 'Image plane Settings'

- Allow user to position the image with a X / Y distance.
- Allow user to rotate the image on its plane.
- Adds Transparency.
- Image sizes change from PX to System unit as PX don't make sense for the user.
This commit is contained in:
Paddle
2023-04-06 22:35:49 +02:00
parent 7a13209a32
commit 1071fb1cdd
6 changed files with 654 additions and 242 deletions

View File

@@ -41,8 +41,7 @@
#include <Gui/ActionFunction.h>
#include <Gui/BitmapFactory.h>
#include <Gui/Control.h>
#include <Gui/TaskView/TaskOrientation.h>
#include <Gui/TaskView/TaskImageScale.h>
#include <Gui/TaskView/TaskImage.h>
#include <App/ImagePlane.h>
#include "ViewProviderImagePlane.h"
@@ -159,12 +158,9 @@ bool ViewProviderImagePlane::doubleClicked()
void ViewProviderImagePlane::manipulateImage()
{
auto dialog = new TaskOrientationDialog(
dynamic_cast<App::GeoFeature*>(getObject())
);
dialog->addTaskBox(new TaskImageScale(
auto dialog = new TaskImageDialog(
dynamic_cast<Image::ImagePlane*>(getObject())
));
);
Gui::Control().showDialog(dialog);
}