Back to index

salome-paravis  6.5.0
Public Member Functions | Protected Slots | Protected Attributes
MyViewActiveOptions Class Reference

#include <MyViewActiveOptions.h>

List of all members.

Public Member Functions

 MyViewActiveOptions (QObject *parent=0)
 Creates a MyView view options instance.
virtual ~MyViewActiveOptions ()
virtual void showOptions (pqView *view, const QString &page, QWidget *parent=0)
 pqActiveViewOptions Methods
virtual void changeView (pqView *view)
virtual void closeOptions ()

Protected Slots

void finishDialog ()

Protected Attributes

QPointer< pqOptionsDialog > Dialog
QPointer< MyViewOptionsOptions

Detailed Description

Definition at line 42 of file MyViewActiveOptions.h.


Constructor & Destructor Documentation

MyViewActiveOptions::MyViewActiveOptions ( QObject *  parent = 0)

Creates a MyView view options instance.

Definition at line 39 of file MyViewActiveOptions.cxx.

  : pqActiveViewOptions(parentObject)
{
}

Definition at line 44 of file MyViewActiveOptions.cxx.

{
}

Member Function Documentation

void MyViewActiveOptions::changeView ( pqView *  view) [virtual]

Definition at line 80 of file MyViewActiveOptions.cxx.

{
  this->Options->setView(view);
}

Here is the caller graph for this function:

Definition at line 85 of file MyViewActiveOptions.cxx.

{
  if(this->Dialog)
    {
    this->Dialog->accept();
    }
}
void MyViewActiveOptions::finishDialog ( ) [protected, slot]

Definition at line 93 of file MyViewActiveOptions.cxx.

{
  emit this->optionsClosed(this);
}

Here is the caller graph for this function:

void MyViewActiveOptions::showOptions ( pqView *  view,
const QString &  page,
QWidget *  parent = 0 
) [virtual]

pqActiveViewOptions Methods

Definition at line 48 of file MyViewActiveOptions.cxx.

{
  if(!this->Dialog)
    {
    this->Dialog = new pqOptionsDialog(widgetParent);
    this->Dialog->setApplyNeeded(true);
    this->Dialog->setObjectName("ActiveMyViewOptions");
    this->Dialog->setWindowTitle("My View Options");
    this->Options = new MyViewOptions;
    this->Dialog->addOptions(this->Options);
    if(page.isEmpty())
      {
      QStringList pages = this->Options->getPageList();
      if(pages.size())
        {
        this->Dialog->setCurrentPage(pages[0]);
        }
      }
    else
      {
      this->Dialog->setCurrentPage(page);
      }
    
    this->connect(this->Dialog, SIGNAL(finished(int)),
        this, SLOT(finishDialog()));
    }

  this->changeView(view);
  this->Dialog->show();
}

Here is the call graph for this function:


Member Data Documentation

QPointer<pqOptionsDialog> MyViewActiveOptions::Dialog [protected]

Definition at line 63 of file MyViewActiveOptions.h.

Definition at line 64 of file MyViewActiveOptions.h.


The documentation for this class was generated from the following files: