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: 孙磊
New Today New Today: 1
New Yesterday New Yesterday: 27
User Count Overall: 20591

People Online People Online:
Visitors Visitors: 17
Members Members: 0
Total Total: 17

Online Now Online Now:

ClearCanvas Community Forums

Adding new configuration page
Last Post 2010-06-28 08:41 AM by ikozyol. 6 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ikozyol
Basic Member
Basic Member
Posts:27

--
2010-06-12 10:49 PM  

Hello!

I have created a new plugin, and I would like to have a configuration page for this plugin, appearing in the Tools/Options dialog.

 

So, for my Foo plugin, (modeling on the Homepage configuration page) I have created a:

FooConfigurationPageProvider

FooConfigurationPage

FooConfigurationComponent

FooConfigurationControl

FooConfigurationView

FooSettings.settings

 

I can now see my Foo configuration page appearing in the Options dialog,

but I haven't been successful in saving/restoring settings.

 

I have a number of questions:

 

1) are settings stored locally, or are they pushed to the server?

2) if to the server, what is the mechanism for this? I didn't see any tables in the database for storing settings values.

3) are there any other files I need to change (like .config files) in order to get this working?

4) Is there a way of notifying the plugin that its settings have changed, in order to refresh its view?

 

Any clues here would be greatly appreciated.

 

Thanks!

 

Igor

 

 

 

 

 

 

 

ikozyol
Basic Member
Basic Member
Posts:27

--
2010-06-14 04:19 PM  
So, working on this a bit more, I've got everything working, except I am not sure
how to synchronize the plugin with settings changes..........
resnickj
Senior Member
Senior Member
Posts:968

--
2010-06-14 04:38 PM  
Hi,
The framework will only go so far as to invalidate the settings (provided your settings class is registered in the ApplicationSettingsRegistry). If you want to notify your view that settings have changed, you will need to find a way to do that in your code.
Real-time support available to Clinical Edition and Team Edition customers
ikozyol
Basic Member
Basic Member
Posts:27

--
2010-06-15 04:49 PM  
Thanks. I ended up creating an IConfiguraitonChangedListener interface, and registering
my views with the configuration component. I would reckon it would be useful to have
configuration notifications built into the framework.
resnickj
Senior Member
Senior Member
Posts:968

--
2010-06-15 05:17 PM  
I believe the settings class itself has a SettingsChanged event that you could subscribe to (this is part of the .NET framework). I've never tried using it though.
Real-time support available to Clinical Edition and Team Edition customers
stewart
Senior Member
Senior Member
Posts:2033

--
2010-06-16 02:24 PM  
The SettingsChanged event on the ApplicationSettingsBase class does work ... it is used in a few places in the viewer code.
Real-time support available to Clinical Edition and Team Edition customers
ikozyol
Basic Member
Basic Member
Posts:27

--
2010-06-28 08:41 AM  

Thanks, folks, I will try that.

You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.