20 #include <QMessageBox>
21 #include <QInputDialog>
30 setObjectName( name ? name :
"Go4UserCommands");
80 #ifdef USERCOMMANDS_CONFIGWINDOW
81 ConfigureButton->setCheckable(
false);
108 CommandAutoButton->setIcon(QIcon(
":/icons/startselected.png" ));
109 CommandAutoButton->setToolTip(
"Start Command Execution Timer");
110 AutoTimeSpinBox->setEnabled(
true);
114 double t=1000.0*AutoTimeSpinBox->value();
116 CommandAutoButton->setIcon(QIcon(
":/icons/Stop.png" ));
117 CommandAutoButton->setToolTip(
"Stop Command Execution Timer");
118 AutoTimeSpinBox->setEnabled(
false);
127 if(ConfigureButton->isChecked())
146 if ( setup.exec() != QDialog::Accepted )
return;
239 if (cmd.length()==0)
return;
241 StatusMessage(QString(
"Invoke custom analysis command: ").append(cmd));
259 iconname=QString(
":/icons/Number-%1-icon-green.png").arg(
id+1);
263 iconname=QString(
":/icons/Number-%1-icon.png").arg(
id+1);
void ExecuteAnalysisMacro_2()
QString GetCommand(int id)
void ExecuteAnalysisMacro_6()
void ExecuteAnalysisMacro_8()
void setAnalysisMacroTip(int id, const QString &com)
TGo4UserCommands(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=0)
QString GetTooltip(int id)
void SetAutoExecute(int id, bool on)
void AnalysisMacroMonitorBtn_clicked()
void ExecuteAnalysisMacro_7()
TGo4ServerProxy * FindServer(const char *itemname=0, Bool_t asanalysis=kTRUE)
std::vector< bool > fAnalysisMacroAutoExecute
void ExecuteAnalysisMacro(int id)
void AnalysisMacroMonitorTimeout()
#define GO4GUI_MAXMACRONUM
void ExecuteAnalysisMacro_4()
virtual void ExecuteLine(const char *line)
void ExecuteAnalysisMacro_3()
bool getAnalysisMacroAutomode(int id)
void ExecuteAnalysisMacro_9()
void ExecuteAnalysisMacro_1()
QString getAnalysisMacroCommand(int id)
void setAnalysisMacroCommand(int id, const QString &com)
void setAnalysisMacroAutomode(int id, bool on)
void ExecuteAnalysisMacro_5()
void ConfigureAnalysisMacros()
bool GetAutoExecute(int id)
std::vector< QString > fAnalysisMacroCommands
std::vector< QToolButton * > fAnalysisMacroButtons
QTimer * fAnalysisMacroTimer
QString getAnalysisMacroTip(int id)