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

Dialog for opening/connecting to a table with options. More...

#include <TBConnection.qo.h>

Inheritance diagram for casa::TBConnection:

Public Member Functions

 TBConnection (TBMain *main, QWidget *parent=NULL)
 Builds a connection dialog with the given TBMain. More...
 
 ~TBConnection ()
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)
 Detects when one of the QLineEdit objects are clicked and calls the relevant clicked[Name]() slot. More...
 

Private Slots

void accepted ()
 Slot for when the user clicks the "accept" button. More...
 
void browse ()
 Slot for when the user clicks the "browse" button. More...
 
void clickedLocal ()
 Slot for when the user clicks the local box. More...
 
void clickedRemote ()
 Slot for when the user clicks the remote box. More...
 
void clickedHost ()
 Slot for when the user clicks the host line edit. More...
 
void clickedPort ()
 Slot for when the user clicks the port line edit. More...
 
void clickedLocation ()
 Slot for when the user clicks the location line edit. More...
 
void clickedDirect ()
 Slot for when the user clicks the direct box. More...
 
void clickedXML ()
 Slot for when the user clicks the XML box. More...
 
void clickedHome ()
 Slot for when the user clicks the home parser box. More...
 
void clickedDOM ()
 Slot for when the user clicks the DOM parser box. More...
 
void clickedSAX ()
 Slot for when the user clicks the SAX parser box. More...
 
void clickedStart ()
 Slot for when the user clicks the start line edit. More...
 
void clickedNum ()
 Slot for when the user clicks the num line edit. More...
 

Private Attributes

TBMainparent
 Pointer to TBMain parent. More...
 

Detailed Description

Dialog for opening/connecting to a table with options.

Synopsis

TBConnection is a dialog to open a table with user-specified options. Important: this is not currently supported, but in the future if a client/server architecture is used then this widget can be used for connecting to a remote table. Other options include the driver type: direct (using the casacore::Table module code for a local table) or XML. TBConnection displays helpful explanation text when the user clicks on the different options.

Definition at line 54 of file TBConnection.qo.h.

Constructor & Destructor Documentation

casa::TBConnection::TBConnection ( TBMain main,
QWidget *  parent = NULL 
)

Builds a connection dialog with the given TBMain.

If parent is NULL, then the connection is displayed as a modal dialog; otherwise it is displayed in the parent.

casa::TBConnection::~TBConnection ( )

Member Function Documentation

void casa::TBConnection::accepted ( )
privateslot

Slot for when the user clicks the "accept" button.

Checks for errors, and then opens the table with the specified options in the browser.

void casa::TBConnection::browse ( )
privateslot

Slot for when the user clicks the "browse" button.

Opens a filebrowser and sets the text of the line edit to the path of the selected file. Updates the help text to TBConstants::OPEN_TEXT_LOCATION.

void casa::TBConnection::clickedDirect ( )
privateslot

Slot for when the user clicks the direct box.

Updates the help text to TBConstants::OPEN_TEXT_DIRECT.

void casa::TBConnection::clickedDOM ( )
privateslot

Slot for when the user clicks the DOM parser box.

Updates the help text to TBConstants::OPEN_TEXT_DOM.

void casa::TBConnection::clickedHome ( )
privateslot

Slot for when the user clicks the home parser box.

Updates the help text to TBConstants::OPEN_TEXT_HOME.

void casa::TBConnection::clickedHost ( )
privateslot

Slot for when the user clicks the host line edit.

Updates the help text to TBConstants::OPEN_TEXT_HOST.

void casa::TBConnection::clickedLocal ( )
privateslot

Slot for when the user clicks the local box.

Updates the help text to TBConstants::OPEN_TEXT_LOCAL.

void casa::TBConnection::clickedLocation ( )
privateslot

Slot for when the user clicks the location line edit.

Updates the help text to TBConstants::OPEN_TEXT_LOCATION.

void casa::TBConnection::clickedNum ( )
privateslot

Slot for when the user clicks the num line edit.

Updates the help text to TBConstants::OPEN_TEXT_NUM.

void casa::TBConnection::clickedPort ( )
privateslot

Slot for when the user clicks the port line edit.

Updates the help text to TBConstants::OPEN_TEXT_PORT.

void casa::TBConnection::clickedRemote ( )
privateslot

Slot for when the user clicks the remote box.

Updates the help text to TBConstants::OPEN_TEXT_REMOTE.

void casa::TBConnection::clickedSAX ( )
privateslot

Slot for when the user clicks the SAX parser box.

Updates the help text to TBConstants::OPEN_TEXT_SAX.

void casa::TBConnection::clickedStart ( )
privateslot

Slot for when the user clicks the start line edit.

Updates the help text to TBConstants::OPEN_TEXT_START.

void casa::TBConnection::clickedXML ( )
privateslot

Slot for when the user clicks the XML box.

Updates the help text to TBConstants::OPEN_TEXT_XML.

bool casa::TBConnection::eventFilter ( QObject *  obj,
QEvent *  event 
)
protected

Detects when one of the QLineEdit objects are clicked and calls the relevant clicked[Name]() slot.

Member Data Documentation

TBMain* casa::TBConnection::parent
private

Pointer to TBMain parent.

Definition at line 72 of file TBConnection.qo.h.


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