46 lines
959 B
C
46 lines
959 B
C
|
|
#ifndef KBDLOCKDEFINEWIDGET_H
|
|||
|
|
#define KBDLOCKDEFINEWIDGET_H
|
|||
|
|
|
|||
|
|
#include <QWidget>
|
|||
|
|
|
|||
|
|
|
|||
|
|
class KbdPropertyDlg;
|
|||
|
|
class QTextEdit;
|
|||
|
|
class KbdTreeView;
|
|||
|
|
class ScriptFormWidget;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @brief The KbdLockDefineWidget class 闭锁函数定义
|
|||
|
|
*/
|
|||
|
|
class KbdLockDefineWidget : public QWidget
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
public:
|
|||
|
|
explicit KbdLockDefineWidget(QWidget *parent = nullptr);
|
|||
|
|
protected:
|
|||
|
|
void showEvent(QShowEvent *event);
|
|||
|
|
void hideEvent(QHideEvent *event);
|
|||
|
|
private:
|
|||
|
|
void initLayout();
|
|||
|
|
bool stringListEqual(const QStringList &left, const QStringList &right) const;
|
|||
|
|
private:
|
|||
|
|
KbdTreeView *m_tree;
|
|||
|
|
KbdPropertyDlg *m_panel;
|
|||
|
|
ScriptFormWidget* m_te;
|
|||
|
|
|
|||
|
|
private slots:
|
|||
|
|
void onAdd();
|
|||
|
|
void onRemove();
|
|||
|
|
void onModify();
|
|||
|
|
void onSave();
|
|||
|
|
|
|||
|
|
void onTreeClicked(const QModelIndex & index);
|
|||
|
|
|
|||
|
|
void onMsg(const QString & msg);
|
|||
|
|
void onCommitError();
|
|||
|
|
void onStartTransactionError(const QString&erroStr);
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // KBDLOCKDEFINEWIDGET_H
|