[sip-comm-dev] Systray


#1

Hello Folks!

Is it the same with you, i.e. you have to hold down the right mouse button or else the menu disappears? I mean, is it a bug or a feature?

Thanks,
--Pavel Tankov

···

----- Original Message ----

From: Alexander Pelov <a_pelov@yahoo.com>

To: dev@sip-communicator.dev.java.net
Sent: Tuesday, March 20, 2007 4:52:56 PM
Subject: Re: [sip-comm-dev] Systray

Hi Romain,

I'm also with Mac OS X and with the latest version
(downloaded from the site) the menu in the systray
seems to be working - when I right-click on the
systray icon I get a menu with four items - Settings,
Add contact, Set status and Close, which actually work
:))

The only thing is that you have to really RIGHT -
click - ie. the standard Mac combination (Ctrl+click)
doesn't work - maybe this should be added as
functionality.

Best regards,
Alex

PS. Great job with the systray, thanks !

--- Romain KUNTZ <kuntz@sfc.wide.ad.jp> wrote:

Hi Yana,

Great news, thanks to Nicolas for this plugin, and
to you for the
integration!

Looks like one of the problem I had on MacOSX some
times ago (the
systray icon did not have any effect) has
diseappeared! Great!

However, when I click on the systray, except the
fact that the contact
window diseapper/appear, is there any specific menu
that is supposed to
appear? You seem to say so ("now we could open from
the systray the
"Add contact wizard""), but I do not see any on my
mac. Is there a
specific combo to perform to get it? :slight_smile:

thanks,
romain

Yana Stamcheva wrote:
> Hi all,
>
> I have already send a mail for the systray, but
this is more official;)
>
> To all of you who had waited for so long to have a
systray, thanks to
> Nicolas we have it! He's the hero of the day:))
>
> Oh and guess what, you could not anymore exit the
application only by
> clicking the "x" button.
>
> p.s. Unfortunately I didn't have the time to test
it for all platforms,
> so be patient if something doesn't work properly
and drop a few lines to
> the mailing list to explain the problem;)
>
> Thanks,
> Yana
>
> Yana Stamcheva wrote:
>> Hi Nicolas,
>>
>> I've just finished the integration of your plugin
in the SIP
>> Communicator and committed it to the cvs.
>>
>> You have done a great work!! The code is well
written, well documented
>> and easy to understand. Bravo!
>>
>> I've fixed the problem with the account status
that was in the gui and
>> this works now. I've also implemented all methods
needed in order to
>> open one of the gui windows and now we could open
from the systray the
>> "Add contact wizard". However I had to remove
your add contact
>> submenu, not because it was wrong, but because we
don't have in the
>> gui a form that could be used to make the
scenario that you thought of
>> (opening an add contact window for an already
choosen account).
>>
>> I haven't fixed the problem with the
SecurityAuthority yet. I'm
>> planning to do it today.
>>
>> Bravo again:)
>>
>> Yana
>>
>> Yana Stamcheva wrote:
>>> Hi Nicolas,
>>>
>>> Nicolas Chamouard wrote:
>>>> Hello,
>>>>
>>>> I am working on the systray plugin
(sc-systray.dev.java.net) within a
>>>> project of my University. It is hosted on
sc-systray.dev.java.net and
>>>> I hope that it will be soon integrated to
sip-communicator.
>>>>
>>>>
>>>> Some issues remains, among them a few that I
cannot solve by myself
>>>> and I am looking for your help :
>>>>
>>>>
>>>> - Under unix systems the icon in the systray
provided by jdic is
>>>> surrounded by an ugly border. It would be great
to remove it but I
>>>> haven't been able to find how it was created in
the jdic library
>>>> source code. It seems that the matter is a
little more complex that
>>>> just removing a "paintBorder" method, as I
expected.
>>>>
>>>
>>> I'll take care of this.
>>>
>>>> - I have designed a menu that allow the user to
change the status for
>>>> each protocol, very much like the bar at the
bottom of the
>>>> contact-list. Unfortunately, when the status is
changed with the
>>>> systray plugin, the contact list is not
correctly updated and displays
>>>> the previous status (this does not happen with
an offline/online
>>>> switch).
>>>>
>>>
>>> This was all my fault. I've just committed a fix
for that. Let me
>>> know if it works for you.
>>>
>>>> - Another problem with the status menu : when a
protocol is set online
>>>> and the related password has not been saved,
nothing happens. Indeed,
>>>> a Window should appear to ask the user for the
password. But the code
>>>> of this window is in /impl/gui/ and therefore I
cannot use it. I could
>>>> rewrite it all but it feel that it would be an
ugly way to solve the
>>>> problem.
>>>>
>>>
>>> No it's not the best way, you're right. We've
discussed with Emil and
>>> he suggested to have a LoginWindow, which will
be exported from the
>>> gui and you should implement in your plugin the
SecurityAuthority, by
>>> showing when needed the window obtained from the
UIService. I think
>>> that's a good idea. I'll work on that these days
and I'll let you
>>> know when I'm finished. Meanwhile you could take
a look to the
>>> SecurityAuthority implementation in the gui.
>>>
>>>> - I should add some error messages when an
error occurs while changing
>>>> the status but I do not know what is worth
bothering the user, and
>>>> what is not.
>>>
>>> You could have a look to the
PresenceStatusSelectorBox class in the
>>> gui and see what are the messages that gui shows
to the user.
>>>
>>>>
>>>> - A menu should allow to add a new contact for
each protocol. I have
>>>> tried to use the methods in "UIService" to do
so, but their behavior
>>>> is queer. For instance, getApplicationWindows()
should return an
>>>> iterator of all available windows but it only
return "null". A quick
>>>> look in the code of this class shows me that no
element is ever put in
>>>> the hashtable corresponding to this iterator.
>>>>
>>>
>>> Yes, I know that. I've fix that already, but I
need few days (no more
>>> than 2 days) to finish some other things before
committing it.
>>>
>>>> Thanks in advance !
>>>>
>>>
>>> Thanks to you:)
>>> Yana
>>>
>>>>
>>>> Nicolas Chamouard
>>>>
>>>>

---------------------------------------------------------------------

>>>> To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
>>>> For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net
>>>>
>>>>
>>>
>>
>
>

---------------------------------------------------------------------

> To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
> For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net
>

--
Romain KUNTZ
kuntz@sfc.wide.ad.jp

---------------------------------------------------------------------

To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hi Pavel,

it's a bug on java 1.6 :(( Unfortunately this comes from the jdic library, so I should see with the guys from jdic how to fix the problem.

Yana

Pavel Tankov wrote:

···

Hello Folks!

Is it the same with you, i.e. you have to hold down the right mouse button or else the menu disappears? I mean, is it a bug or a feature?

Thanks,
--Pavel Tankov

----- Original Message ----
From: Alexander Pelov <a_pelov@yahoo.com>
To: dev@sip-communicator.dev.java.net
Sent: Tuesday, March 20, 2007 4:52:56 PM
Subject: Re: [sip-comm-dev] Systray

Hi Romain,

I'm also with Mac OS X and with the latest version
(downloaded from the site) the menu in the systray
seems to be working - when I right-click on the
systray icon I get a menu with four items - Settings,
Add contact, Set status and Close, which actually work
:))

The only thing is that you have to really RIGHT -
click - ie. the standard Mac combination (Ctrl+click)
doesn't work - maybe this should be added as
functionality.

Best regards,
Alex

PS. Great job with the systray, thanks !

--- Romain KUNTZ <kuntz@sfc.wide.ad.jp> wrote:

Hi Yana,

Great news, thanks to Nicolas for this plugin, and
to you for the integration!

Looks like one of the problem I had on MacOSX some
times ago (the systray icon did not have any effect) has
diseappeared! Great!

However, when I click on the systray, except the
fact that the contact window diseapper/appear, is there any specific menu
that is supposed to appear? You seem to say so ("now we could open from
the systray the
"Add contact wizard""), but I do not see any on my
mac. Is there a specific combo to perform to get it? :slight_smile:

thanks,
romain

Yana Stamcheva wrote:

Hi all,

I have already send a mail for the systray, but

this is more official;)

To all of you who had waited for so long to have a

systray, thanks to

Nicolas we have it! He's the hero of the day:))

Oh and guess what, you could not anymore exit the

application only by

clicking the "x" button.

p.s. Unfortunately I didn't have the time to test

it for all platforms,

so be patient if something doesn't work properly

and drop a few lines to

the mailing list to explain the problem;)

Thanks,
Yana

Yana Stamcheva wrote:

Hi Nicolas,

I've just finished the integration of your plugin

in the SIP

Communicator and committed it to the cvs.

You have done a great work!! The code is well

written, well documented

and easy to understand. Bravo!

I've fixed the problem with the account status

that was in the gui and

this works now. I've also implemented all methods

needed in order to

open one of the gui windows and now we could open

from the systray the

"Add contact wizard". However I had to remove

your add contact

submenu, not because it was wrong, but because we

don't have in the

gui a form that could be used to make the

scenario that you thought of

(opening an add contact window for an already

choosen account).

I haven't fixed the problem with the

SecurityAuthority yet. I'm

planning to do it today.

Bravo again:)

Yana

Yana Stamcheva wrote:

Hi Nicolas,

Nicolas Chamouard wrote:

Hello,

I am working on the systray plugin

(sc-systray.dev.java.net) within a

project of my University. It is hosted on

sc-systray.dev.java.net and

I hope that it will be soon integrated to

sip-communicator.

Some issues remains, among them a few that I

cannot solve by myself

and I am looking for your help :

- Under unix systems the icon in the systray

provided by jdic is

surrounded by an ugly border. It would be great

to remove it but I

haven't been able to find how it was created in

the jdic library

source code. It seems that the matter is a

little more complex that

just removing a "paintBorder" method, as I

expected.

I'll take care of this.

- I have designed a menu that allow the user to

change the status for

each protocol, very much like the bar at the

bottom of the

contact-list. Unfortunately, when the status is

changed with the

systray plugin, the contact list is not

correctly updated and displays

the previous status (this does not happen with

an offline/online

switch).

This was all my fault. I've just committed a fix

for that. Let me

know if it works for you.

- Another problem with the status menu : when a

protocol is set online

and the related password has not been saved,

nothing happens. Indeed,

a Window should appear to ask the user for the

password. But the code

of this window is in /impl/gui/ and therefore I

cannot use it. I could

rewrite it all but it feel that it would be an

ugly way to solve the

problem.

No it's not the best way, you're right. We've

discussed with Emil and

he suggested to have a LoginWindow, which will

be exported from the

gui and you should implement in your plugin the

SecurityAuthority, by

showing when needed the window obtained from the

UIService. I think

that's a good idea. I'll work on that these days

and I'll let you

know when I'm finished. Meanwhile you could take

a look to the

SecurityAuthority implementation in the gui.

- I should add some error messages when an

error occurs while changing

the status but I do not know what is worth

bothering the user, and

what is not.

You could have a look to the

PresenceStatusSelectorBox class in the

gui and see what are the messages that gui shows

to the user.

- A menu should allow to add a new contact for

each protocol. I have

tried to use the methods in "UIService" to do

so, but their behavior

is queer. For instance, getApplicationWindows()

should return an

iterator of all available windows but it only

return "null". A quick

look in the code of this class shows me that no

element is ever put in

the hashtable corresponding to this iterator.

Yes, I know that. I've fix that already, but I

need few days (no more

than 2 days) to finish some other things before

committing it.

Thanks in advance !

Thanks to you:)
Yana

Nicolas Chamouard

---------------------------------------------------------------------

To unsubscribe, e-mail:

dev-unsubscribe@sip-communicator.dev.java.net

For additional commands, e-mail:

dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------

To unsubscribe, e-mail:

dev-unsubscribe@sip-communicator.dev.java.net

For additional commands, e-mail:

dev-help@sip-communicator.dev.java.net
--
Romain KUNTZ
kuntz@sfc.wide.ad.jp

---------------------------------------------------------------------

To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

____________________________________________________________________________________
Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net