|
Isis 3.0 Object Programmers' Reference |
Home |


Definition at line 10 of file BandSpinBox.h.
Public Slots | |
| void | setKey (QString key) |
| Sets the key to the provided key. | |
| void | setKey (int key) |
| Sets the key to the provided key. | |
Public Member Functions | |
| BandSpinBox (QWidget *parent=0) | |
| BandSpinBox constructor. | |
| void | setBandBin (Isis::Pvl &pvl, const QString &key="BandNumber") |
| Sets the band bin. | |
| QStringList | BandBinKeys () |
| returns the list of keys. | |
| QSize | sizeHint () const |
| returns a size hint for the spin box | |
| QValidator::State | validate (QString &input, int &pos) const |
| returns how valid the value from the spin box is. | |
Protected Member Functions | |
| QString | textFromValue (int val) const |
| Gets the text using p_map. | |
| int | valueFromText (const QString &text) const |
| gets the value (int) using p_map. | |
Private Attributes | |
| int | p_bands |
| Number of bands. | |
| QMap< QString, QStringList > | p_map |
| The maps the last key to all the keys. | |
| QString | p_lastKey |
| The last key. | |
| QStringList | p_keys |
| List of all the keys. | |
| Qisis::BandSpinBox::BandSpinBox | ( | QWidget * | parent = 0 |
) |
| QStringList Qisis::BandSpinBox::BandBinKeys | ( | ) |
returns the list of keys.
Definition at line 82 of file BandSpinBox.cpp.
References p_keys.
| void Qisis::BandSpinBox::setBandBin | ( | Isis::Pvl & | pvl, | |
| const QString & | key = "BandNumber" | |||
| ) |
| void Qisis::BandSpinBox::setKey | ( | int | key | ) | [slot] |
Sets the key to the provided key.
| key |
Definition at line 116 of file BandSpinBox.cpp.
References _FILEINFO_, Isis::iException::Message(), p_keys, p_map, and setKey().
| void Qisis::BandSpinBox::setKey | ( | QString | key | ) | [slot] |
Sets the key to the provided key.
| key |
Definition at line 93 of file BandSpinBox.cpp.
References _FILEINFO_, Isis::iException::Message(), p_lastKey, and p_map.
Referenced by setBandBin(), and setKey().
| QSize Qisis::BandSpinBox::sizeHint | ( | ) | const |
returns a size hint for the spin box
Definition at line 176 of file BandSpinBox.cpp.
References maximum, minimum, and textFromValue().
| QString Qisis::BandSpinBox::textFromValue | ( | int | val | ) | const [protected] |
Gets the text using p_map.
| val |
Definition at line 135 of file BandSpinBox.cpp.
References p_bands, p_lastKey, and p_map.
Referenced by sizeHint().
| QValidator::State Qisis::BandSpinBox::validate | ( | QString & | input, | |
| int & | pos | |||
| ) | const |
returns how valid the value from the spin box is.
| input | ||
| pos |
Definition at line 211 of file BandSpinBox.cpp.
| int Qisis::BandSpinBox::valueFromText | ( | const QString & | text | ) | const [protected] |
gets the value (int) using p_map.
| text |
Definition at line 159 of file BandSpinBox.cpp.
int Qisis::BandSpinBox::p_bands [private] |
Number of bands.
Definition at line 29 of file BandSpinBox.h.
Referenced by BandSpinBox(), setBandBin(), and textFromValue().
QStringList Qisis::BandSpinBox::p_keys [private] |
List of all the keys.
Definition at line 33 of file BandSpinBox.h.
Referenced by BandBinKeys(), setBandBin(), and setKey().
QString Qisis::BandSpinBox::p_lastKey [private] |
The last key.
Definition at line 32 of file BandSpinBox.h.
Referenced by BandSpinBox(), setKey(), textFromValue(), validate(), and valueFromText().
QMap<QString, QStringList > Qisis::BandSpinBox::p_map [private] |
The maps the last key to all the keys.
Definition at line 31 of file BandSpinBox.h.
Referenced by BandSpinBox(), setBandBin(), setKey(), textFromValue(), validate(), and valueFromText().