Implementing oDC's Userlist Filter feature in DC++ 0.301?

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Ferus
Posts: 29
Joined: 2003-11-12 14:57
Location: Sthlm, Sweden

Implementing oDC's Userlist Filter feature in DC++ 0.301?

Post by Ferus » 2003-11-13 07:12

Do you know the little lovely textfield below the userlist in oDC++?
To the right of it, you have a listbox where you can choose whether to filter the search in the Nick, Desc, Share etc and it is in "realtime" or what to say so when you choose to filter description, just typing e.g "0.2" in the textfield will show ONLY all clients using version 0.2x.

I want to extract that part out of the oDC++ project and implement it in DC++ 0.301.

Since I'm a newbie, I could need a pointing hand here because this is just a wish that I have.

If you have the time and will to put yourself into it a little bit and tell me a little about how to proceed, I'd be more than greatful :)

F.Y.I

I use .NET 2003 Ent Arch + Core SDK + WTL 7.0 + DCPlusPlus-STLPort-4.5.1020

Twink
Posts: 436
Joined: 2003-04-01 04:31
Location: New Zealand

Post by Twink » 2003-11-13 07:33

.PhantomDC is based on BCDC 0.301, and also has the userlist filter from oDC (plus some other oDC features).
http://pdc.recoil.net.nz/

If you still wanna do this in your own mod I'm still willing to help you thou.

Ferus
Posts: 29
Joined: 2003-11-12 14:57
Location: Sthlm, Sweden

Post by Ferus » 2003-11-13 11:17

Thanks for the link :) I'm gonna check it out!

But I really would like to do this on my own. It would be a nice lession and if you're up to it.... let's rock 8)

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

Re: Implementing oDC's Userlist Filter feature in DC++ 0.301

Post by GargoyleMT » 2003-11-13 17:21

Ferus wrote:I want to extract that part out of the oDC++ project and implement it in DC++ 0.301.


This feature is likely in windows\HubFrame.cpp and .h - this is the home for nearly all of the code for the main chat/hub windows. You might find that some of Opera's features are linked to his own Opera's own utility helper classes - I think they're named oUtils.cpp/h.

This should get you going in the right direction... I don't know the oDC source well though. ;)

Ferus
Posts: 29
Joined: 2003-11-12 14:57
Location: Sthlm, Sweden

Post by Ferus » 2003-11-13 23:35

I'm in the "learning mode" :) I've got the will, I'm stubborn and gonna get there eventually... Right now I'm interested in Twinks suggestion, it's just that I like the .PhantomDC++ very much now (thanks for that one) and now I'd like to implment an ignore/unignore feature as a contextmenu option for the userlist, with the pDC client instead :P

Should probably not be that hard, but I'm to "out of it"... gonna get there but sticking my head right down into this procject is a nice thing and I'm the experimenting kinda guy that want to "learn by practising" (still I have my nose down in the books constantly so I'm not begging for the complete solution for it...

Twink or anyone else... up for a little tutorial issue here? :)

Regards,

Ferus

Twink
Posts: 436
Joined: 2003-04-01 04:31
Location: New Zealand

Post by Twink » 2003-11-14 00:15

As Gargoyle said alot of features in oDC are tied into its own utils and lib, which can make it hard to use certain features from, although alot of the functions in the utils now have a dc++ equivilent, so with a bit of work can be ported. PhantomDC's copy of the user filter is tied in with its regular expression engine.

Anyway back to the topic, you want to implement and ignore feature for pdc, what does this do exactly?, pdc already has a mute/unmute feature (ignore/unignore from bcdc I believe just renamed, although I might be wrong), which simply ignores a users messages to main chat. Which extends to the automute function that can be used for floods (although its not perfect). It doesn't however stop Private Messages, or people downloading off you.

Ferus
Posts: 29
Joined: 2003-11-12 14:57
Location: Sthlm, Sweden

Post by Ferus » 2003-11-14 00:25

You got that right... gotta think a bit further before posting so I won't spam the forum ;)

BUT... I miss one function.... do a search and right-click on a user and you won't find the "go to file" option... only "get file list". Now THAT should be possible to fix, right? ;p

Twink
Posts: 436
Joined: 2003-04-01 04:31
Location: New Zealand

Post by Twink » 2003-11-14 02:57

yeah i've had a few requests for that feature, it should be in the next release.

Ferus
Posts: 29
Joined: 2003-11-12 14:57
Location: Sthlm, Sweden

Post by Ferus » 2003-11-14 10:10

nice :) Looking forward to that release.

Who is online

Users browsing this forum: Google [Bot] and 0 guests