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

Widget used to display table keywords. More...

#include <TBKeywordsTab.qo.h>

Inheritance diagram for casa::TBTableKeywordsTab:

Public Slots

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

Signals

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

Public Member Functions

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

Private Slots

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

Private Attributes

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

Detailed Description

Widget used to display table keywords.

Synopsis

casacore::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 98 of file TBKeywordsTab.qo.h.

Constructor & Destructor Documentation

casa::TBTableKeywordsTab::TBTableKeywordsTab ( TBTableTabs tt,
TBTable t 
)

Constructor which takes pointers to the table backend.

casa::TBTableKeywordsTab::~TBTableKeywordsTab ( )

Member Function Documentation

void casa::TBTableKeywordsTab::addKeyword ( )
privateslot

Slot for "Add Keyword" button.

(Not currently implemented.)

void casa::TBTableKeywordsTab::cellSelected ( int  row)
privateslot

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 
)
privateslot

Slot for when a keyword is double-clicked.

void casa::TBTableKeywordsTab::editKeyword ( )
privateslot

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 ( )
privateslot

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.

Member Data Documentation

TBArrayPanel* casa::TBTableKeywordsTab::arrayPanel
private

casacore::Array panel.

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

QCloseableWidget* casa::TBTableKeywordsTab::rightWidget
private

Side panel.

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

TBTable* casa::TBTableKeywordsTab::table
private

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

TBTableTabs* casa::TBTableKeywordsTab::ttabs
private

Useful pointers to table backend.

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

bool casa::TBTableKeywordsTab::update
private

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

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


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