Comments (8)
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.
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.
Okay, then that's working as I coded it. ;)
from beeref.
haha fair enough :D
from beeref.
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.
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.
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.
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)
- Transparent Overlay Mode
- Chocolatey Package HOT 7
- Fails to start on Linux with Wayland < 1.19.91 HOT 1
- [Feature Request] Autosave & Recovery for unsaved files HOT 1
- app crashes when trying to save in linux HOT 2
- Fails to Save or Load on a Mapped Network Drive HOT 1
- Image optimization
- Freez when loading a "jpeg" image, other image have no problem HOT 1
- build.txt (requirements file) is missing exif, lxml and rectangle-packer HOT 2
- add a shortcut to navigate through images...
- Suggesting a Portable Version that does not require Admin rights HOT 4
- Flatpak: BeeRef fails to start. Throws a critical Qt error (cannot mix incompatible Qt libraries) HOT 3
- Unable to launch with failure to initialize QT platform plugin error on Linux Mint 21.2. HOT 3
- Exception when URL contains non-ASCII characters HOT 1
- [Feature Request] Configurable margin for the exported image
- Dark mode theme issue on Windows
- [Feature Request] open images directly into a new beefile HOT 3
- Pinterest drag and drop problem HOT 5
- QT_STYLE_OVERRIDE not working
- Deleting images won't reduce the file size from the first saved size. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beeref.