casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
casa::TBNewKeyword Class Reference

#include <TBKeywordsTab.qo.h>

Inheritance diagram for casa::TBNewKeyword:

Signals

void newKeyword (int field, casacore::String name, casacore::String type, void *value)
 newKeyword is emitted when the user has entered a new keyword. More...
 

Public Member Functions

 TBNewKeyword (std::vector< casacore::String > *fields=NULL, QWidget *parent=NULL)
 GUI for entering a new keyword. More...
 
 ~TBNewKeyword ()
 

Private Slots

void typeChanged (int index)
 Catches when the user changes the type and changes the types widget accordingly. More...
 

Private Attributes

std::vector< casacore::String > * types
 Displayed data types. More...
 
TBTypestypesWidget
 Widget to enter the value based on the type. More...
 

Detailed Description

Definition at line 48 of file TBKeywordsTab.qo.h.

Constructor & Destructor Documentation

casa::TBNewKeyword::TBNewKeyword ( std::vector< casacore::String > *  fields = NULL,
QWidget *  parent = NULL 
)

GUI for entering a new keyword.

Synopsis

(Not Completed.) A TBNewKeyword is a dialog that allows the user to enter a new keyword. The parent/caller is responsible for connecting the signal and actually adding the new keyword. Constructor that takes an optional vector of fields for entering a new field keyword. If this vector is null, a table keyword is entered.

casa::TBNewKeyword::~TBNewKeyword ( )

Member Function Documentation

void casa::TBNewKeyword::newKeyword ( int  field,
casacore::String  name,
casacore::String  type,
void *  value 
)
signal

newKeyword is emitted when the user has entered a new keyword.

The field index is -1 for a table keyword; otherwise it holds the index of the field to which the keyword should be added.

void casa::TBNewKeyword::typeChanged ( int  index)
privateslot

Catches when the user changes the type and changes the types widget accordingly.

Member Data Documentation

std::vector<casacore::String>* casa::TBNewKeyword::types
private

Displayed data types.

Definition at line 76 of file TBKeywordsTab.qo.h.

TBTypes* casa::TBNewKeyword::typesWidget
private

Widget to enter the value based on the type.

Definition at line 79 of file TBKeywordsTab.qo.h.


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