28 #include <QFileDialog> 
   29 #include <QHBoxLayout> 
   34 #include <QToolButton> 
   60                                      int group, 
int param) :
 
   65     fileAction->setText(
"Select Cube");
 
   66     connect(fileAction, SIGNAL(triggered(
bool)), 
this, SLOT(
SelectFile()));
 
   67     p_menu->addAction(fileAction);
 
   70     attAction->setText(
"Change Attributes ...");
 
   71     connect(attAction, SIGNAL(triggered(
bool)), 
this, SLOT(
SelectAttribute()));
 
   72     p_menu->addAction(attAction);
 
   75     viewAction->setText(
"View cube");
 
   76     connect(viewAction, SIGNAL(triggered(
bool)), 
this, SLOT(
ViewCube()));
 
   77     p_menu->addAction(viewAction);
 
   80     labAction->setText(
"View labels");
 
   81     connect(labAction, SIGNAL(triggered(
bool)), 
this, SLOT(
ViewLabel()));
 
   82     p_menu->addAction(labAction);
 
   84     p_fileButton->setMenu(p_menu);
 
   85     p_fileButton->setPopupMode(QToolButton::MenuButtonPopup);
 
   86     QString optButtonWhatsThisText = 
"<p><b>Function:</b> \ 
   87             Opens a file chooser window to select a file from</p> <p>\ 
   88             <b>Hint: </b> Click the arrow for more cube parameter options</p>";
 
   89     p_fileButton->setWhatsThis(optButtonWhatsThisText);
 
  109       QString curAtt = att.toString();
 
  111       int status = GuiInputAttribute::GetAttributes(curAtt, newAtt,
 
  114       if((status == 1) && (curAtt != newAtt)) {
 
  116         p_lineEdit->setText(f.expanded() + newAtt);
 
  122       att.addAttributes(
FileName(p_lineEdit->text()));
 
  124       QString curAtt = att.toString();
 
  126       int status = GuiOutputAttribute::GetAttributes(curAtt, newAtt,
 
  130       if((status == 1) && (curAtt != newAtt)) {
 
  132         p_lineEdit->setText(f.expanded() + newAtt);
 
  147         QString cubeName = 
Value();
 
  155         QString command = 
"$ISISROOT/bin/qview " + cubeName + 
" &";
 
  160         QString msg = 
"You must enter a cube name to open";
 
  177         QString cubeName = 
Value();
 
  192         QString msg = 
"You must enter a cube name to open";
 
virtual void SelectFile()
Gets an input/output file from a GUI filechooser or typed in filename. 
 
void ViewLabel()
Displays cube label in the GUI log. 
 
bool propagatePixelType() const 
Return true if the pixel type is to be propagated from an input cube. 
 
File name manipulation and expansion. 
 
Pvl * label() const 
Returns a pointer to the IsisLabel object associated with the cube. 
 
QString Value()
Gets the value found in the line edit text box. 
 
void GuiReportError(IException &e)
Loads the error message into the gui, but does not write it to the session log. 
 
GuiCubeParameter(QGridLayout *grid, UserInterface &ui, int group, int param)
Constructs GuiCubeParameter object. 
 
static void RunSystemCommand(QString commandLine)
This runs arbitrary system commands. 
 
static void GuiLog(const Pvl &results)
Writes the Pvl results to the sessionlog, but not to the printfile. 
 
void SelectAttribute()
Select cube attributes. 
 
#define _FILEINFO_
Macro for the filename and line number. 
 
Manipulate and parse attributes of output cube filenames. 
 
A type of error that could only have occurred due to a mistake on the user's part (e...
 
void close(bool remove=false)
Closes the cube and updates the labels. 
 
void open(const QString &cfile, QString access="r")
This method will open an isis cube for reading or reading/writing. 
 
QString ParamName(const int &group, const int ¶m) const 
Returns the parameter name. 
 
virtual bool IsModified()
Return if the parameter value is different from the default value. 
 
QString PixelType(const int &group, const int ¶m) const 
Returns the default pixel type from the XML. 
 
Container for cube-like labels. 
 
QString ParamFileMode(const int &group, const int ¶m) const 
Returns the file mode for a parameter in a specified group. 
 
~GuiCubeParameter()
Destructor of GuiCubeParameter object. 
 
Command Line and Xml loader, validation, and access. 
 
void ViewCube()
Opens cube in qview. 
 
IO Handler for Isis Cubes.