19 #include <QPushButton> 24 setObjectName(
"Go4UserCommandsDialog");
32 QTableWidgetItem* comitem= CommandsTable->item(
id,0);
33 if(comitem) comitem->setText(com);
34 QTableWidgetItem* tipitem= CommandsTable->item(
id,1);
35 if(tipitem) tipitem->setText(tip);
37 QTableWidgetItem* autoitem= CommandsTable->item(
id,2);
39 autoitem->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
40 autoitem->setCheckState( monitor ? Qt::Checked : Qt::Unchecked);
50 QTableWidgetItem *item = CommandsTable->item(
id, 0);
59 QTableWidgetItem *item = CommandsTable->item(
id, 1);
68 QTableWidgetItem *item = CommandsTable->item(
id, 2);
70 rev = item->checkState() == Qt::Checked;
76 QPushButton* pbut =
dynamic_cast<QPushButton*
>(but);
77 if (pbut == DialogButtonBox->button(QDialogButtonBox::Reset)) {
79 QTableWidgetItem *comitem = CommandsTable->item(
id, 0);
81 comitem->setText(QString(
""));
82 QTableWidgetItem *tipitem = CommandsTable->item(
id, 1);
84 tipitem->setText(QString(
""));
85 QTableWidgetItem *autoitem = CommandsTable->item(
id, 2);
87 autoitem->setCheckState(Qt::Unchecked);
virtual void ButtonPressed(QAbstractButton *)
QString GetCommand(int id)
QString GetTooltip(int id)
#define GO4GUI_MAXMACRONUM
TGo4UserCommandsDialog(QWidget *parent=nullptr)
bool getAnalysisMacroAutomode(int id)
QString getAnalysisMacroCommand(int id)
bool GetAutoExecute(int id)
QString getAnalysisMacroTip(int id)