Comments (9)
I'm on this. Only bindings are left.
I did however integrate it into vimage (using gwen). But it only loads when the button is pressed. Is this acceptable?
I think it's better to integrate into the application so there is no need to replicate the config loading code and such. It also uses the same sfml window as you are using now. As i said, the only time it runs the code, is when the user opens the configuration window. This way, it should have no effect on the startup time. I will take some startup metrics later to confirm this.
This is how it currently looks:
It is a bit bigger then needed, but i estimated the size needed for all the binding controls.
If this option is unacceptable, then why not just a regular gui? Mono supports winforms as far as i know. It's less hassle then using a gui framework like this.
from vimage.
You wouldn't need to replicate any code if you didn't integrate it into the main project. I was thinking of just making a separate project in the same solution then just add links to any code that is needed (ie: Config.cs).
It looks alright so far I guess. What do you mean by it's using the same sfml window? You mean the same window as the opened image? How does that work?
I don't know about using winforms, I've never really messed around with GUI in C# before. I just wanted to try out GWEN some more (only used it a little bit in another project).
from vimage.
Good point, forgot about that.
Yeah, I pass a reference to the opened image window and when the gui opens it just draws over it. When the window is open, all the controls like zooming and such are disabled because you could manipulate the gui in the same way :P
If it's decided to take a regular gui instead. Winforms is supported by mono (except for part of multithreading, which is not needed i suppose). So depending on the current state, it might be able to run on linux too (with or witouth using winforms).
I have pushed the current code (though it is incomplete) to my personal repo if you want to have a look. Implementation might not be perfect yet, but i wanted to get it working fully before making the code pretty
from vimage.
I definitely do not want the window to be rendered over the image. It should be a completely different window/instance,
Your forked repo seems a bit messed up. It's missing a bunch of commits and just has all the changes from the missing ones in the latest one. It's also missing the DevILNet.dll and the references to the GWEN dlls are not relative (arxae@d8a8840#diff-a7360fdce95db104483c15eb411027ffR68). I couldn't actually get the Config Window to open, kept on complaining about the Font for some reason.
from vimage.
Yeah i messed up my repo a bit. :P i know about it.
Well then it all depends whether you want to keep it on windows, or try for cross platform. If you are going to stay on windows, it makes more sense to just use a winforms/wpf then going trough the hassle of using another sfml windows/gui library. The font thingy being one of those reasons. The "official" gwen.net binding is a bit broken in that regards.
Choice is up to you. I can do all 3 of them (wpf, winforms or gwen.net). Does vimage runs under mono? I haven't tested. But if it does, and you don't want to break it, only the wpf options falls away.
from vimage.
I don't really care about making vimage cross platform, at least not any time soon. At the moment I make use of the Desktop Window Management API (dwmapi.dll) to allow for transparency and the user32.dll for always on top mode. I have no experience with Linux so I'm not even going to try.
I think winforms might be alright. I just made a new branch with a simple form I put together.
https://github.com/Torrunt/vimage/tree/settings-(winform)
from vimage.
If you make use of the windows api, the chance is rather small to none anyway. Maybe on wine. But if it's not a priority you can do what you want for windows.
I just saw your branch, made some small changes to the form so it's a bit nicer. I'll make a pull request and you can see for yourself. If you dislike the changes, feel free to discard the request :P
I might make a wpf one one a separate branch later
from vimage.
I just finished up work on the settings app and merged it into the main branch. So I'll guess I'll close this issue now.
from vimage.
I haven't gotten any time to do a wpf version yet, but if i get around to it then i'll just make a pull request.
from vimage.
Related Issues (20)
- Option for scroll wheel to bind next/previous rather than zoom HOT 1
- MalwareBytes False Positive HOT 1
- Proposal for an optional "ugly interface" mode HOT 8
- vimage opens tif files but not tiff files
- Shuffling through images? HOT 2
- No .jiff support. HOT 1
- Transparent images have black background HOT 1
- Slideshow Mode
- Image background HOT 2
- Some gifs play very laggy. HOT 2
- WebP support
- Zooming causes off-screen image parts to be displayed wrongly until zoomed again while on-screen HOT 1
- didn't work in win10? HOT 2
- Crop feature HOT 2
- Can't open vimage. HOT 4
- The picture is in the center of the screen, is it possible? HOT 4
- Language Support
- Suppress taskbar icon (silent mode) HOT 9
- DevIL.dll DLL Not Found Exception HOT 13
- Support for video files like webm, mp4 etc. 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 vimage.