casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Member Functions | Private Attributes
casa::SearchMoleculesResultsWidget Class Reference

#include <SearchMoleculesResultsWidget.qo.h>

Inheritance diagram for casa::SearchMoleculesResultsWidget:
casa::SearchMoleculesResultDisplayer

List of all members.

Public Member Functions

 SearchMoleculesResultsWidget (QWidget *parent=0)
 ~SearchMoleculesResultsWidget ()
QList< int > getLineIndices () const
bool getLine (int lineIndex, Float &peak, Float &center, QString &molecularName, QString &chemicalName, QString &resolvedQNs, QString &frequencyUnits) const
void getLines (QList< float > &peaks, QList< float > &centers, QString molecularName, QList< QString > &chemicalNames, QList< QString > &resolvedQNSs, QString frequencyUnit) const
int getLineCount () const
int getSelectedLineCount () const
void displaySearchResults (const vector< SplatResult > &results, int offset, int totalCount)
 The parameters offset and count determine where the passed in results fit in the overall search.

Private Types

enum  ResultColumns {
  COL_SPECIES_ID,
  COL_SPECIES,
  COL_CHEMICAL,
  COL_FREQUENCY,
  COL_QN,
  COL_INTENSITY,
  COLUMN_COUNT
}

Private Member Functions

void initializeTable ()
void setTableValue (int row, int col, const QString &val)
void setTableValueHTML (int row, int col, const QString &val)
void setTableValue (int row, int col, double val)

Private Attributes

Ui::SearchMoleculesResultsWidgetClass ui

Detailed Description

Definition at line 34 of file SearchMoleculesResultsWidget.qo.h.


Member Enumeration Documentation

Enumerator:
COL_SPECIES_ID 
COL_SPECIES 
COL_CHEMICAL 
COL_FREQUENCY 
COL_QN 
COL_INTENSITY 
COLUMN_COUNT 

Definition at line 59 of file SearchMoleculesResultsWidget.qo.h.


Constructor & Destructor Documentation


Member Function Documentation

void casa::SearchMoleculesResultsWidget::displaySearchResults ( const vector< SplatResult > &  results,
int  offset,
int  countTotal 
) [virtual]

The parameters offset and count determine where the passed in results fit in the overall search.

The 'offset' parameters in the starting index and countTotal is the total number of search results available. This may be smaller than the number of results returned if the countTotal exceeds the limit on the number of search results obtained at one time.

Implements casa::SearchMoleculesResultDisplayer.

bool casa::SearchMoleculesResultsWidget::getLine ( int  lineIndex,
Float peak,
Float center,
QString &  molecularName,
QString &  chemicalName,
QString &  resolvedQNs,
QString &  frequencyUnits 
) const
void casa::SearchMoleculesResultsWidget::getLines ( QList< float > &  peaks,
QList< float > &  centers,
QString  molecularName,
QList< QString > &  chemicalNames,
QList< QString > &  resolvedQNSs,
QString  frequencyUnit 
) const
void casa::SearchMoleculesResultsWidget::setTableValue ( int  row,
int  col,
const QString &  val 
) [private]
void casa::SearchMoleculesResultsWidget::setTableValue ( int  row,
int  col,
double  val 
) [private]
void casa::SearchMoleculesResultsWidget::setTableValueHTML ( int  row,
int  col,
const QString &  val 
) [private]

Member Data Documentation

Ui::SearchMoleculesResultsWidgetClass casa::SearchMoleculesResultsWidget::ui [private]

Definition at line 58 of file SearchMoleculesResultsWidget.qo.h.


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