30 #include <casaqt/QtBrowser/TBSorter.ui.h>
58 TBSorter(std::vector<casacore::String>&
cols, std::vector<std::pair<casacore::String, bool> >* sort = NULL,
59 QWidget* parent = NULL);
66 void sortEntered(std::vector<std::pair<casacore::String, bool> >& sort);
70 std::vector<casacore::String>
cols;
74 void add(
int row,
bool asc =
true);
void addAll()
Slot for the "Add All" button that adds all rows in the field list to the bottom of the sort list...
void tableIndexChanged(int row)
Slot for when the currently selected index in the sort list is changed.
Widget to configure a multi-field sort ordering.
void add()
Slot for the "Add" button that adds the selected row in the field list to the bottom of the sort list...
void swapRows(int r1, int r2)
Swaps the two indicated rows in the sort list.
void moveDown()
Slot for the "Move Down" button that moves the selected row in the sort list down one position...
void sortEntered(std::vector< std::pair< casacore::String, bool > > &sort)
sortEntered is emitted when the "casacore::Sort" button is clicked.
TBSorter(std::vector< casacore::String > &cols, std::vector< std::pair< casacore::String, bool > > *sort=NULL, QWidget *parent=NULL)
Constructor that takes the list of fields, an optional current sort order to display, and an optional parent.
std::vector< casacore::String > cols
The sortable fields.
void acceptButton()
Slot for the button to accept the current sort order and emit the sortEntered() signal.
void moveUp()
Slot for the "Move Up" button that moves the selected row in the sort list up one position...
void removeAll()
Slot for the "Remove All" button that removes all the rows from the sort list and returns them to the...