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

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

#include <TBConnection.qo.h>

List of all members.

Public Member Functions

 TBConnection (TBMain *main, QWidget *parent=NULL)
 Builds a connection dialog with the given TBMain.
 ~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.

Private Slots

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

Private Attributes

TBMainparent
 Pointer to TBMain parent.

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 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 56 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.


Member Function Documentation

void casa::TBConnection::accepted ( ) [private, slot]

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 ( ) [private, slot]

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 ( ) [private, slot]

Slot for when the user clicks the direct box.

Updates the help text to TBConstants::OPEN_TEXT_DIRECT.

void casa::TBConnection::clickedDOM ( ) [private, slot]

Slot for when the user clicks the DOM parser box.

Updates the help text to TBConstants::OPEN_TEXT_DOM.

void casa::TBConnection::clickedHome ( ) [private, slot]

Slot for when the user clicks the home parser box.

Updates the help text to TBConstants::OPEN_TEXT_HOME.

void casa::TBConnection::clickedHost ( ) [private, slot]

Slot for when the user clicks the host line edit.

Updates the help text to TBConstants::OPEN_TEXT_HOST.

void casa::TBConnection::clickedLocal ( ) [private, slot]

Slot for when the user clicks the local box.

Updates the help text to TBConstants::OPEN_TEXT_LOCAL.

void casa::TBConnection::clickedLocation ( ) [private, slot]

Slot for when the user clicks the location line edit.

Updates the help text to TBConstants::OPEN_TEXT_LOCATION.

void casa::TBConnection::clickedNum ( ) [private, slot]

Slot for when the user clicks the num line edit.

Updates the help text to TBConstants::OPEN_TEXT_NUM.

void casa::TBConnection::clickedPort ( ) [private, slot]

Slot for when the user clicks the port line edit.

Updates the help text to TBConstants::OPEN_TEXT_PORT.

void casa::TBConnection::clickedRemote ( ) [private, slot]

Slot for when the user clicks the remote box.

Updates the help text to TBConstants::OPEN_TEXT_REMOTE.

void casa::TBConnection::clickedSAX ( ) [private, slot]

Slot for when the user clicks the SAX parser box.

Updates the help text to TBConstants::OPEN_TEXT_SAX.

void casa::TBConnection::clickedStart ( ) [private, slot]

Slot for when the user clicks the start line edit.

Updates the help text to TBConstants::OPEN_TEXT_START.

void casa::TBConnection::clickedXML ( ) [private, slot]

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

Pointer to TBMain parent.

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


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