casa
$Rev:20696$
|
Widget used to display table keywords. More...
#include <TBKeywordsTab.qo.h>
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 | |
TBTableTabs * | ttabs |
Useful pointers to table backend. | |
TBTable * | table |
bool | update |
Flag on whether events generated by the QTableWidget are "genuine.". | |
QCloseableWidget * | rightWidget |
Side panel. | |
TBArrayPanel * | arrayPanel |
Array panel. |
Widget used to display table keywords.
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.
casa::TBTableKeywordsTab::TBTableKeywordsTab | ( | TBTableTabs * | tt, |
TBTable * | t | ||
) |
Constructor which takes pointers to the table backend.
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.
void casa::TBTableKeywordsTab::clearWidgetInSplitter | ( | ) | [slot] |
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.)
QTableWidget* casa::TBTableKeywordsTab::getTableWidget | ( | ) |
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.
void casa::TBTableKeywordsTab::updateTable | ( | ProgressHelper * | pp = NULL | ) |
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.
TBArrayPanel* casa::TBTableKeywordsTab::arrayPanel [private] |
Array panel.
Definition at line 145 of file TBKeywordsTab.qo.h.
Side panel.
Definition at line 142 of file TBKeywordsTab.qo.h.
TBTable* casa::TBTableKeywordsTab::table [private] |
Definition at line 136 of file TBKeywordsTab.qo.h.
TBTableTabs* casa::TBTableKeywordsTab::ttabs [private] |
Useful pointers to table backend.
Definition at line 135 of file TBKeywordsTab.qo.h.
bool casa::TBTableKeywordsTab::update [private] |
Flag on whether events generated by the QTableWidget are "genuine.".
Definition at line 139 of file TBKeywordsTab.qo.h.