[sip-comm-dev] Layout manipulation...


#1

Hi,

I´m trying to change some parts of the SC gui, but I´m having a bad time because of the organization of the packages. What I mean is that when I, for instance, want to add some other functionality to any of the several interfaces that the SC has, the Visual Editor (plug in that I installed into the eclipse) can´t process multiple packages so that I could see all the interface of a specific part of the SC.

I don´t know if I was clear enough... but if you have any suggestions.. maybe a better visual editor plug in? because working with it will make live much easier..

BR,

Juan Freitas
Analyst

.............................................................................................................

Novabase
Av. Eng. Duarte Pacheco, 15F . 1099-078 Lisboa - Portugal
Tel. (+351) 213 836 300 . Fax (+351) 213 836 301 .
mailto:juan.freitas@novabase.pt
www.novabase.pt <http://www.novabase.pt/>


#2

Hi Juan,

I have never used Visual Editor, so I'm not sure to be able to help you with this one.

However you could check these two plugins, which seem to be the top rated plugins for the job:
- "Jigloo SWT/Swing GUI Builder" (http://www.eclipseplugincentral.com/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=53) - "JFormDesigner - Swing GUI Designer" (http://www.eclipseplugincentral.com/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=799).

If you decide to try them out, we'll be glad if you share your experience afterwards.

Cheers,
Yana

Juan Freitas wrote:

···

Hi,

I�m trying to change some parts of the SC gui, but I�m having a bad time because of the organization of the packages. What I mean is that when I, for instance, want to add some other functionality to any of the several interfaces that the SC has, the Visual Editor (plug in that I installed into the eclipse) can�t process multiple packages so that I could see all the interface of a specific part of the SC.

I don�t know if I was clear enough... but if you have any suggestions.. maybe a better visual editor plug in? because working with it will make live much easier..

BR,

Juan Freitas
Analyst

.............................................................................................................

Novabase
Av. Eng. Duarte Pacheco, 15F . 1099-078 Lisboa - Portugal
Tel. (+351) 213 836 300 . Fax (+351) 213 836 301 . mailto:juan.freitas@novabase.pt
www.novabase.pt <http://www.novabase.pt/>

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


#3

Hi everyone.
Juat update to the latest version and now I´m having this error:
symbol : variable WINDOW_LOGO
    [javac] location: class net.java.sip.communicator.impl.gui.utils.ImageLoader
    [javac] this.setWizzardIcon(ImageLoader.getImage(ImageLoader.WINDOW_LOGO));
Can someone please correct this?
Thanks,
Joel.

···

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


#4

I think I discover a bug in the way that SC is handling the presence.

This is the sceanario:
- A SC (let´s call it A) in a machine and a SC (B) in other machine.
- Peer-to-peer mode disabled in both SCs.

When B connects to the sip server and as already the A in its contact list, when A connect to the server as Online, B cant see the new status of A.
If A chage its status to Away, Busy or On-the-Phone, B can see the difference, but if A changes it status to Online again, B see A as Offline.

Did someone notice this?

BR,
Joel.

···

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


#5

Hi again,

Sorry for bothering you one more time.

I already installed the Jigloo plugin as Yana recommended me. But, I still have the same problem... I continue without seeing an entire part of a layout. For example if I open the Mainframe.java, It would be nice to see all the components of this interface...I don't know if the Jigloo automatically can call all the other classes that are part of this MainFrame...?

When you guys developed the swing interface did you use any swing editor to help you?

Juan Freitas
Analyst

.............................................................................................................

Novabase
Av. Eng. Duarte Pacheco, 15F . 1099-078 Lisboa - Portugal
Tel. (+351) 213 836 300 . Fax (+351) 213 836 301 .
mailto:juan.freitas@novabase.pt
www.novabase.pt

···

-----Original Message-----

From: Yana Stamcheva [mailto:yana@sip-communicator.org]

Sent: terça-feira, 16 de Outubro de 2007 16:03
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] Layout manipulation...

Hi Juan,

I have never used Visual Editor, so I'm not sure to be able to help you
with this one.

However you could check these two plugins, which seem to be the top
rated plugins for the job:
- "Jigloo SWT/Swing GUI Builder"
(http://www.eclipseplugincentral.com/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=53)
- "JFormDesigner - Swing GUI Designer"
(http://www.eclipseplugincentral.com/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=799).

If you decide to try them out, we'll be glad if you share your
experience afterwards.

Cheers,
Yana

Juan Freitas wrote:

Hi,

I´m trying to change some parts of the SC gui, but I´m having a bad time because of the organization of the packages. What I mean is that when I, for instance, want to add some other functionality to any of the several interfaces that the SC has, the Visual Editor (plug in that I installed into the eclipse) can´t process multiple packages so that I could see all the interface of a specific part of the SC.

I don´t know if I was clear enough... but if you have any suggestions.. maybe a better visual editor plug in? because working with it will make live much easier..

BR,

Juan Freitas
Analyst

.............................................................................................................

Novabase
Av. Eng. Duarte Pacheco, 15F . 1099-078 Lisboa - Portugal
Tel. (+351) 213 836 300 . Fax (+351) 213 836 301 .
mailto:juan.freitas@novabase.pt
www.novabase.pt <http://www.novabase.pt/>

---------------------------------------------------------------------
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


#6

Hi all,
   
  When interfacing s-c and window�s RTC stack, I had no audio coming from the RTC stack.
  Looking at the code, it appeared that the s-c does not handle the dynamic RTP payload at all.
   
  From rfc2198:
   
  "SDP has a mechanism for
   binding a dynamic payload types to particular codec, sample rate, and
   number of channels using the "rtpmap" attribute. An example of its
   use (using the RTP audio/video profile [3]) is:

       m=audio 12345 RTP/AVP 121 0 5
       a=rtpmap:121 red/8000/1

   This specifies that an audio stream using RTP is using payload types
   121 (a dynamic payload type), 0 (PCM u-law) and 5 (DVI). The "rtpmap"
   attribute is used to bind payload type 121 to codec "red" indicating
   this codec is actually a redundancy frame, 8KHz, and monaural."
   
  As long as you are using s-c to s-c it works fine, as both sides make the same mapping. Only interfacing with another client...
   
  Do you want me to send a fix?
   
  Michael


#7

Hi Joel,

Sorry it's my fault! I have just forgot to commit something. It should be ok now.

Yana

Joel Silva wrote:

···

Hi everyone.
Juat update to the latest version and now I�m having this error:
symbol : variable WINDOW_LOGO
    [javac] location: class net.java.sip.communicator.impl.gui.utils.ImageLoader
    [javac] this.setWizzardIcon(ImageLoader.getImage(ImageLoader.WINDOW_LOGO));
Can someone please correct this?
Thanks,
Joel.

---------------------------------------------------------------------
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


#8

Hi Juan,

Juan Freitas wrote:

Hi again,

Sorry for bothering you one more time.

I already installed the Jigloo plugin as Yana recommended me. But, I still have the same problem... I continue without seeing an entire part of a layout. For example if I open the Mainframe.java, It would be nice to see all the components of this interface...I don't know if the Jigloo automatically can call all the other classes that are part of this MainFrame...?

When you guys developed the swing interface did you use any swing editor to help you?

Sorry, we haven't used any of these plugins, all the GUI was written manually.

I understand now what you mean, but I have no idea how this could be fixed, you should may be ask on the Jigloo mailing list if there's a way to fix that.

Cheers,
Yana

···

Juan Freitas
Analyst

.............................................................................................................

Novabase
Av. Eng. Duarte Pacheco, 15F . 1099-078 Lisboa - Portugal
Tel. (+351) 213 836 300 . Fax (+351) 213 836 301 . mailto:juan.freitas@novabase.pt
www.novabase.pt

-----Original Message-----
From: Yana Stamcheva [mailto:yana@sip-communicator.org] Sent: ter�a-feira, 16 de Outubro de 2007 16:03
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] Layout manipulation...

Hi Juan,

I have never used Visual Editor, so I'm not sure to be able to help you with this one.

However you could check these two plugins, which seem to be the top rated plugins for the job:
- "Jigloo SWT/Swing GUI Builder" (http://www.eclipseplugincentral.com/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=53) - "JFormDesigner - Swing GUI Designer" (http://www.eclipseplugincentral.com/modules.php?op=modload&name=Web_Links&file=index&req=viewlink&cid=799).

If you decide to try them out, we'll be glad if you share your experience afterwards.

Cheers,
Yana

Juan Freitas wrote:

Hi,

I�m trying to change some parts of the SC gui, but I�m having a bad time because of the organization of the packages. What I mean is that when I, for instance, want to add some other functionality to any of the several interfaces that the SC has, the Visual Editor (plug in that I installed into the eclipse) can�t process multiple packages so that I could see all the interface of a specific part of the SC.

I don�t know if I was clear enough... but if you have any suggestions.. maybe a better visual editor plug in? because working with it will make live much easier..

BR,

Juan Freitas
Analyst

.............................................................................................................

Novabase
Av. Eng. Duarte Pacheco, 15F . 1099-078 Lisboa - Portugal
Tel. (+351) 213 836 300 . Fax (+351) 213 836 301 . mailto:juan.freitas@novabase.pt
www.novabase.pt <http://www.novabase.pt/>

---------------------------------------------------------------------
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

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


#9

Hi again Joel,

Thanks for reporting this. I'll need more informations on this problem to fix the bug if there is any. Can you please send me a trafic capture and the log of the execution of a such scenario on both machines ?

Thanks in advance,
Ben.

Joel Silva a �crit :

···

I think I discover a bug in the way that SC is handling the presence.

This is the sceanario:
- A SC (let�s call it A) in a machine and a SC (B) in other machine.
- Peer-to-peer mode disabled in both SCs.

When B connects to the sip server and as already the A in its contact list, when A connect to the server as Online, B cant see the new status of A.
If A chage its status to Away, Busy or On-the-Phone, B can see the difference, but if A changes it status to Online again, B see A as Offline.

Did someone notice this?

BR,
Joel.

---------------------------------------------------------------------
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


#10

Seems like this would be relevant to FMJ, I'd certainly be interested in seeing the fix...

Ken

mik wrote:

···

Hi all,
When interfacing s-c and window's RTC stack, I had no audio coming from the RTC stack.
Looking at the code, it appeared that the s-c does not handle the dynamic RTP payload at all.
From rfc2198:
"SDP has a mechanism for
   binding a dynamic payload types to particular codec, sample rate, and
   number of channels using the "rtpmap" attribute. An example of its
   use (using the RTP audio/video profile [3]) is:

       m=audio 12345 RTP/AVP 121 0 5
       a=rtpmap:121 red/8000/1

   This specifies that an audio stream using RTP is using payload types
   121 (a dynamic payload type), 0 (PCM u-law) and 5 (DVI). The "rtpmap"
   attribute is used to bind payload type 121 to codec "red" indicating
   this codec is actually a redundancy frame, 8KHz, and monaural."
As long as you are using s-c to s-c it works fine, as both sides make the same mapping. Only interfacing with another client...
Do you want me to send a fix?
Michael


#11

It´s Ok!
Thanks,

Joel Silva
Analyst
.............................................................................................................
Novabase
Av. Eng. Duarte Pacheco, 15F . 1099-078 Lisboa - Portugal
Tel. (+351) 213 836 300 . Fax (+351) 213 836 301 .
mailto:joel.silva@novabase.pt
www.novabase.pt

···

-----Original Message-----

From: Yana Stamcheva [mailto:yana@sip-communicator.org]

Sent: quarta-feira, 17 de Outubro de 2007 10:28
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] Missing WINDOW_LOGO

Hi Joel,

Sorry it's my fault! I have just forgot to commit something. It should be ok now.

Yana

Joel Silva wrote:

Hi everyone.
Juat update to the latest version and now I´m having this error:
symbol : variable WINDOW_LOGO
    [javac] location: class net.java.sip.communicator.impl.gui.utils.ImageLoader
    [javac]
this.setWizzardIcon(ImageLoader.getImage(ImageLoader.WINDOW_LOGO));
Can someone please correct this?
Thanks,
Joel.

---------------------------------------------------------------------
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

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


#12

Hi All,
   
  When attempting to disable the video track due to synchronization issue, I have found a bug in the setting routine. It was not disabling unmatched tracks.
   
  In file CallSessionImpl.java. Here is the fix:
   
  /**
     * We'll loop through the tracks and try to find a track
     * that can be converted to the given format.
     */
    boolean setEachTrackFormat(TrackControl tcs[], Format fmt) {
        boolean atLeastOneTrack = false;
        Format supported[];
        Format f;
        for (int i = 0; i < tcs.length; i++) {
            boolean found = false;
            supported = tcs[i].getSupportedFormats();
            if (supported == null)
                continue;
            
            for (int j = 0; j < supported.length; j++) {
                if (fmt.matches(supported[j]) &&
                        (f = fmt.intersects(supported[j])) != null &&
                        tcs[i].setFormat(f) != null) {
                    logger.debug("Setting track control to: " + f.toString());
                    // Success.
                    atLeastOneTrack = found = true;
                    break;
                }
            }
            tcs[i].setEnabled(found); //Enable/ Disable this track.
        }
        return atLeastOneTrack;
    }


#13

Hello Mik,

Thanks for sending over your patch, and sorry it took us so long to reply.

Before applying the patch however, I would need some more details:

1. What is the unwanted behaviour that you are getting without this patch?

2. How does the patch fix it?

3. Can you please create a real patch using svn diff, because right now
I don't quite understand where you'd like this method to be used.

Cheers
Emil

mik wrote:

···

Hi All,

When attempting to disable the video track due to synchronization issue,
I have found a bug in the setting routine. It was not disabling
unmatched tracks.

In file CallSessionImpl.java. Here is the fix:

/**
     * We'll loop through the tracks and try to find a track
     * that can be converted to the given format.
     */
    boolean setEachTrackFormat(TrackControl tcs[], Format fmt) {
        boolean atLeastOneTrack = false;
        Format supported[];
        Format f;
        for (int i = 0; i < tcs.length; i++) {
            boolean found = false;
            supported = tcs[i].getSupportedFormats();
            if (supported == null)
                continue;
           
            for (int j = 0; j < supported.length; j++) {
                if (fmt.matches(supported[j]) &&
                        (f = fmt.intersects(supported[j])) != null &&
                        tcs[i].setFormat(f) != null) {
                    logger.debug("Setting track control to: " +
f.toString());
                    // Success.
                    atLeastOneTrack = found = true;
                    break;
                }
            }
            tcs[i].setEnabled(found); //Enable/ Disable this track.
        }
        return atLeastOneTrack;
    }

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