casa
$Rev:20696$
|
Dialog for opening/connecting to a table with options. More...
#include <TBConnection.qo.h>
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 | |
TBMain * | parent |
Pointer to TBMain parent. |
Dialog for opening/connecting to a table with options.
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.
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.
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.
TBMain* casa::TBConnection::parent [private] |
Pointer to TBMain parent.
Definition at line 74 of file TBConnection.qo.h.