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

GUI feature proposal #34

Open
conkerts opened this issue Sep 17, 2018 · 7 comments
Open

GUI feature proposal #34

conkerts opened this issue Sep 17, 2018 · 7 comments

Comments

@conkerts
Copy link

Hi, this tool is really cool and much better than the lame Arduino GUI / Terminal.

I'd propose 2 small features, as I don't have that much clue with Qt GUI programming.

  1. Store the last state of the line ending in serial mode (or set a default value in the Option dialog)
  2. Store the last position and window size.

Or a hint in which files where to look, so maybe I'll try it on the weekend or so ...

Cheers

@conkerts conkerts changed the title Gui Feature proposal enhancement request; GUI feature proposal Sep 17, 2018
@Koromix Koromix self-assigned this Sep 23, 2018
@Koromix
Copy link
Owner

Koromix commented Sep 23, 2018

Hi,

I don't know about the last position and size (on some OSes you can't even control that) but I'll definitely work on the first option for the next version. I'll make the line ending option a per-board setting and store it (per-board too).

@ghost
Copy link

ghost commented Sep 23, 2018

In Windows, it is inherent since Win 3.0 and works still today... maintain the Ctrl-Key while closing the window with a click onto the cross in the top right corner and the position will remain the same at next program start. I guess other OSs have similar options built in, so nothing to do on this developer level, handling and arranging program windows on the desktop is an OS task.

@ghost
Copy link

ghost commented Sep 23, 2018

In macOS, saving window size and position while closing is done with CMD-click on the red dot in the top left corner...

@conkerts
Copy link
Author

Hi,

I don't know about the last position and size (on some OSes you can't even control that) but I'll definitely work on the first option for the next version. I'll make the line ending option a per-board setting and store it (per-board too).

Cool, that sounds really good.

In Windows, it is inherent since Win 3.0 and works still today... maintain the Ctrl-Key while closing the window with a click onto the cross in the top right corner and the position will remain the same at next program start. I guess other OSs have similar options built in, so nothing to do on this developer level, handling and arranging program windows on the desktop is an OS task.

Interesting, I've never heard of that command and never used it since I started with win 98. And this ctrl command doesn't work with tycommander in W10.
Usually I don't watch for window behaviour, and with applications it works "intuitively" but in the case of tycommander, the app always starts in the middle of the screen, as a "quadratic" window, about 1/6th of the screen. Regardless if I resize it, and then close it. It appears every time in this default position.

But it's a good argument, I don't know, if it's an OS thing, or an app thing. Maybe it's somehow Qt related ? I guess this is something I could investigate. I'll look into the problem and Qt documentation, and report back.

@Theremingenieur
Copy link

As I see just now, that ctrl-close feature has been removed by MS from Win7, sorry for having given outdated information above. While this is for me still another proof that Windows is not a professional OS and should not be used, I discovered thanks to Google that there are lots of plugins, freeware and paid which restore that functionality in the most recent versions of MS Windows. In all OSs, caring about Window size and position is the responsibility of the windows manager which is an essential part of the OS’s GUI.

@conkerts
Copy link
Author

conkerts commented Sep 23, 2018

As I see just now, that ctrl-close feature has been removed by MS from Win7, sorry for having given outdated information above. While this is for me still another proof that Windows is not a professional OS and should not be used, I discovered thanks to Google that there are lots of plugins, freeware and paid which restore that functionality in the most recent versions of MS Windows. In all OSs, caring about Window size and position is the responsibility of the windows manager which is an essential part of the OS’s GUI.

No problem.
Haha, yeah, you're kicking at an open door here.
I wanted to switch to (K)Ubuntu for a while now, but there were some annoying driver issues with my Notebook and I lost motivation. And I don't want to live with 50% of the windows battery life.
But maybe it's time to test again.
W10 is "ok", but it annoys me as I just don't feel that I have control over my system. It has 1000 strange background tasks I can't control.

I agree, that this should be the responsibility of the window manager, but the app should be able to hint, what it wants.
And I checked now: usually all other programs (like windows explorer, thunderbird, libre office) get restored in the way I closed them.
It is really only tycommander, which ignores my changes and starts every time in the exact middle of my screen with always the same size xD
That's why I thought it's program related, but know I suspect it's Qt.

Ok, update:
I made a quick search and found these sources:
https://wiki.qt.io/Saving_Window_Size_State
http://doc.qt.io/archives/qt-4.8/restoring-geometry.html
https://stackoverflow.com/questions/74690/how-do-i-store-the-window-size-between-sessions-in-qt

As I understand, there are saveGeometry() and restoreGeometry() methods, which have to be called in the Mainwindow class.

As I understand the Mainwindow class is defined here
https://github.com/Koromix/tytools/blob/master/src/tycommander/main_window.cc
and the headers are here https://github.com/Koromix/tytools/blob/master/src/tycommander/main_window.hpp
Correct ?
Maybe I'll try it out in the next days ...

@conkerts conkerts changed the title enhancement request; GUI feature proposal GUI feature proposal Sep 24, 2018
@systronix
Copy link

@conkerts in general I find better battery life and performance on Ubuntu 18 vs Windows 10 Pro. FYI recently I loaded Lubuntu and for older systems with 4GB or less RAM it's great. Same core as Ubuntu just a simpler GUI which I don't mind at all.

@Koromix Koromix removed their assignment Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants