48 lines
803 B
C
48 lines
803 B
C
|
|
#ifndef PLUGIN_DIALOG
|
|||
|
|
#define PLUGIN_DIALOG
|
|||
|
|
#include <QDialog>
|
|||
|
|
#include <QWidget>
|
|||
|
|
#include "ui_PluginDialog.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
#define BOOL bool
|
|||
|
|
#pragma once
|
|||
|
|
#include <QAction>
|
|||
|
|
|
|||
|
|
class CPluginDialog:public QDialog
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
protected:
|
|||
|
|
void paintEvent( QPaintEvent * event );
|
|||
|
|
public:
|
|||
|
|
CPluginDialog(QWidget* parent);
|
|||
|
|
~CPluginDialog();
|
|||
|
|
void init();
|
|||
|
|
|
|||
|
|
// 初始化按钮,显示在平台右侧ToolBar
|
|||
|
|
void initActions();
|
|||
|
|
|
|||
|
|
// 平台获取该模块中自定义的QAction
|
|||
|
|
QList<QAction*> getListAction();
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
float m_StartDep;
|
|||
|
|
float m_EndDep;
|
|||
|
|
int mNARMS;
|
|||
|
|
private:
|
|||
|
|
Ui_PluginDialog *uiDlg;
|
|||
|
|
|
|||
|
|
QList<QAction*> m_listAction;
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
|
|||
|
|
|
|||
|
|
public slots:
|
|||
|
|
// QAction的槽函数处理
|
|||
|
|
void onAction1Func();
|
|||
|
|
void onAction2Func();
|
|||
|
|
void onAction3Func();
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
#endif
|