19 #include <QPushButton>
24 setObjectName(
"Go4UserCommandsDialog");
33 QTableWidgetItem* comitem= CommandsTable->item(
id,0);
34 if(comitem) comitem->setText(com);
35 QTableWidgetItem* tipitem= CommandsTable->item(
id,1);
36 if(tipitem) tipitem->setText(tip);
38 QTableWidgetItem* autoitem= CommandsTable->item(
id,2);
40 autoitem->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
41 autoitem->setCheckState( monitor ? Qt::Checked : Qt::Unchecked);
46 QObject::connect (DialogButtonBox, SIGNAL(clicked(QAbstractButton*)),
this, SLOT(
ButtonPressed(QAbstractButton*)));
52 QTableWidgetItem* item=CommandsTable->item(
id,0);
61 QTableWidgetItem* item=CommandsTable->item(
id,1);
70 QTableWidgetItem* item=CommandsTable->item(
id,2);
72 rev=(item->checkState()==Qt::Checked);
80 QPushButton* pbut=
dynamic_cast<QPushButton*
>(but);
81 if (pbut == DialogButtonBox->button (QDialogButtonBox::Reset))
86 QTableWidgetItem* comitem= CommandsTable->item(
id,0);
87 if(comitem) comitem->setText(QString(
""));
88 QTableWidgetItem* tipitem= CommandsTable->item(
id,1);
89 if(tipitem) tipitem->setText(QString(
""));
90 QTableWidgetItem* autoitem= CommandsTable->item(
id,2);
92 autoitem->setCheckState(Qt::Unchecked);
virtual void ButtonPressed(QAbstractButton *)
QString GetCommand(int id)
QString GetTooltip(int id)
#define GO4GUI_MAXMACRONUM
bool getAnalysisMacroAutomode(int id)
TGo4UserCommandsDialog(QWidget *parent=0)
QString getAnalysisMacroCommand(int id)
bool GetAutoExecute(int id)
QString getAnalysisMacroTip(int id)