27 #ifndef TBKEYWORDSTAB_H_
28 #define TBKEYWORDSTAB_H_
30 #include <casaqt/QtBrowser/TBTableKeywordsTab.ui.h>
31 #include <casaqt/QtBrowser/TBFieldKeywordsTab.ui.h>
32 #include <casaqt/QtBrowser/TBNewKeyword.ui.h>
43 class QCloseableWidget;
64 TBNewKeyword(std::vector<casacore::String>* fields = NULL, QWidget* parent = NULL);
76 std::vector<casacore::String>*
types;
void rightWidgetClosed(QWidget *widget)
This signal is emitted when the right widget is closed.
void typeChanged(int index)
Catches when the user changes the type and changes the types widget accordingly.
void editKeyword()
Slot for "Edit Keyword" button.
TBArrayPanel * arrayPanel
casacore::Array panel.
void cellSelected(int row)
Slot for when a keyword is selected in the table.
TBFieldKeywordsTab(TBTableTabs *tt, TBTable *t)
Constructor which takes pointers to the table backend.
(Not finished) Widget for entering a value based on its type.
TBTypes * typesWidget
Widget to enter the value based on the type.
virtual Type type()
Return the type enum.
std::vector< casacore::String > * types
Displayed data types.
QCloseableWidget * rightWidget
Side panel.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
TBNewKeyword(std::vector< casacore::String > *fields=NULL, QWidget *parent=NULL)
GUI for entering a new keyword.
TBTableTabs * ttabs
Useful pointers to the table backend.
void addKeyword()
Slot for "Add Keyword" button.
Wrapper around a QProgressPanel or other QLabel/QProgressBar pairing.
Widget used to display table keywords.
void clearWidgetInSplitter()
Clears whatever widget (if any) is currently being displayed in the side panel.
bool update
Flag on whether events generated by the QTableWidget are "genuine.".
Primary interface for the rest of the browser to a table.
Widget used to display field keywords.
void rightWidgetClosed(QWidget *widget)
This signal is emitted when the right widget is closed.
void updateTable(ProgressHelper *pp=NULL)
Updates the QTreeWidget with the new data that has been loaded into the table backend.
void doubleClicked(int row, int col)
Slot for when a keyword is double-clicked.
TBTableTabs * ttabs
Useful pointers to table backend.
void newKeyword(int field, casacore::String name, casacore::String type, void *value)
newKeyword is emitted when the user has entered a new keyword.
QCloseableWidget * rightWidget
Side panel.
bool update
Flag on whether events generated by the QTableWidget are "genuine.".
QTreeWidget * getTreeWidget()
Returns the QTreeWidget in which the field keywords are displayed.
Collection of table backend and display tabs.
String: the storage and methods of handling collections of characters.
QTableWidget * getTableWidget()
Returns the table widget used to display the keywords.
void showWidgetInSplitter(QWidget *widget)
Show the given widget on the right side of the splitter.
void removeKeyword()
Slot for "Remove Keyword" button.
void clearWidgetInSplitter()
Clears whatever widget (if any) is currently being displayed in the side panel.
TBArrayPanel * arrayPanel
casacore::Array panel.
void showWidgetInSplitter(QWidget *widget)
Show the given widget on the right side of the splitter.
void doubleClicked(QTreeWidgetItem *item, int col)
Slot for when a field keyword is double-clicked.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Panel that can hold multiple TBViewArray widgets.
void updateTable(ProgressHelper *pp=NULL)
Updates the QTableWidget with the new data that has been loaded into the table backend.
TBTableKeywordsTab(TBTableTabs *tt, TBTable *t)
Constructor which takes pointers to the table backend.