Back to index

salome-paravis  6.5.0
Classes | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Types
pqTableReaderPanel Class Reference

#include <pqTableReaderPanel.h>

Collaboration diagram for pqTableReaderPanel:
Collaboration graph

List of all members.


class  pqUI

Public Member Functions

 pqTableReaderPanel (pqProxy *proxy, QWidget *p=NULL)
 ~pqTableReaderPanel ()

Protected Slots

void onDelimiterChanged (const QString &value)
void onCurrentTableChanged (int currentTableIndex)

Protected Member Functions

virtual void linkServerManagerProperties ()
void updateAvailableTables (const bool keepCurrent)

Protected Attributes


Private Types

typedef pqNamedObjectPanel Superclass

Detailed Description

Definition at line 29 of file pqTableReaderPanel.h.

Member Typedef Documentation

typedef pqNamedObjectPanel pqTableReaderPanel::Superclass [private]

Definition at line 32 of file pqTableReaderPanel.h.

Constructor & Destructor Documentation

pqTableReaderPanel::pqTableReaderPanel ( pqProxy *  proxy,
QWidget *  p = NULL 

Definition at line 47 of file pqTableReaderPanel.cxx.

  Superclass(proxy, p)
  this->UI = new pqUI(this);

  this->connect(this->UI->ValueDelimiter, SIGNAL(textChanged(const QString&)),
              this, SLOT(onDelimiterChanged(const QString&)));
  this->connect(this->UI->TableNames, SIGNAL(currentIndexChanged(int)),
              this, SLOT(onCurrentTableChanged(int)));

Here is the call graph for this function:

Definition at line 62 of file pqTableReaderPanel.cxx.


Member Function Documentation

void pqTableReaderPanel::linkServerManagerProperties ( ) [protected, virtual]

Definition at line 76 of file pqTableReaderPanel.cxx.

  this->UI->Links.addPropertyLink(this->UI->TableNames, "currentIndex",
         SIGNAL(currentIndexChanged(int)), this->proxy(), 

  // To hook up the rest widgets

Here is the call graph for this function:

Here is the caller graph for this function:

void pqTableReaderPanel::onCurrentTableChanged ( int  currentTableIndex) [protected, slot]

Definition at line 66 of file pqTableReaderPanel.cxx.


Here is the caller graph for this function:

void pqTableReaderPanel::onDelimiterChanged ( const QString &  value) [protected, slot]

Definition at line 71 of file pqTableReaderPanel.cxx.


Here is the call graph for this function:

Here is the caller graph for this function:

void pqTableReaderPanel::updateAvailableTables ( const bool  keepCurrent) [protected]

Definition at line 86 of file pqTableReaderPanel.cxx.

  vtkSMStringVectorProperty* prop = vtkSMStringVectorProperty::SafeDownCast(
  int currentIndex = this->UI->TableNames->currentIndex();
  QString currentText = this->UI->TableNames->currentText();

  for(int id = 0; id < prop->GetNumberOfElements(); id++) 
      QString text(prop->GetElement(id));
      if (text.isEmpty()) 
         text = QString("Table:%1").arg(id);

  if (keepCurrent && 
      currentIndex < this->UI->TableNames->maxCount() &&
      currentText == this->UI->TableNames->itemText(currentIndex)) 

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 51 of file pqTableReaderPanel.h.

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