Coder Social home page Coder Social logo

Comments (8)

rbreu avatar rbreu commented on August 22, 2024 1

Menu bar visibility should already be saved and restored. If it doesn't, there's something strange going on in your case. Do recent files get remembered in the File -> Recent Files menu?

With title bars and Always on Top, I'd like create a settings dialog first so that the user has to explicitly enable remembering those. I just haven't gotten around to that yet.

Regarding 2., yeah, that's already on my list, too. I'll have to see what Qt lets me do in that regard.

from beeref.

wayfu avatar wayfu commented on August 22, 2024

I do get Recent Files, yes. Some more experimenting also showed that BeeRef does remember the visibility of the menu bar and the scroll bars, but not of the title bar, nor the always on top or fullscreen status.

from beeref.

rbreu avatar rbreu commented on August 22, 2024

Okay, then that's working as I coded it. ;)

from beeref.

wayfu avatar wayfu commented on August 22, 2024

haha fair enough :D

from beeref.

andrsd avatar andrsd commented on August 22, 2024

I coded up the feature of saving and restoring the main window geometry (location, size, etc.). It does it for the application window, but I am thinking it would may be make more sense to store this per file.

What do you guys think?

from beeref.

rbreu avatar rbreu commented on August 22, 2024

Is this common to go by file? I don't remember encountering something like that, but this might just be me. I'd rather go with the most common option, I think.

Regarding restoring of location and size: You have to be careful when the user switches screen resolutions/monitors/external monitors/screen orientation in the meantime and ensure that the window doesn't end up outside of the screen, or bigger than the screen, or on an external monitor that's not plugged in anymore.

from beeref.

andrsd avatar andrsd commented on August 22, 2024

Saving application window geometry is more common option (IMO). Files can be transferred between machines and preserving geometry might be much harder - as you pointed out. The reason why I mentioned the possibility to save it into a file was that you can think about the application window like a canvas with all your pictures - then you may want to preserve such geometry per file rather then preserving the geometry for all files. If that makes sense.

As a note. If you are on a Mac OS X and your window is way off your screen, the OS will move it such that you can grab it and reposition. IDK if this is a thing on Windows and Linux - I don't use them enough :-(

The branch with this feature is on my save-main-win-goemetry branch. Feel free to pull it or cherry-pick it, if you want to add it to the main branch. Or I can open a pull request...

from beeref.

rbreu avatar rbreu commented on August 22, 2024

Hi! I've tested you code on Linux and not managed to break anything. It seems from the docs that Qt is taking care of things not getting off-screen, so I trust it will work on Windows, too, though I will give it a bit of a test when I prepare the release just in case.

Would you open a pull-request? I have a couple of remarks.

from beeref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.