Dynamically, to replace a Panel in a palette?

Hi, my question is this:

My plugin has a palette with a Panel and two modes. These two modes are expected to show another Panel in the same palette. the transition from one mode to the other, the content of the palette (aka the Panel itself) are replaced with the sign of the second mode.

I already looked at the example DynamicPanel, but this does not replace the Panel, but it dynamically creates new palettes with new panels.

Thanks for any help I can get!

Dirk and Bartek thanks for your answers!

I ended up do like I said before, because it has proved to be the easiest way.

I included all the widgets in a Panel and set them visible/invisible mode. the code is as easy as the following.

(in my c ++ method where I check for mode)

IControlView * SomeButtonControlView = VARUtils::GetWidgetOnPanel (kMyPanelWidgetID, kSomeButtonWidgetID); acquire the controlview in the specified widget

check for my condition

If (loggedIn is true)

{

SomeButtonControlView-> ShowView();

} else {}

SomeButtonControlView-> HideView();

}

VARUtils::GetWidgetOnPanel method

/ * GetWidgetOnPanel

*/

VARUtils::GetWidgetOnPanel (IControlView *)

const WidgetID & panelWidgetID, const WidgetID & widgetID)

{

IControlView * controlView = nil;

do

{

InterfacePtr

panelData (Utils()-> QueryPanelByWidgetID (panelWidgetID));

Do not say, fail silently, the tree view panel can be closed.

if(panelData == Nil)

{

break;

}

controlView = panelData-> FindWidget (widgetID);

Assert (controlView);

if(controlView == Nil)

{

break;

}

} while (0);

Return controlView;

}

Thanks for your answers, they helped me understand what I needed!

Tags: InDesign

Similar Questions

  • Replace the Panel of e/s on Presario SR5310F

    I have a desktop Presario SR5310F of a handicapped with a panel of IO before damaged friend.  There was a USB unit plugged into the front panel and the cord was tripped and pulled on the hard side.  Both USB ports are damaged and headphones and speaker inputs are also (on the same panel).

    HP part number is 5070-2909.  HP parts store has listed online, but it is not available on order.  (I checked with 'resellers' HP recommends for the part but can't find it.)  I called the HP parts store and they told me they could find a product that is 'comparable' to me, but then I went to a foreign expert who said that he was unable to understand what I wanted to order.  I guess the HP part number, part name HP, model of computer, s/n (3 times), was much too much information.

    There are rear USB ports, and I can route an extension to the front for him, but I would like to replace the Panel if possible.  A search of this part product on the internet, ebay, etc does not work.  Thanks for any help.

    Google: 2 minutes

    $26 http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=180630249876&hlp=false&rvr_id=216889641277&crlp=1_263602_304652&UA=WVI8&GUID=922302ea12e0a02697e779a7fff7d85b&itemid=180630249876&ff4=263602_304652

    $40 http://www.sparepartswarehouse.com/Compaq, Computer, share, 50702909.aspx must specify or call

    varied http://www.google.com/products/catalog?hl=en&sugexp=gsisc&xhr=t&q=5070-2909&cp=0&bav=on.2, or & wrapid = tljp129980559351700 & um = 1 & ie = UTF - 8 & cid = 3959108179159633093 & a = X & ei = m3V5TeCBD4SKlwfc4InrBQ & sqi = 2 & ved = 0CCUQ8wIwAg#.

  • Dynamically fill a dashboard Panel in a Fragment

    I work with a custom in a fragment (jsff) Panel dashboard.  The user can customize the dashboard (re - order of the Panel boxes, set the number of columns, add/remove Panel boxes, etc.) and our goal is to persist these customizations so that they are available in different sessions.  To do this, I created several tables of data base for these customizations and they linked to the table user.  When the user opens the application, the fragment of dashboard is the first fragment to display.  I load the information of the database, and then build the dashboard Panel.  The dashboard starts with a static Panel box set (as seen in main_dashboard.jsff below), then based on the data, I have re - order and boxes rendered set equal to false for the deleted user Panel.

    My problem is that I have to do before the page is rendered.  To do this, call the method of customization of the constructor of my grain of support.  The RichPanelDashboard I bind the user interface component for is not yet available.  I tried several things that didn't work, including:

    -Added @PostConstruct to my customization method annotation.

    -By taking the root of the view component: RichPanelDashboard mainDashboard = (RichPanelDashboard) .getViewRoot () .findComponent () FacesContext.getCurrentInstance ("mainDash");

    -Adding an event 'preRenderComponent' to the page: < f: event type = "preRenderComponent" listener = "#{main_dashboard.setupCustomDashboard}" / > (after a search on the web, it seems that the tag f: event is not supported in the Fragments of the ADF).

    I encountered this problem in the past with the different user interface components.  In particular, I had to fill a SelectOneListBox before the page is rendered.  I solved the problem by adding a child < f: selectItems > to < af:selectOneListBox > and the value of this tag to a list of SelectItems in my grain of support and populate this list on instantiation of the bean.  Is there a similar option for a dashboard Panel and a list of the Panel boxes?  The idea of using a < af:forEach > tag had crossed my mind to fill the dashboard Panel with Panel boxes, but as you can see in my code below, I already use to dynamically fill the first group with < af:forEach > command links box.  Unless there is a way to dynamically fill a dashboard Panel with Panel boxes dynamically populated in the fragment, I don't think that the for each approach will work (it does not appear as a way to dynamically fill boxes of Panel with the user interface components in the bean to support either).

    Example of code is below.  Any suggestions are greatly appreciated.

    main_dashboard. JSFF

    {code}

    < af:panelDashboard id = "mainDash" columns = "2" rowHeight = "250px" styleClass = "AFStretchWidth" inlineStyle = "height: 1000px;

    dropListener = "#{main_dashboard.handleReorder}" binding = "#{main_dashboard.panelDashboard}" > "

    <!-f: event listener = "#{main_dashboard.setupCustomDashboard}" type = "preRenderComponent" /--> "

    < af:panelBox id = "openedBox" text = "Recently opened" >

    < af:componentDragSource / >

    < af:forEach var = "item" items = "#{main_dashboard.openedCommandLinks}" >

    < af:commandLink text = "#{item.text}" partialSubmit = 'true' "

    actionListener = "#{main_dashboard.editorFiredFromDashboard}" / >

    < / af:forEach >

    < / af:panelBox >

    < af:panelBox id = "editedBox" text = "Recently published" >

    < af:componentDragSource / >

    < af:outputText value = "Recently edited" id = "ot2" / >

    < / af:panelBox >

    < af:panelBox id = "openCPsBox" text = "My Open Config Packages" >

    < af:componentDragSource / >

    < af:outputText value = "My Open Config Packages" id = "ot3" / >

    < / af:panelBox >

    < af:panelBox id = "testbox.foobar.com" text = "Test box" >

    < af:componentDragSource / >

    < af:outputText value = "to test only" id = "ot4" / >

    < / af:panelBox >

    < / af:panelDashboard >

    {code}

    MainDashboardBackingBean (main_dashboard)

    {code}

    Private RichPanelDashboard panelDashboard;

    ...

    public MainDashboardBackingBean() {}

    ...

    setupCustomDashboard();

    }

    ...

    Using the annotation @PostConstruct has failed

    @PostConstruct

    public void setupCustomDashboard() {}

    ...

    Set the number of custom columns

    Integer selectedColumnCount = customDashboardDcl.getColumnCount ();

    FacesContext pulling didn't work

    RichPanelDashboard mainDashboard is FacesContext.getCurrentInstance (RichPanelDashboard) () .getViewRoot () .findComponent ("mainDash");.

    mainDashboard.setColumns (selectedColumnCount);

    Null pointer that happens here

    panelDashboard.setColumns (selectedColumnCount);

    Create the new ordered list

    If (customDashboardMap! = null) {}

    List < String > reorderedIdList = new ArrayList < String > (customDashboards.size ());

    for (Integer key: customDashboardMap.keySet ()) {}

    String customId = customDashboardMap.get (key);

    for (UIComponent currChild: panelDashboard.getChildren ()) {}

    String currId = currChild.getId ();

    If (customId == currId) {}

    reorderedIdList.add (currId);

    break;

    }

    }

    }

    Unused Panel boxes must always be added, but not rendered

    for (UIComponent currChild: panelDashboard.getChildren ()) {}

    String currId = currChild.getId ();

    If (! reorderedIdList.contains (currId)) {}

    currChild.setRendered (false);

    reorderedIdList.add (currId);

    }

    }

    Apply the changes

    ComponentChange change = new ReorderChildrenComponentChange (reorderedIdList);

    change.changeComponent (panelDashboard);

    }

    AdfFacesContext.getCurrentInstance () .addPartialTarget (panelDashboard);

    }

    ...

    public RichPanelDashboard getPanelDashboard() {}

    Return panelDashboard;

    }

    {} public void setPanelDashboard (RichPanelDashboard panelDashboard)

    this.panelDashboard = panelDashboard;

    }

    {code}

    Hello

    I actually fill my panelDashboard with a forEach on a dashboard item list.

    Binding = "#{pageFlowScope.myDashboard.dashboard} '"

    dropListener = "#{pageFlowScope.myDashboard.move}" > "

    var = 'panels' >

    background ID = "${panels.ID}" = "medium" showDisclosure = "false" > "

    ID = "r2" / >

    All my panels is rendered as regions that is dynamically filled with workflow single page that are related to the page that contains the dashboard.

    My DashboardItem class creates the binding workflow RegionModel

    public RegionModel getRegionTaskflow() {}

    String regionBinding = "#{bindings." + taskflow + ".regionModel";}

    Model RegionModel = (RegionModel) JSFUtils.resolveExpression (regionBinding);

    return the template;

    }

    I don't know if it's a good practice, but it works.

    Hope that helps,

    Achim

  • HP ELITEBOOK 8760W REPLACEMENT DISPLAY PANEL

    I want to replace the display (resolution of 1600 x 900) of my HP elitebook 8760w Panel.

    Is the specification of Panel dipslay compatible below? And are there other things I need to consider before you replace?

    PART NUMBER: 652521-001
    Display the Panel of 43.9 cm (17.3 inch), AG of FHD LED WVA (1920 x 1080 resolution)

    I have serious doubts. Often, models that use the higher resolution screen also use a different motherboard and the new Panel will not work. Without doubt, I replaced the Billboard 100 for laptop and it is rare for a higher res screen to 'work '. However, since your computer laptop is a super high-end, can actually only be a motherboard that is capable of driving different billboards. In fact, only a possible mother is listed. Here is the Service Manual:

    Manual

    Only two possible signs include:

    Display the Panel, 43.9 cm (17.3 inches), high definition (HD + more) anti-Glare (AG) AAFC 652520-001
    Display the Panel, 43.9 cm (17.3 inch), FHD AG LED WVA 652521-001

    The resolution is not given in the manual, but I would say that the part you describe is compatible with your laptop. I'm afraid that the 652521-001 is actually the lower screen Res. Otherwise, I don't know how much is in your laptop. Are you fun and pull your display panel and check the part number before ordering. Good luck.

  • Cannot open find/replace... Tab palette blocks InDesign

    InDesign questions CC2015: when I try and open find/replace in the menu or the key order, nothing happens. When I try and open the palette of the tabs in the menu or command, it blocks of InDesign.

    Any help would be appreciated.

    Is this a new behavior? Try 101 troubleshooting: replace, or 'trash' your InDesign preferences .

  • Re: Satellite P100-106 PSPADE - replacement for Panel problem

    Hello

    I have a problem with the screen on my model Satellite P100 - 106 PSPADE 018110G 3.

    I changed the old Panel LG PHILIPS LP171WX2 (A4) (K7) (she has wide stripes without a photo) with the new a LP171WP4 Philips (TL) (B1) and after the first start, everything worked OK but more later when I turn it on there there's no picture, only automatic backlight is activated, windows starts because I hear it log into the sound on the speakers.

    When I turn back old Panel everything works correctly.
    Also when I connect external display its signal on it, with old and new Panel on laptop.

    Is there a solution for this problem?

    Thank you

    Can I just suggest you to test an another Billboard.

    The card isn t the problem since the external monitor works fine.

    It shouldn't be a problem with FL inverter for the backlight seems to work also.
    This is why I believe that this new Panel must be tested.

  • Dynamic Partnerlink replacements in map cfg using Ant

    Hi all

    Please can you help me with the following

    I have a cfg plan as below

    <? XML version = "1.0" encoding = "UTF-8"? >
    < SOAConfigPlan xmlns:jca = "http://platform.integration.oracle/blocks/adapter/fw/metadata" xmlns:wsp = "http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:orawsp = "http://schemas.oracle.com/ws/2006/01/policy" xmlns:edl = "http://schemas.oracle.com/events/edl" xmlns = "http://schemas.oracle.com/soa/configplan" >
    < composite name = "PersonNumberPSHCM_PSCSM" >

    < service name = "PersonNumberPSHCM_PSCSM" >
    <! - Add find and replace rules for binding properties - >
    < Binder type "ws" = >
    < attribute name 'port' = >
    < replace > http://oracle.com/sca/soapservice/PersonNumberIntegration/PersonNumberPSHCM_PSCSM/PersonNumberPSHCM_PSCSM#wsdl.endpoint(PersonNumberPSHCM_PSCSM/PersonNumberPSHCM_PSCSM_pt) < / replace >
    < / attribute >
    < property name = "weblogic.wsee.wsat.transaction.flowOption" >
    NEVER replace <>< / replace >
    < / property >
    < / binding >
    < / service >
    <!-add search and replace the rules for component properties
    For parts and service/reference links, you can add references to policy.
    Example:
    < component name = "*" >
    < policyReference orawsp:category = 'management' orawsp:status = "validated" URI = "oracle/log_policy" / >
    < / component >->
    < name = "référence UP_PERSON_NUMBER.1" >
    <! - Add find and replace rules for binding properties - >
    < Binder type "ws" = >
    < attribute name 'port' = >
    < replace > http://xmlns.up.ac.za/Enterprise/CSM/service/UP_PERSON_NUMBER.1#wsdl.endpoint(UP_PERSON_NUMBER/UP_PERSON_NUMBER_Port) < / replace >
    < / attribute >
    < attribute name 'rental' = >
    < searchReplace >
    < Search > http://csmdev01.up.ac.za:7000/PSIGW/PeopleSoftServiceListeningConnector/UP_PERSON_NUMBER.1.wsdl < /search & gt;
    ${csm.host}:${csm.port}/PSIGW/PeopleSoftServiceListeningConnector/UP_PERSON_NUMBER.1.wsdl < replace > < / replace >
    < / searchReplace >
    < / attribute >
    < property name = "weblogic.wsee.wsat.transaction.flowOption" >
    < replace > WSDLDriven < / replace >
    < / property >
    < property name = "oracle.webservices.auth.username" >
    < searchReplace >
    < Search > UP_CSM < / search >
    < replace >$ {csm.username} < / replace >
    < / searchReplace >
    < / property >
    < property name = "oracle.webservices.auth.password" >
    < searchReplace >
    < Search > UPCSM < / search >
    < replace >$ {csm.pass} < / replace >
    < / searchReplace >
    < / property >
    < property name = "wsseOASIS2004Compliant" >
    < replace > true < / replace >
    < / property >
    < / binding >
    < / reference >
    < / composite >
    < wsdlAndSchema name = "Exception.xsd |" PersonEBO.V1.xsd | PersonNumberEBO.V1.xsd | PersonNumberPSCSMProvABS.wsdl | PersonNumberPSHCM_PSCSM.wsdl | PersonNumberPSHCM_PSCSMWrapper.wsdl | PersonNumberPSHCM_PSCSM_Mediator.wsdl | RoleEBO.V1.xsd | RuntimeFault.wsdl | StudentEBO.V1.xsd | TransactionContext.xsd | UpPersonNumberABM.xsd | UpPersonNumberEBM.xsd">
    < searchReplace >
    < Search / >
    < replace / >
    < / searchReplace >
    < / wsdlAndSchema >
    < / SOAConfigPlan >

    Now, for what follows, I have variables;

    < attribute name 'rental' = >
    < searchReplace >
    < Search > http://csmdev01.up.ac.za:7000/PSIGW/PeopleSoftServiceListeningConnector/UP_PERSON_NUMBER.1.wsdl < /search & gt;
    ${csm.host}:${csm.port}/PSIGW/PeopleSoftServiceListeningConnector/UP_PERSON_NUMBER.1.wsdl < replace > < / replace >
    < / searchReplace >
    < / attribute >
    < property name = "weblogic.wsee.wsat.transaction.flowOption" >
    < replace > WSDLDriven < / replace >
    < / property >
    < property name = "oracle.webservices.auth.username" >
    < searchReplace >
    < Search > UP_CSM < / search >
    < replace >$ {csm.username} < / replace >
    < / searchReplace >
    < / property >
    < property name = "oracle.webservices.auth.password" >
    < searchReplace >
    < Search > UPCSM < / search >
    < replace >$ {csm.pass} < / replace >
    < / searchReplace >
    < / property >

    I have this in my enviro.dev.properties file:

    CSM. Host = http://csmdev01.up.ac.za
    CSM.port = 7000
    CSM. UserName = UP_CSM
    CSM. Pass = UPCSM

    I need to replace the values of the variables in my cfg with values plan file in my envrio.dev.properties file

    Any ideas on how to achieve this?

    Thank you very much
    K

    Check out this blog - http://albinoraclesoa.blogspot.com/2012/03/oracle-soa-11g-generic-plan-file-to.html

    Concerning
    Albin I

  • replace the Panel background color

    Hello

    I am using a theme of Adobe (GraphiteGraphical). It's a bit too dark for my Panel containers. I would like to set the background color.

    I am able to adjust the background color of the Application in the CSS file as follows:

    s | {Of the application
    padding-top: 10;
    padding-bottom: 10;
    padding-left: 10;
    padding-right: 10;
    vertical gap: 4;
    background-color: #CCCCCC;

    }

    I can't do it for my signs. Why? And how can I achieve this?

    I need my Panel background is the same as the application. Currently, they are much too dark. Help?

    Very well. Try this

    MX | Group of experts
    {
    Border - Skin:ClassReference('mx.skins.Halo.PanelSkin');
    backgroundColor: #FF0000;
    }

  • dynamic text in the Panel

    How can I do textInput inside a Panel?

    Thank you

    sali1982,

    my_text_input. SetStyle ("fontSize", 42);

    my_text_input. SetStyle ("color", "0x4488cc");

    Remember that you must spell the American way color and everything should be OK.

    Richard

  • How can I replace 2 pantone colors with 2 new colors in pantone globally? I have a logo from 14:00 with many variations of hue inside. When I replace PMS in the Swatches palette. The logo does not replace the world of the selected color. are

    I have a logo of 2 - PMS color to many reflections inside of 2 colors. If I replace the swatches in the logo of new colors, they convert to CMYK color book. The printer can work with that? How do I kee it a separation of 2 colors?

    MaryFl

    You must mark this answered once you have properly corrected art just to other users know where to find the answer, as so often happens, and we have been posting this again and again.

  • REPLACING A REAR PANEL

    How & where can I get a replacement back panel for HP PAVILION DV6 3117 do YOU

    Product number: INA102S77H

    Product model: LN349PA

    Would be good if you can provide the price and other details

    Hai,

    Thanks for your reply.

    But the link you sent me is letting me to buy something...

    I need the BACK PANEL... the Panel which is present at the back of the laptop. (Black)

    Product model: LN349PA

    Product number: INA102S77H

    Can u give me the exact link where I can go ahead and buy this

  • HP ENVY 15 laptop: laptop bottom panel replacement

    Hello

    I bought my laptop about a month ago and it is currently under factory warranty. Two days before I accidentally dropped my laptop table and there is a break in the lower panel. It is possible to replace my bottom panel under warranty. If this is not the case, how much it cost to replace the Panel from the bottom only. Please advice. Thank you.

    The standard warranty does not cover physical damage to a drop. You will need to have a protection against accidental damage, which would have been sold at an additional cost. It is the image that the fall has also put a small crease in the top cover. These parts are available, but very expensive HP and labor to do the replacement is also very expensive because you basically rebuild the laptop from the bottom to the top. If you are interested in pursuing the repair at your expense, post back with your country of residence and the number of full model of the laptop, so we are sure that get us the right parts. We can provide a manual, a video (maybe) and help find the parts as economically as possible, maybe not directly from HP.

    Furthermore, this isn't a warranty HP channel and I don't speak for them. If you want to hear from the horse's mouth opens here a case of pension:

    http://h20566.www2.HP.com/portal/site/hpsc/public/SCM/home?AC.admitted=1441971775406.1123376534.199480143

  • Stretching from the area dynamically in a facet of the dispatcher Panel.

    Hello

    Jdev version - 11.1.1.6.0

    We use a group separator in a jspx page and inside on the facet of the separator panel we use a taskflow with fragments of the page as a region. The use case is that the user can stretch the group separator, we want to extend the page as well as the separator.

    This is the structure of the component.

    Group that is used in the jspx page separator.

    < af:panelSplitter orientation = 'horizontal' splitterPosition = "195."

    positionedFromEnd = "true" id = "ps2".

    firstLandmark = 'hand' secondLandmark = "contentinfo".

    collapsed = "true" dimensionsFrom = "auto" >

    < f: facet 'second' = name >

    < af:region / >

    < / f: facet >
    < / af:panelSplitter >

    And the TaskFlow (area inside the above group separator) with jsff page as below.

    < af:decorativeBox id = "db1" >

    < f: facet name = "center" >

    < panelGroupLayout layout = "default" >

    < af:outputText / >

    < af:panelStretchLayout styleClass = "AFStretchWidth" >

    < f: facet = 'top' name >

    < af:panelGroupLayout layout = "horizontal" >

    < af:selectOneChoice >

    < / af:selectOneChoice >

    < / af:panelGroupLayout >

    < f: facet name = "center" >

    < af:panelGroupLayout id = "pgl287" layout = "scroll" >

    < af:inputText

    lines = '2' columns = "40".

    dimensionsFrom = 'auto '.

    styleClass = "AFStretchWidth" / > //This enter text, we want to expand dynamically with the expandable Panel layout.

    < / af:panelGroupLayout >

    < / f: facet >

    < / af:panelStretchLayout >

    < / af:panelGroupLayout >

    < / f: facet >

    < / af:decorativeBox >

    Yes you can do it, but you must use javascript for this as

    ...

    function setSplitterPos (event) {}

    source var = event.getSource ();

    var pos = source.getSplitterPosition ();

    If (pos < 100)

    source.setSplitterPosition (100);

    on the other

    source.setSplitterPosition (pos);

    }

    ...

    ...

    The above code updates the position of the separator 100px if you try to make the first small facet the 100px.

    Timo

  • Bing dynamic theme has stopped working.

    I had recently installed the Bing Dynamic Theme for Windows 7. The theme worked properly and I loved. However the next day of the day where I had it installed I noticed it sitting on an image instead of change. I went to control panel to check the personalization settings when I clicked on the solid Bing Dynamic screen replaced by a black background theme. After this point, I tried to uninstall and then reinstall the Bing Dynamic theme. When I reinstalled the theme it does not allow me the RSS and everytime I tried it continues to apply only the solid black backround. After the reinstallation, I'd go to in the Desktop Backround options and could see that the location of the photo has been set on solid with selected Black color. He had an additional option in what appeared to be the injector for the dynamic bing that resembled the theme server address. However, whenever I would choose it I would get an error.

    After looking around for some answers, I found this post.

    http://social.answers.Microsoft.com/forums/en-us/w7desktop/thread/d5805d09-8479-47C5-bdf8-f4286c5af9be

    I followed these instructions, thinking I might have a similar problem. After you run the fix the theme still does not work. The only change he seemed to do, is that I have more to select the theme server in the location of the image after selecting the bureau backround.

    Sorry for the long winded post, but I thought the more detail the better.

    The long and short of it is Bing dynamic Theme worked. Then it stopped working and when you try to reinstall I no longer get the option to allow RSS feeds. Bing dynamic theme is sitting on a black background and even with reboots and waiting no image is never downloaded.

    Thanks in advance for any help.

    Bing Dynamic vs Piriform CCleaner - Community Forums:
    http://Forum.Piriform.com/index.php?showtopic=29310
    Dynamic difficulty Bing Theme after using CCleaner

    Ramesh Srinivasan . The Winhelponline Blog
    Microsoft MVP, Windows desktop experience

  • multiple panels in a single .fr

    Hai all!

    is it possible!

    It's my .fr:

    //========================================================================================

    //

    $File: $

    //

    Owner: soul

    //

    $Author: $

    //

    $DateTime: $

    //

    $Revision: $

    //

    $Change: $

    //

    Copyright 1997-2008 Adobe Systems Incorporated. All rights reserved.

    //

    NOTE: Adobe permits you to use, modify, and distribute this file in accordance

    with the terms of the Adobe license agreement accompanying it.  If you have received

    This file from one source other than Adobe, then your use, modification, or

    distribution of it requires the prior written consent of Adobe.

    //

    //========================================================================================

    #include "VCPlugInHeaders.h".

    General includes:

    #include "MenuDef.fh".

    #include "ActionDef.fh".

    #include "ActionDefs.h".

    #include "AdobeMenuPositions.h".

    #include "LocaleIndex.h".

    #include "PMLocaleIds.h".

    #include "StringTable.fh".

    #include "ObjectModelTypes.fh".

    #include "ShuksanID.h".

    #include "ActionID.h".

    #include "CommandID.h".

    #include "WorkspaceID.h".

    #include "WidgetID.h".

    #include "BuildNumber.h".

    #include "PlugInModel_UIAttributes.h".

    #include "PanelList.fh".

    #include "InterfaceColorDefines.h".

    #include "IControlViewDefs.h".

    #include "SysControlIDs.h".

    #include 'Widgets.fh' / / PalettePanelWidget or DialogBoss

    Project includes:

    #include "pplID.h".

    #include "GenericID.h".

    #include "ShuksanID.h".

    #include "TextID.h".

    #include "IDList.fh".

    #include "IDListPair.fh".

    #ifdef __ODFRC__

    / * Plugin version definition.

    */

    resources PluginVersion (kSDKDefPluginVersionResourceID)

    {

    kTargetVersion,.

    kpplPluginID,.

    kSDKDefPlugInMajorVersionNumber, kSDKDefPlugInMinorVersionNumber,.

    kSDKDefHostMajorVersionNumber, kSDKDefHostMinorVersionNumber,.

    kpplCurrentMajorFormatNumber, kpplCurrentMinorFormatNumber,.

    {kInDesignProduct},

    {kWildFS},

    kUIPlugIn,.

    kpplVersion

    };

    / * The ExtraPluginInfo resource adds additional information in the missing of plug-in dialog box

    that emerged when opening a document containing data from this plugin when

    this plug-in is not present. These strings are not translatable strings

    since they must be available when the plug-in is not around. They stored

    in any document that this plug-in helps data.

    */

    ExtraPluginInfo resources (1)

    {

    kpplCompanyValue, / / name of the company

    kpplMissingPluginURLValue, / / URL

    kpplMissingPluginAlertValue, / / Missing plugin alert text

    };

    / * Class definition of boss.

    */

    resources ClassDescriptionTable (kSDKDefClassDescriptionTableResourceID)

    {{{

    /**

    This boss class supports two interfaces:

    IActionComponent and IPMPersist.

    @ingroup palco plugin

    */

    Class

    {

    kpplActionComponentBoss,.

    kInvalidClass,.

    {

    / * Handle the actions in the menu. */

    IID_IACTIONCOMPONENT, kpplActionComponentImpl,.

    / * Persist the State of the menu through the instantiation of the application.

    Implementation provided by the API.*.

    IID_IPMPERSIST, kPMPersistImpl

    }

    },

    /**

    This boss class inherits from a class of patron of Panel API, and

    adds an interface for a pop-up menu on the control panel.

    The implementation of this interface is provided by the API.

    @ingroup palco plugin

    */

    Class

    {

    kpplPanelWidgetBoss,.

    kPalettePanelWidgetBoss,.

    {

    / * Implementation of the ITextControlData with an IID of exotic IID_IPANELMENUDATA plug-in.

    Implementation provided by the API.

    */

    IID_IPANELMENUDATA, kCPanelMenuDataImpl,.

    }

    },

    //pannello delle preferenze

    Class

    {

    kpplUIDialogBoss,.

    kPrimaryResourcePanelWidgetBoss,.

    {

    IID_IDIALOGCONTROLLER, kpplUIDialogControllerImpl,.

    IID_IXDOCBKUIWIDGETOBSERVER, kpplUIDialogObserverImpl,.

    IID_IK2SERVICEPROVIDER, kDialogPanelServiceImpl,.

    IID_IPANELCREATOR, kpplUIPanelCreatorImpl,.

    }

    },

    }}};

    / * Definition of the implementation.

    */

    resources FactoryList (kSDKDefFactoryListResourceID)

    {

    kImplementationIDSpace,.

    {

    #include 'pplFactoryList.h '.

    }

    };

    resources IDList (kSDKDefIDListPairResourceID)

    {

    {

    / / Impl selectable Preferences dialog box ID

    kGlobalPrefsDialogServiceImpl,

    },

    };

    resources IDListPair (kSDKDefIDListPairResourceID)

    {

    {

    kGlobalPrefsDialogServiceImpl, / / ID of selectable dialog of the target (InDesign)

    pippo, / / resource of Panel to be added (mine) ID

    kpplPluginID / / ID plug-in which "owns" the resource Panel to add

    },

    };

    / * Definition of the menu.

    */

    resources MenuDef (kSDKDefMenuResourceID)

    {

    {

    / / Submenu the purpose of article for this plug-in Plug-ins.

    kpplAboutActionID, / / ActionID (kInvalidActionID for positionnelles entries)

    kpplAboutMenuPath, / / Menu path.

    kSDKDefAlphabeticPosition, / / Menu Position.

    kSDKDefIsNotDynamicMenuFlag, / / kSDKDefIsNotDynamicMenuFlag or kSDKDefIsDynamicMenuFlag

    / / Separator for the context menu of the control panel

    kpplSeparator1ActionID,.

    kpplInternalPopupMenuNameKey kSDKDefDelimiterAndSeparatorPath, / /:-to mark an item as a separator.

    kpplSeparator1MenuItemPosition,.

    kSDKDefIsNotDynamicMenuFlag,.

    / / About this submenu of plugin for the context menu of the control panel

    kpplPopupAboutThisActionID,.

    kpplTargetMenuPath

    kpplAboutThisMenuItemPosition,.

    kSDKDefIsNotDynamicMenuFlag,.

    kpplMnuPrefActionID, / / ActionID

    "Hand: AppleMenu:Preferences ', / / Menu path.

    kSDKDefAlphabeticPosition, / / Position of the Menu.

    kSDKDefIsNotDynamicMenuFlag,

    }

    };

    resources ActionDef (kSDKDefActionResourceID)

    {

    {

    kpplActionComponentBoss, / / ClassID of boss class that implements the ActionID.

    kpplAboutActionID, / / ActionID.

    kpplAboutMenuKey, / / submenu string.

    kOtherActionArea, / / domain name (see ActionDefs.h).

    kNormalAction, / / Action Type (see ActionDefs.h).

    kDisableIfLowMem, / / activation type (see ActionDefs.h).

    kInvalidInterfaceID, / / selection InterfaceID cares about this action or kInvalidInterfaceID.

    kSDKDefInvisibleInKBSCEditorFlag, / / kSDKDefVisibleInKBSCEditorFlag or kSDKDefInvisibleInKBSCEditorFlag.

    kpplActionComponentBoss,.

    kpplPopupAboutThisActionID,.

    kSDKDefAboutThisPlugInMenuKey, / / key name of this action

    kOtherActionArea,.

    kNormalAction,.

    kDisableIfLowMem,.

    kInvalidInterfaceID,.

    kSDKDefInvisibleInKBSCEditorFlag,.

    kpplActionComponentBoss,

    kpplMnuPrefActionID, / / ActionID.

    "Submenu string Palco...",//.

    kEditMenuPreferencesActionArea, / / domain name (see ActionDefs.h).

    kNormalAction, / / Type of action (see ActionDefs.h).

    kDisableIfLowMem, / / activation type (see ActionDefs.h).

    kInvalidInterfaceID, / / selection InterfaceID

    kSDKDefInvisibleInKBSCEditorFlag,

    }

    };

    resources LocaleIndex (kSDKDefStringsResourceID)

    {

    kStringTableRsrcType,.

    {

    kWildFS, k_enUS, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_enGB, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_deDE, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_frFR, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_esES, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_ptBR, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_svSE, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_daDK, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_nlNL, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_itIT, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_nbNO, kSDKDefStringsResourceID + index_enUS

    kWildFS, k_fiFI, kSDKDefStringsResourceID + index_enUS

    kInDesignJapaneseFS, k_jaJP, kSDKDefStringsResourceID + index_jaJP

    }

    };

    resources LocaleIndex (kSDKDefStringsNoTransResourceID)

    {

    kStringTableRsrcType,.

    {

    kWildFS, k_Wild, kSDKDefStringsNoTransResourceID + index_enUS

    }

    };

    resources StringTable (kSDKDefStringsNoTransResourceID + index_enUS)

    {

    k_enUS, // Locale Id

    kEuropeanMacToWinEncodingConverter, / / character encoding converter

    {

    / / No-translate the strings go here:

    kpplInternalPopupMenuNameKey, kpplInternalPopupMenuNameKey, / / no need to translate, internal name of menu.

    }

    };

    /*

    resources LocaleIndex (pippo)

    {

    kViewRsrcType,.

    {

    kWildFS, k_Wild, pippo + index_enUS

    }

    };

    */

    resources LocaleIndex (kSDKDefPanelResourceID)

    {

    kViewRsrcType,.

    {

    kWildFS, k_Wild, kSDKDefPanelResourceID + index_enUS

    }

    };

    / * The type definition.

    */

    type pplPanelWidget (kViewRsrcType): PalettePanelWidget (ClassID = kpplPanelWidgetBoss)

    {

    CPanelMenuData;

    };

    type pplUIPanelWidget (kViewRsrcType): PrimaryResourcePanelWidget (ClassID = kpplUIDialogBoss) {};

    resources involved (kSDKDefPanelResourceID)

    {

    {

    / / 1 group in the list

    kSDKDefPanelResourceID, / / resource ID for this Panel (use SDK by default ID rsrc)

    kpplPluginID, / / ID of the plugin which holds this Panel

    kIsResizable,.

    kpplPanelWidgetActionID, / / Action ID to show/hide Panel

    kpplPanelTitleKey, / / appears in the list window.

    "', / / Substitute menu in the form path ' hand: Foo" If you want your palette in the second menu item to place.

    0.0, / / menu replacing the position of the alternative Menu to determine the order of the menu

    0,0, / / Rsrc ID, ID Plugin for a PNG icon resource to use for this palette

    c_Panel

    }

    };

    resources involved (pippo)

    {

    {

    / / 2nd Panel in the list

    pippo, / / resource ID for this Panel (use SDK by default ID rsrc)

    kpplPluginID, / / ID of the plugin which holds this Panel

    kIsResizable,.

    kpplPanelWidgetActionID, / / Action ID to show/hide Panel

    kpplPanelTitleKey, / / appears in the list window.

    "', / / Substitute menu in the form path ' hand: Foo" If you want your palette in the second menu item to place.

    0.0, / / menu replacing the position of the alternative Menu to determine the order of the menu

    0,0, / / Rsrc ID, ID Plugin for a PNG icon resource to use for this palette

    c_Panel

    }

    };

    resource pplPanelWidget (kSDKDefPanelResourceID + index_enUS)

    {

    __FILE__, __LINE__, / / macro location

    kpplPanelWidgetID, / / WidgetID

    kPMRsrcID_None, // RsrcID

    kBindNone, // Binding (0=none)

    0, 0, 207-32, / / framework: left, top, right, bottom.

    kTrue, kTrue, / / Visible, Enabled

    kFalse, // Erase background

    kInterfacePaletteFill, / / Color Erase

    kFalse, // Draw dropshadow

    kpplPanelTitleKey, / / name of Panel

    {

    StaticTextWidget

    (

    0, // WidgetId (default=0)

    kSysStaticTextPMRsrcId, / / RsrcId

    kBindNone, // Frame binding

    5, 10, 202, 27, / / framework: left, top, right, bottom.

    kTrue, kTrue, // Visible, Enabled

    kAlignLeft, kEllipsizeEnd, kTrue / / alignment, style ellipsize, convert and commercial

    kpplStaticTextKey, / / original text.

    0 // No associated widget

    ),

    }

    kpplInternalPopupMenuNameKey / / menu shortcut name (internal)

    };

    resource pplUIPanelWidget (pippo + index_enUS)

    {

    __FILE__, __LINE__,.

    kpplUIPanelWidgetID, // WidgetId

    kPMRsrcID_None, // RsrcId

    kBindNone,.

    / / Framework: left, top, right, bottom

    Frame (0,0,420,400).

    kTrue, // Visible

    kTrue, // Enabled

    "super Palco", // Panel name

    {

    StaticTextWidget

    (

    0, // WidgetId (default=0)

    kSysStaticTextPMRsrcId, / / RsrcId

    kBindNone, // Frame binding

    5, 10, 202, 27, // Frame: left, top, right, bottom.

    kTrue, kTrue, // Visible, Enabled

    kAlignLeft, kEllipsizeEnd, kTrue / / alignment, style ellipsize, convert and commercial

    'prova prova prova', / / original text.

    0 // No associated widget

    ),

    }

    };

    #endif / / __ODFRC__

    #include "ppl_enUS.fr".

    #include "ppl_jaJP.fr".

    I want to put one of this 2 panels in to the global level

    preferences dialogue... and one is the normal panel of the plugin UI where is my problem?

    any suggestion?

    Thank you!

    Your resource LocaleIndex (pippo) is commented out, so there is no way InDesign can guess how to map the 'pippo' in the IDListPair 'resources (pippo + index_enUS) pplUIPanelWidget' ID - remember that index_enUS is + 1.

    You must also remove this "Panelist (pippo) resource" - that is only needed for panels of the palette.

    Dirk

Maybe you are looking for

  • SatellitePro 4600 supported DVD WRITERS

    I have a SatellitePro 4600 and I want to change my CD with a DVD burner, I tried with a DVR-K12D but system does not recognize under win Xp Pro.What I have to do? What settings I change?This DVD burner works well under many other laptops, other manuf

  • 0x13EC error when you try to install KB928416

    I'm not able to install Microsoft .NET Framework 3.0: x 86-kielipaketti (KB928416). I use Microsoft Update. The error code is 0x13EC. This happens on all my computers Windows XP (Professional, 32 - bit and Home Edition 32 - bit, both with Finnish). H

  • HP Envy 17 and Raid-0

    Hello I have an Envy 17-j005tx (Australian model) and hoped to Exchange internal 1 TB 5400 RPM HDD to the SSD and it places in a Bay Raid-0. I understand the pro/cons on different Raid configurations. I do all my work in virtual machines, with instan

  • A record in the table is not approved

    We have a PS4100x Equallogic in production. A few days ago one of the drives has failed and we ordered an original Dell HDD for this device. When we replaced the damaged for a new, the console says that the disc is not approved. We checked the docume

  • Extension of WebWorks for BB10 and OS7

    Hello I am interested to write an extension for some software that will be deployed to the device a BB10 and OS7. I was wondering if it was possible to package the native code for each platform in an extension, so I can then use it in a project witho