27 #ifndef TBTABLETABS_H_
28 #define TBTABLETABS_H_
30 #include <casaqt/QtBrowser/TBTableTabs.ui.h>
111 std::vector<std::pair<casacore::String, bool> >*
getSortFields();
137 void sort(std::vector<std::pair<casacore::String, bool> >& s);
static const unsigned int DEFAULT_SELECT_NUM
The default number of rows to load from the table at a time.
void insertRows(int n)
If the table allows for insertion of rows, the given number of rows is inserted at the end of the tab...
casacore::String getFileName()
Returns the location of this table.
QTreeWidget * getFieldKeywords()
Returns the QTreeWidget used to display the field keywords.
TBDataTab dataTab
casacore::Table data tab.
casacore::String name
This table's name.
QTableWidget * getTableKeywords()
Returns the QTableWidget used to display table keywords.
casacore::String filename
This table's location.
void deleteRows(std::vector< int > r)
Deletes the given rows from the table, if the table allows for deletion of rows.
void dataChanged(int row, int col, casacore::String newVal)
Updates the underlying table with the new data and then updates the GUI displays if successful...
bool available
Indicates whether this table is currently available.
void sort(std::vector< std::pair< casacore::String, bool > > &s)
Sorts the table data tab with the given sort order.
bool loadRows(int start=0, int num=TBConstants::DEFAULT_SELECT_NUM)
Loads rows into the table backend and, if successful, updates the three GUI displays to reflect the n...
Widget used to display table data.
Browser widget for managing opened tables.
TBTableTabs(TBBrowser *b, casacore::String filename, DriverParams *dp, bool taql)
Constructor that takes the browser parent, the location of the table, the driver parameters for openi...
void clearWidgetInFieldKeywordSplitter()
Clears the side panel on the field keywords tab.
Widget used to display table keywords.
TBFieldKeywordsTab fieldKeywordsTab
Field keywords tab.
void showWidgetInFieldKeywordSplitter(QWidget *widget)
Shows the given widget in the side panel on the field keywords tab.
void setEditable(bool e)
Sets whether this table is currently in editing mode or not.
TBTableKeywordsTab keywordsTab
casacore::Table keywords tab.
TBBrowser * browser
Reference to parent.
void clearWidgetInKeywordSplitter()
Clears the side panel on the table keywords tab.
Primary interface for the rest of the browser to a table.
bool isAvailable()
Returns true if the table is available, false otherwise.
Widget used to display field keywords.
TBTable table
casacore::Table backend.
QTableWidget * getTableWidget()
Returns the QTableWidget used to display table data.
void clearSort()
Clears the current sort on the table data tab.
void clearWidgetInCurrentSplitter()
Clears the side panel on the currently selected tab.
TBBrowser * getBrowser()
Returns the browser associated with this table.
TBTableKeywordsTab * getKeywordsTab()
Returns the table keywords tab associated with this table.
bool isEditable()
Returns true if the table is currently in editing mode, false otherwise.
TBDataTab * getDataTab()
Returns the data tab associated with this table.
std::vector< std::pair< casacore::String, bool > > * getSortFields()
Returns the current sort on the table data tab, or an empty list if there is none.
void clearWidgetInTableSplitter()
Clears the side panel on the table data tab.
void highlight(int row)
Selects and highlights the given row in the data tab.
TBFieldKeywordsTab * getFieldKeywordsTab()
Returns the field keywords tab assicated with this table.
bool editable
Indicates whether this table is currently in editing mode or not.
const Double e
e and functions thereof:
Collection of table backend and display tabs.
String: the storage and methods of handling collections of characters.
void showWidgetInTableSplitter(QWidget *widget, bool isArray=false)
Shows the given widget in the side panel on the table data tab.
casacore::String getName()
Returns the "name" of this table (which is the last part of the filename).
void showWidgetInKeywordSplitter(QWidget *widget)
Shows the given widget in the side panel on the table keywords tab.
Parameters to indicate what driver should be used for the table backend.
void showWidgetInCurrentSplitter(QWidget *widget)
Shows the given widget in the side panel of the tab that is currently selected.
TBTable * getTable()
Returns the underlying table backend.