Window positioning saving!

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Locked
Janne82
Posts: 6
Joined: 2003-12-05 13:00
Location: Sweden
Contact:

Window positioning saving!

Post by Janne82 » 2003-12-05 13:03

Please implement a function for saving the window positions. I have my own style in DC++ and I would be very pleased if the windows could stay that way everytime I start up the program. Thanks!

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-12-05 13:19

Most windows do. PM and Hubs do not.

If I code the feature, favorite hubs are the only ones that will be saved. (This is on my list, but not high up.)

Janne82
Posts: 6
Joined: 2003-12-05 13:00
Location: Sweden
Contact:

Post by Janne82 » 2003-12-05 13:22

OK I want DC++ to start up the way I shut it down... Is that alot of work??

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-12-05 13:24

Yes.

(i.e. more than a couple lines, and spread across 12+ files)

Janne82
Posts: 6
Joined: 2003-12-05 13:00
Location: Sweden
Contact:

Post by Janne82 » 2003-12-05 13:25

OK when will that feature be added? Its on the top of MY list :wink:

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-12-05 13:29

I don't know, I cannot tell the future.

Janne82
Posts: 6
Joined: 2003-12-05 13:00
Location: Sweden
Contact:

Post by Janne82 » 2003-12-05 13:51

Oh I didn't need you to tell the future, just tell me what you think :D

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-12-05 14:26

So you want to know when the feature will be implemented, but don't need me to tell you the future, just what I think?

I hope that makes sense to you. ;)


This will get coded, I'm sure, but when... that's unknown, since there's no schedule or roadmap, and nobody is doing this as their job.

Janne82
Posts: 6
Joined: 2003-12-05 13:00
Location: Sweden
Contact:

Post by Janne82 » 2003-12-05 14:40

Oh well thats good enough, but I would like to see this feature long before I see any other features added...

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-12-05 14:43

Janne82 wrote:Oh well thats good enough, but I would like to see this feature long before I see any other features added...
Cold, hard cash perhaps? ;)
The world is coming to an end. Please log off.

DC++ Guide | Words

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-12-05 14:52

Sorry, my "interesting features" differ from yours. Perhaps one of the other programmers reading this finds it interesting and will code it for DC++... I can only answer for myself.

If you really want a feature, buy it, or somehow motivate a programmer to do it for you. (or code it yourself, if you have the luxury of knowing C++).

Sarf had an excellent post in a thread that I've linked several times about users, features, and motivation. ;)

Janne82
Posts: 6
Joined: 2003-12-05 13:00
Location: Sweden
Contact:

Post by Janne82 » 2003-12-05 17:24

here goes my C++ skills:
#include <iostream.h>

ok thats about it :lol:

Blippo
Posts: 5
Joined: 2003-12-04 05:06
Location: Finland

Post by Blippo » 2003-12-22 03:58

I'd do a patch for it, IF someone would buy me Visual Studio .NET, since using VC6 is not an anlternative anymore ;)


But anyways, it can't be too hard, if gargoyle would give some hints on where to start.

Why 12+ files, doesn't the GUI code know of all it's windows in one centered place, so it can read coordinates?

I guess the window sizes should end up in the XML config file (aha, more files to edit), or should it go into the registry?

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-12-22 12:02

Blippo wrote:I'd do a patch for it, IF someone would buy me Visual Studio .NET, since using VC6 is not an anlternative anymore ;)
You can program, but getting DC++ to work in VS6 is too hard? I feel sorry for you. ;)
But anyways, it can't be too hard, if gargoyle would give some hints on where to start.
Take a look in the ::OnCreate functions in the window classes. You can look specifically at HubFrame, because it will pull window sizes from SettingsManager already.
Why 12+ files, doesn't the GUI code know of all it's windows in one centered place, so it can read coordinates?
Because each window is its own class and its own file. Using inheritance to implement most of the code in a base class isn't really an option, though...
I guess the window sizes should end up in the XML config file (aha, more files to edit), or should it go into the registry?
No, I was thinking you'd add additional attributes to favorite users and for favorite hubs, and explicitly say "Only saves the position of favorite hubs and favorite users" in the feature description.

That keeps you from having to keep a LRU cache of window sizes and positions (or just keeping all of them... which would get ugly after a number of months).

PPK
Posts: 9
Joined: 2003-01-03 17:11
Contact:

Post by PPK » 2003-12-24 05:35

Hubs window position, size and chat / userlist separator saving for favorite hubs is done in CZDC++ ... if anyone want :D

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-12-24 12:59

PPK wrote:Hubs window position, size and chat / userlist separator saving for favorite hubs is done in CZDC++ ... if anyone want :D
Hahaha? Well, if you're not going to give Arne a patch... ;)

Locked