I am working on developing an extension to Firebug. In my tool I have one main panel with couple of toolbar buttons and side panels.
I have to delete/remove/add the side panel after it is registered with the main panel (specially, when I click on any toolbarbutton of the main panel). can I do it and if so how?
I did used Firebug.unregisterPanel(panelType, state); but this function still shows the side panel.
On Wednesday, March 7, 2012 7:21:05 PM UTC+1, pbale wrote:
> Hi,
> I am working on developing an extension to Firebug. In my tool I have one > main panel with couple of toolbar buttons and side panels.
> I have to delete/remove/add the side panel after it is registered with the > main panel (specially, when I click on any toolbarbutton of the main > panel). can I do it and if so how?
> I did used Firebug.unregisterPanel(panelType, state); but this function > still shows the side panel.
Yep, I can also see the problem. The UI is not properly updated (switching to another panel and back helps)
Please report a new issue, cross post here the number, and I'll fix it.
> On Wednesday, March 7, 2012 7:21:05 PM UTC+1, pbale wrote:
>> Hi,
>> I am working on developing an extension to Firebug. In my tool I have one >> main panel with couple of toolbar buttons and side panels.
>> I have to delete/remove/add the side panel after it is registered with >> the main panel (specially, when I click on any toolbarbutton of the main >> panel). can I do it and if so how?
>> I did used Firebug.unregisterPanel(**panelType, state); but this >> function still shows the side panel.
> Yep, I can also see the problem. The UI is not properly updated > (switching to another panel and back helps)
> Please report a new issue, cross post here the number, and I'll fix it.
> Honza
> -- > You received this message because you are subscribed to the Google > Groups "Firebug" group. > To post to this group, send email to firebug@googlegroups.com > To unsubscribe from this group, send email to > firebug+unsubscribe@googlegroups.com > For more options, visit this group at > https://groups.google.com/forum/#!forum/firebug
On Thursday, March 8, 2012 8:28:17 PM UTC+1, pbale wrote:
> Hi Honza,
> I reported the issue into Firebug and the issue number is: 5309 > Can you please fix this asap. I have to give a Demo on my tool in less > than a week.
On Thursday, March 8, 2012 9:03:43 PM UTC+1, Jan Honza Odvarko wrote:
> On Thursday, March 8, 2012 8:28:17 PM UTC+1, pbale wrote:
>> Hi Honza,
>> I reported the issue into Firebug and the issue number is: 5309 >> Can you please fix this asap. I have to give a Demo on my tool in less >> than a week.
> OK, putting this on top of my TODO list :-) > Honza
Thank you so much Honza. I did downloaded the new firebug 1.10.0a5.xpi and successfully able to delete and append the side panels . I did looked in to the sidePanel example. its very clear. I really appreciate it.
Thanks once again
Prasanna
On Fri, Mar 9, 2012 at 6:42 AM, Jan Honza Odvarko <odva...@gmail.com> wrote:
> On Thursday, March 8, 2012 9:03:43 PM UTC+1, Jan Honza Odvarko wrote:
>> On Thursday, March 8, 2012 8:28:17 PM UTC+1, pbale wrote:
>>> Hi Honza,
>>> I reported the issue into Firebug and the issue number is: 5309 >>> Can you please fix this asap. I have to give a Demo on my tool in less >>> than a week.
>> OK, putting this on top of my TODO list :-) >> Honza
> -- > You received this message because you are subscribed to the Google > Groups "Firebug" group. > To post to this group, send email to firebug@googlegroups.com > To unsubscribe from this group, send email to > firebug+unsubscribe@googlegroups.com > For more options, visit this group at > https://groups.google.com/forum/#!forum/firebug
I got a problem again with the creation of side panels. I am using Firebug
1.11.0a0
Now my panel have two toolbarbuttons say tb1 and tb2. tb1 has a side panel
sp1 and tb2 should have a sidepanel sp2.
Here is the procedure to reproduce the issue:
1. click on mypanel
2. click on toolbarbutton tb1 shows sidepanel sp1
3.click on toolbarbutton tb2 shows sidepanel sp2
4. again click on toolbarbutton tb1 does not show sp1
I can see the panel object having the sp1 panel but I don't see on the
mypanel in Firebug.
And again if I have a common sidepanel in both buttons its working fine.
Thank you in advance,
Prasanna
On Fri, Mar 9, 2012 at 11:49 PM, Prasanna Bale <bale.prasa...@gmail.com>wrote:
> Thank you so much Honza.
> I did downloaded the new firebug 1.10.0a5.xpi and successfully able to
> delete and append the side panels .
> I did looked in to the sidePanel example. its very clear. I really
> appreciate it.
> Thanks once again
> Prasanna
> On Fri, Mar 9, 2012 at 6:42 AM, Jan Honza Odvarko <odva...@gmail.com>wrote:
>> On Thursday, March 8, 2012 9:03:43 PM UTC+1, Jan Honza Odvarko wrote:
>>> On Thursday, March 8, 2012 8:28:17 PM UTC+1, pbale wrote:
>>>> Hi Honza,
>>>> I reported the issue into Firebug and the issue number is: 5309
>>>> Can you please fix this asap. I have to give a Demo on my tool in less
>>>> than a week.
>>> OK, putting this on top of my TODO list :-)
>>> Honza
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Firebug" group.
>> To post to this group, send email to firebug@googlegroups.com
>> To unsubscribe from this group, send email to
>> firebug+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> https://groups.google.com/forum/#!forum/firebug
> I got a problem again with the creation of side panels. I am using Firebug
> 1.11.0a0
> Now my panel have two toolbarbuttons say tb1 and tb2. tb1 has a side panel
> sp1 and tb2 should have a sidepanel sp2.
> Here is the procedure to reproduce the issue:
> 1. click on mypanel
> 2. click on toolbarbutton tb1 shows sidepanel sp1
> 3.click on toolbarbutton tb2 shows sidepanel sp2
> 4. again click on toolbarbutton tb1 does not show sp1
> I can see the panel object having the sp1 panel but I don't see on the
> mypanel in Firebug.
> And again if I have a common sidepanel in both buttons its working fine.
> Thank you in advance,
> Prasanna
> On Fri, Mar 9, 2012 at 11:49 PM, Prasanna Bale <bale.prasa...@gmail.com>wrote:
> > Thank you so much Honza.
> > I did downloaded the new firebug 1.10.0a5.xpi and successfully able to
> > delete and append the side panels .
> > I did looked in to the sidePanel example. its very clear. I really
> > appreciate it.
> > Thanks once again
> > Prasanna
> > On Fri, Mar 9, 2012 at 6:42 AM, Jan Honza Odvarko <odva...@gmail.com>wrote:
> >> On Thursday, March 8, 2012 9:03:43 PM UTC+1, Jan Honza Odvarko wrote:
> >>> On Thursday, March 8, 2012 8:28:17 PM UTC+1, pbale wrote:
> >>>> Hi Honza,
> >>>> I reported the issue into Firebug and the issue number is: 5309
> >>>> Can you please fix this asap. I have to give a Demo on my tool in less
> >>>> than a week.
> >>> OK, putting this on top of my TODO list :-)
> >>> Honza
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Firebug" group.
> >> To post to this group, send email to firebug@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> firebug+unsubscribe@googlegroups.com
> >> For more options, visit this group at
> >>https://groups.google.com/forum/#!forum/firebug
Please find the attached xpi of my extension called ainspector.xpi. This
works on Windows XP and Windows 7 and hopefully works on MAC.
Procedure to reproduce the problem.
1. Open FireFox , Open Firebug
2. Click on A11y Panel which will have 'Images', 'Controls' and 'Color
Contrast' toolbar buttons
3. By Default 'Images' toolbar button and 'Rule Results' side
panel are selected
4. Then click on 'Color Contrast' toolbar button will have 'Font
Properties' side panel
5. Now If I again click on 'Images' toolbar button, there would be no
side panel.
- My main javascript file is under chrome/content/ainspector-firebug.js
- The method AINSPECTOR_FB.tabPanelUtil.addAndRemoveSidePanels() takes
care of adding of removing the side panels is under
Chrome/content/panel-util.js
Please let me know if you need any other information.
Thanks,
Prasanna
On Wed, Aug 1, 2012 at 6:30 AM, Jan Honza Odvarko <odva...@gmail.com> wrote:
> > I got a problem again with the creation of side panels. I am using
> Firebug
> > 1.11.0a0
> > Now my panel have two toolbarbuttons say tb1 and tb2. tb1 has a side
> panel
> > sp1 and tb2 should have a sidepanel sp2.
> > Here is the procedure to reproduce the issue:
> > 1. click on mypanel
> > 2. click on toolbarbutton tb1 shows sidepanel sp1
> > 3.click on toolbarbutton tb2 shows sidepanel sp2
> > 4. again click on toolbarbutton tb1 does not show sp1
> > I can see the panel object having the sp1 panel but I don't see on the
> > mypanel in Firebug.
> > And again if I have a common sidepanel in both buttons its working fine.
> > Thank you in advance,
> > Prasanna
> > On Fri, Mar 9, 2012 at 11:49 PM, Prasanna Bale <bale.prasa...@gmail.com
> >wrote:
> > > Thank you so much Honza.
> > > I did downloaded the new firebug 1.10.0a5.xpi and successfully able to
> > > delete and append the side panels .
> > > I did looked in to the sidePanel example. its very clear. I really
> > > appreciate it.
> > > Thanks once again
> > > Prasanna
> > > On Fri, Mar 9, 2012 at 6:42 AM, Jan Honza Odvarko <odva...@gmail.com
> >wrote:
> > >> On Thursday, March 8, 2012 9:03:43 PM UTC+1, Jan Honza Odvarko wrote:
> > >>> On Thursday, March 8, 2012 8:28:17 PM UTC+1, pbale wrote:
> > >>>> Hi Honza,
> > >>>> I reported the issue into Firebug and the issue number is: 5309
> > >>>> Can you please fix this asap. I have to give a Demo on my tool in
> less
> > >>>> than a week.
> > >>> OK, putting this on top of my TODO list :-)
> > >>> Honza
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Firebug" group.
> > >> To post to this group, send email to firebug@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> firebug+unsubscribe@googlegroups.com
> > >> For more options, visit this group at
> > >>https://groups.google.com/forum/#!forum/firebug
> --
> You received this message because you are subscribed to the Google
> Groups "Firebug" group.
> To post to this group, send email to firebug@googlegroups.com
> To unsubscribe from this group, send email to
> firebug+unsubscribe@googlegroups.com
> For more options, visit this group at
> https://groups.google.com/forum/#!forum/firebug
1) The 'raw' argument in highlight method (panel-utils.js) was
undefined so, I appended the following condition
if (!row)
return;
So, I was able to see the toolbar with buttons (Images, Controls, …)
2) panel.name is an identifier it should not be translated
You should only translate the panel title (the title property).
3) The same for parentPanel it’s also an identifier and should not be
translated.
4) I wouldn’t recommend using DTD for locales, DTD entities are not
scriptable
and so you can’t avoid errors if there is a missing translation (DTD
entity) and e.g.
fallback to English string.
5) You don’t need an extra $AI_STR, just register your string bundle
with
Firebug.registerStringBundle and use Locale.$STR (or FBL.$STR)
6) dependents: should use identifiers of panels not titles.
> 1) The 'raw' argument in highlight method (panel-utils.js) was
> undefined so, I appended the following condition
> if (!row)
> return;
> So, I was able to see the toolbar with buttons (Images, Controls, …)
> 2) panel.name is an identifier it should not be translated
> You should only translate the panel title (the title property).
> 3) The same for parentPanel it’s also an identifier and should not be
> translated.
> 4) I wouldn’t recommend using DTD for locales, DTD entities are not
> scriptable
> and so you can’t avoid errors if there is a missing translation (DTD
> entity) and e.g.
> fallback to English string.
> 5) You don’t need an extra $AI_STR, just register your string bundle
> with
> Firebug.registerStringBundle and use Locale.$STR (or FBL.$STR)
> 6) dependents: should use identifiers of panels not titles.
> 7) You should consider switching to AMD syntax.
> Honza
> --
> You received this message because you are subscribed to the Google
> Groups "Firebug" group.
> To post to this group, send email to firebug@googlegroups.com
> To unsubscribe from this group, send email to
> firebug+unsubscribe@googlegroups.com
> For more options, visit this group at
> https://groups.google.com/forum/#!forum/firebug
> Thank you Honza for the solution of side panel and the suggestions. I will
> implement them and follow your feedback.
> Thank you once again.
> Prasanna
> On Thu, Aug 2, 2012 at 7:27 AM, Jan Honza Odvarko <odva...@gmail.com> wrote:
> > Hi Prasanna,
> > addAndRemoveSidePanels, should first, unregister the panel and then
> > registers new one.
> > (i.e. onRemoveSidePanel and then onAppendSidePanel);
> > It would be great if you can investigate the panel syncing logic here:
> > 1) The 'raw' argument in highlight method (panel-utils.js) was
> > undefined so, I appended the following condition
> > if (!row)
> > return;
> > So, I was able to see the toolbar with buttons (Images, Controls, …)
> > 2) panel.name is an identifier it should not be translated
> > You should only translate the panel title (the title property).
> > 3) The same for parentPanel it’s also an identifier and should not be
> > translated.
> > 4) I wouldn’t recommend using DTD for locales, DTD entities are not
> > scriptable
> > and so you can’t avoid errors if there is a missing translation (DTD
> > entity) and e.g.
> > fallback to English string.
> > 5) You don’t need an extra $AI_STR, just register your string bundle
> > with
> > Firebug.registerStringBundle and use Locale.$STR (or FBL.$STR)
> > 6) dependents: should use identifiers of panels not titles.
> > 7) You should consider switching to AMD syntax.
> > Honza
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Firebug" group.
> > To post to this group, send email to firebug@googlegroups.com
> > To unsubscribe from this group, send email to
> > firebug+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >https://groups.google.com/forum/#!forum/firebug