19 #include <QPushButton>
25 setObjectName(
"Go4UserCommandsDialog");
34 QTableWidgetItem* comitem= CommandsTable->item(
id,0);
35 if(comitem) comitem->setText(com);
36 QTableWidgetItem* tipitem= CommandsTable->item(
id,1);
37 if(tipitem) tipitem->setText(tip);
39 QTableWidgetItem* autoitem= CommandsTable->item(
id,2);
42 autoitem->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
43 autoitem->setCheckState( monitor ? Qt::Checked : Qt::Unchecked);
49 QObject::connect (DialogButtonBox, SIGNAL(clicked(QAbstractButton*)),
this, SLOT(
ButtonPressed(QAbstractButton*)));
56 QTableWidgetItem* item=CommandsTable->item(
id,0);
65 QTableWidgetItem* item=CommandsTable->item(
id,1);
74 QTableWidgetItem* item=CommandsTable->item(
id,2);
76 rev=(item->checkState()==Qt::Checked);
84 QPushButton* pbut=
dynamic_cast<QPushButton*
>(but);
85 if (pbut == DialogButtonBox->button (QDialogButtonBox::Reset))
90 QTableWidgetItem* comitem= CommandsTable->item(
id,0);
91 if(comitem) comitem->setText(QString(
""));
92 QTableWidgetItem* tipitem= CommandsTable->item(
id,1);
93 if(tipitem) tipitem->setText(QString(
""));
94 QTableWidgetItem* autoitem= CommandsTable->item(
id,2);
97 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)