Friday, February 10, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: rczlubin
New Today New Today: 5
New Yesterday New Yesterday: 27
User Count Overall: 20595

People Online People Online:
Visitors Visitors: 16
Members Members: 1
Total Total: 17

Online Now Online Now:
01: Xiros

ClearCanvas Community Forums

Changing the order of tools in toolbar
Last Post 2010-09-20 01:59 PM by stewart. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
xargon
Advanced Member
Advanced Member
Posts:38

--
2010-08-25 07:45 PM  

Hello,

I know this is covered in the developer notes but there was something I could not get working.

I have an App.config file for my plugin which has all the tools that I add to my custom toolbar. In the App.config file I have added a section for the action models as follows:

"ClearCanvas.Desktop.Actions.ActionModelSettings"
      "setting name="ActionModelsXml" serializeAs="Xml""
        "value"
          "action-models"
            "action-model id="ClearCanvas.Desktop.DesktopWindow:tmx-toolbar"""/action-model"
            "action id="TMXViewer.TMXExplodeSubViewTool:explodeSubView" path="tmx-toolbar/ExplodeSubView" /"
            "action id="TMXViewer.TMXExplodeViewTool:explodeImageBox" path="tmx-toolbar/ExplodeView" /"
            "separator /"
          "/action-models"
        "/value"
      "/setting"
    "/ClearCanvas.Desktop.Actions.ActionModelSettings"

 

The problem is that this does not have any effect. I also do not see the separator. Is this something that has to be added in some other global file? Is there no way to define this from some plugin configuration itself. Everything going onto this toolbar is defined only in this plugin.

Many thanks,

xarg

P.S: The quotes are supposed to be angled brackets. Could not get the editor to show XML.

jasper.yeh
Senior Member
Senior Member
Posts:521
Avatar

--
2010-09-01 03:55 PM  
Hi Xarg,

In order for your action model settings to take effect, you will need to manually merge this block into the ClearCanvas.Desktop.Executable.exe.config file in the installed workstation folder. The default .NET settings provider does not support settings for libraries, so that app.config file you updated is actually not used at all (well, it produces a yourlibrarynamehere.dll.config file, but app settings are read from the process' config file, not the libraries').

Also, note that the ClearCanvas.Desktop.Executable.exe.config is only used for application-wide settings and the default values for user-specific settings. A Windows user who has run the workstation previously may already have a set of user-specific settings which will override whatever you see in ClearCanvas.Desktop.Executable.exe.config. So, if this still doesn't work, you have to check C:\Documents and Settings\USER\Local Settings\Application Data\ClearCanvas\... (Vista/7: C:\Users\USER\AppData\Roaming\ClearCanvas or something like that)

If you're building an installer to deploy your plugin, you'll have to have your installer merge your action model into the one that exists in the ClearCanvas.Desktop.Executable.exe.config file.

The version we're working on right now (available in the trunk source code) introduces a menu and toolbar customization tool.

Hope this helps,
// Jasper
xargon
Advanced Member
Advanced Member
Posts:38

--
2010-09-10 03:06 AM  
Thanks for that. Would this customization tool be available programatically?

Also, when is the next version coming out? :)
stewart
Senior Member
Senior Member
Posts:2033

--
2010-09-20 01:59 PM  
You should be able to customize the action model programatically with the next version. No firm timeline, but it should be out in the winter-ish timeframe.
Real-time support available to Clinical Edition and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.