Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[471] Allow the workspacePath to be reset in the SelectImageDialog #472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GlennPlou
Copy link
Contributor

@GlennPlou GlennPlou commented Sep 27, 2024

What has been done

A new button "Reset Image Style" has been added to reset the WorkspaceImage assigned to a DDiagramElement while preserving all other style modifications.
image

Steps to validate:

  1. Import project issue_471 in your workspace from issue_471.zip, open issue_471 package entities diagram, select NewEclass1, open Properties view and the Error Log view.
    image
  2. Click on Set style to workspace image button from tabbar or Appearance tab in Properties view
    Expected: The dialog appears. The image path field refers to the actual image issue_471/images/green_beetle.png. The "Reset Image Style" button is enabled. "OK" button is disabled.
    image
  3. Click on "Reset Image Style" button.
    Expected: The "Reset Image Style" button is disabled. OK button is enabled. the path is empty.
  4. Select another image in the gallery, such as "blue_beetle.png" in issue_471 > images.
    Expected: The path refers to issue_471/images/blue_beetle.png. The "Reset Image Style" button is enabled. "OK" button is disabled.
  5. Click on an invalid location, such as an empty place in the gallery, or the project "issue_471" in the tree viewer.
    Expected: The path is updated with the actual Workspace Image issue_471/images/green_beetle.png. The "Reset Image Style" button is enabled. "OK" button is disabled.
  6. Click on "Reset Image Style" button again, then click "OK".
    Expected: The style of the node has been updated: the image is not even used, and other custom features are preserved (bold, italic, color label, size label...)
    image

@GlennPlou GlennPlou linked an issue Sep 27, 2024 that may be closed by this pull request
@GlennPlou GlennPlou self-assigned this Sep 27, 2024
@GlennPlou GlennPlou added type: enhancement Making an existing feature better component: diagrams labels Sep 27, 2024
A new button "Reset Image Style" has been added to reset the
WorkspaceImage assigned to a DDiagramElement while preserving all other
style modifications.

Bug: #471
Signed-off-by: Glenn Plouhinec <[email protected]>
@GlennPlou GlennPlou changed the title DRAFT - Allow to remove WorkspaceImage style [471] Allow the workspacePath to be reset in the SelectImageDialog Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: diagrams type: enhancement Making an existing feature better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide an UI feature to reset WorkspaceImage style
1 participant