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

Insert Graphic wizard and image Drag and Drop #1729

Merged
merged 11 commits into from
Jan 8, 2021
Merged

Conversation

HannahSchellekens
Copy link
Member

Summary of additions and changes

  • Added Insert Graphic Wizard, with the following options:
    • Browse button to select the image.
    • Relativize the image path.
    • Place to add graphic options. Built-in support for width, height, angle. They fill in the custom field.
    • The custom field containing the actual optional parameters.
    • Horizontal center option.
    • Option to immediately include it in a figure environment, with caption/label option.
    • Dynamically updating UI for position parameters.
    • All fields can stay empty, it's just a tool to generate the LaTeX.
  • Changed Edit > LaTeX menu.
    • Moved wizards to the bottom.
    • Separated wizards from the other menu items.
    • Renamed table wizard item to "Insert Table...".
    • Added item for graphics insertion wizard: "Insert Graphic..."
  • Dragging and dropping a by \includegraphics supported file type will open the Insert Graphic wizard with the dropped file path inserted as image.
  • Automatically imports graphicx or float (if necessary).
  • Internal restructuring of wizard actions.
  • Added a couple of UI utilities and file utilities.
  • Refactored/reformatted the table wizard a little bit.

How to test this pull request

Just drag and drop a by \includegraphics supported file, or select one using the menu option. Follow the options.

Wiki

Pictures

The wizard UI:

image

Slightly changed edit menu:

image

Demo:

include-graphics-demo.mp4

@HannahSchellekens HannahSchellekens added the enhancement New feature or (non bug related) change to the program. label Jan 7, 2021
@HannahSchellekens HannahSchellekens added this to the b0.7.3 milestone Jan 7, 2021
@HannahSchellekens HannahSchellekens self-assigned this Jan 7, 2021
Copy link
Collaborator

@PHPirates PHPirates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

One other thing, not about this PR, but while we're talking UI: the 'insert table' dialog is not really usable for me, because it's not really scaling well and somehow is much too small. I can't rescale it manually, I think.

image

Do you know how to fix that? (Not necessarily for this PR, but I looked at it a while ago and couldn't find an easy solution)

@HannahSchellekens
Copy link
Member Author

You can set a minimumSize and preferredSize, might help

@PHPirates PHPirates merged commit 868ed22 into master Jan 8, 2021
@PHPirates PHPirates deleted the graphic-wizard branch January 8, 2021 19:33
@HannahSchellekens HannahSchellekens mentioned this pull request Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or (non bug related) change to the program.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants