To get the server:
pqApplicationCore::instance()->getServerManagerModel()->getItemAtIndex<pqServer*>(0);

Utkarsh

On Tue, Feb 10, 2009 at 6:34 PM, Moreland, Kenneth <kmo...@sandia.gov> wrote:
> I have a plugin that adds toolbar actions.  From one of these actions I want
> to be able to open a dialog box to browse files on the server.  From within
> the plugin action, how do I get the active pqServer to point to the right
> connection?
>
> As an added bonus, how do I get a reference to the main window so that the
> dialog boxes have an appropriate parent?
>
> -Ken
>
>    ****      Kenneth Moreland
>     ***      Sandia National Laboratories
> ***********
> *** *** ***  email: kmo...@sandia.gov
> **  ***  **  phone: (505) 844-8919
>     ***      web:   http://www.cs.unm.edu/~kmorel
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to