27 #ifndef QTINDEXCHOOSER_QO_H_
28 #define QTINDEXCHOOSER_QO_H_
30 #include <casaqt/QtUtilities/QtIndexChooser.ui.h>
64 unsigned int index()
const;
75 void setNames(
const std::vector<casacore::String>& names);
76 void setNames(
const std::vector<unsigned int>& indices,
77 const std::vector<casacore::String>& names);
78 void setNames(
const std::map<unsigned int, casacore::String>& names);
79 void setNames(
const std::map<casacore::String, unsigned int>& names);
83 void setRowsCols(
unsigned int nRows,
unsigned int nCols);
void setRowsCols(unsigned int nRows, unsigned int nCols)
Only valid if type is ROW_COL.
void indexChanged_()
Slot for when the index changes.
~QtIndexChooser()
Destructor.
QtIndexChooser(Type type, QWidget *parent=NULL)
Non-Static //.
virtual Type type()
Return the type enum.
void setType(Type type, bool resizeToHint=true)
Sets the type to the given, resizing if indicated.
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
Widget that allows the user to pick an index, with a number of choices on how the index can be chosen...
void setNames(const std::vector< casacore::String > &names)
Only valid if type is NAME.
void setMaxIndex(unsigned int maxIndex)
Only valid if type is INDEX.
void setName(unsigned int index, const casacore::String &name)
Only valid if type is NAME.
void indexChanged(unsigned int newIndex)
Emitted when the index changes, and contains the new index value.
unsigned int index() const
Returns the currently set index on the widget.
void setupNameChooser()
Sets up the name chooser for the currently set name/index mappings.
String: the storage and methods of handling collections of characters.
QMap< QString, unsigned int > itsNames_
Name/Index map.