An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
|
Isis 3 Programmer Reference
|

#include <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 (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. | |
Definition at line 23 of file BandSpinBox.h.
| Isis::BandSpinBox::BandSpinBox | ( | QWidget * | parent = 0 | ) |
BandSpinBox constructor.
| parent |
Definition at line 21 of file BandSpinBox.cpp.
References p_bands, p_lastKey, and p_map.
Referenced by sizeHint().
| QStringList Isis::BandSpinBox::BandBinKeys | ( | ) |
returns the list of keys.
Definition at line 90 of file BandSpinBox.cpp.
References p_keys.
| void Isis::BandSpinBox::setBandBin | ( | Pvl & | pvl, |
| const QString & | key = "BandNumber" ) |
Sets the band bin.
| pvl | |
| key |
Definition at line 41 of file BandSpinBox.cpp.
References Isis::PvlObject::findObject(), Isis::PvlContainer::keywords(), Isis::PvlContainer::name(), p_bands, p_keys, p_map, and setKey().
|
slot |
Sets the key to the provided key.
| key |
Definition at line 123 of file BandSpinBox.cpp.
References p_keys, p_map, Isis::IException::Programmer, and setKey().
|
slot |
Sets the key to the provided key.
| key |
Definition at line 101 of file BandSpinBox.cpp.
References p_lastKey, p_map, and Isis::IException::Programmer.
Referenced by setBandBin(), and setKey().
| QSize Isis::BandSpinBox::sizeHint | ( | ) | const |
returns a size hint for the spin box
Definition at line 182 of file BandSpinBox.cpp.
References BandSpinBox(), and textFromValue().
|
protected |
Gets the text using p_map.
| val |
Definition at line 141 of file BandSpinBox.cpp.
References p_bands, p_lastKey, and p_map.
Referenced by sizeHint().
| QValidator::State Isis::BandSpinBox::validate | ( | QString & | input, |
| int & | pos ) const |
returns how valid the value from the spin box is.
| input | |
| pos |
Definition at line 216 of file BandSpinBox.cpp.
|
protected |
gets the value (int) using p_map.
| text |
Definition at line 165 of file BandSpinBox.cpp.
|
private |
Number of bands.
Definition at line 42 of file BandSpinBox.h.
Referenced by BandSpinBox(), setBandBin(), and textFromValue().
|
private |
List of all the keys.
Definition at line 46 of file BandSpinBox.h.
Referenced by BandBinKeys(), setBandBin(), and setKey().
|
private |
The last key.
Definition at line 45 of file BandSpinBox.h.
Referenced by BandSpinBox(), setKey(), textFromValue(), validate(), and valueFromText().
|
private |
The maps the last key to all the keys.
Definition at line 44 of file BandSpinBox.h.
Referenced by BandSpinBox(), setBandBin(), setKey(), setKey(), textFromValue(), validate(), and valueFromText().