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";