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

Widget used to display table keywords. More...

#include <TBKeywordsTab.qo.h>

List of all members.

Public Slots

void clearWidgetInSplitter ()
 Clears whatever widget (if any) is currently being displayed in the side panel.
void showWidgetInSplitter (QWidget *widget)
 Show the given widget on the right side of the splitter.

Signals

void rightWidgetClosed (QWidget *widget)
 This signal is emitted when the right widget is closed.

Public Member Functions

 TBTableKeywordsTab (TBTableTabs *tt, TBTable *t)
 Constructor which takes pointers to the table backend.
 ~TBTableKeywordsTab ()
QTableWidget * getTableWidget ()
 Returns the table widget used to display the keywords.
void updateTable (ProgressHelper *pp=NULL)
 Updates the QTableWidget with the new data that has been loaded into the table backend.

Private Slots

void doubleClicked (int row, int col)
 Slot for when a keyword is double-clicked.
void addKeyword ()
 Slot for "Add Keyword" button.
void editKeyword ()
 Slot for "Edit Keyword" button.
void removeKeyword ()
 Slot for "Remove Keyword" button.
void cellSelected (int row)
 Slot for when a keyword is selected in the table.

Private Attributes

TBTableTabsttabs
 Useful pointers to table backend.
TBTabletable
bool update
 Flag on whether events generated by the QTableWidget are "genuine.".
QCloseableWidgetrightWidget
 Side panel.
TBArrayPanelarrayPanel
 Array panel.

Detailed Description

Widget used to display table keywords.

Synopsis

Table keywords are displayed in a QTableWidget which cannot be edited. Double-clicking certain types of keywords has certain effects: double-clicking a table keyword will open that subtable while double-clicking an array will open the array in a side panel.

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


Constructor & Destructor Documentation

Constructor which takes pointers to the table backend.


Member Function Documentation

void casa::TBTableKeywordsTab::addKeyword ( ) [private, slot]

Slot for "Add Keyword" button.

(Not currently implemented.)

void casa::TBTableKeywordsTab::cellSelected ( int  row) [private, slot]

Slot for when a keyword is selected in the table.

Clears whatever widget (if any) is currently being displayed in the side panel.

void casa::TBTableKeywordsTab::doubleClicked ( int  row,
int  col 
) [private, slot]

Slot for when a keyword is double-clicked.

void casa::TBTableKeywordsTab::editKeyword ( ) [private, slot]

Slot for "Edit Keyword" button.

(Not currently implemented.)

Returns the table widget used to display the keywords.

void casa::TBTableKeywordsTab::removeKeyword ( ) [private, slot]

Slot for "Remove Keyword" button.

(Not currently implemented.)

void casa::TBTableKeywordsTab::rightWidgetClosed ( QWidget *  widget) [signal]

This signal is emitted when the right widget is closed.

The QWidget points to the widget that was just closed.

void casa::TBTableKeywordsTab::showWidgetInSplitter ( QWidget *  widget) [slot]

Show the given widget on the right side of the splitter.

Updates the QTableWidget with the new data that has been loaded into the table backend.

If a ProgressHelper is provided, it will be updated periodically with progress information.


Member Data Documentation

Array panel.

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

Side panel.

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

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

Useful pointers to table backend.

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

Flag on whether events generated by the QTableWidget are "genuine.".

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


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