DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DAActionsInterface.h
1#ifndef DAACTIONSINTERFACE_H
2#define DAACTIONSINTERFACE_H
3#include <QAction>
4#include "DAGlobals.h"
5#include "DAUIInterface.h"
6class QActionGroup;
7namespace DA
8{
9class DACoreInterface;
10
14class DAINTERFACE_API DAActionsInterface : public DABaseInterface
15{
16 Q_OBJECT
17 DA_DECLARE_PRIVATE(DAActionsInterface)
18public:
21 //创建一个action,并管理
22 QAction* createAction(const char* objname);
23 QAction* createAction(const char* objname, bool checkable, bool checked = false, QActionGroup* actGroup = nullptr);
24 QAction* createAction(const char* objname, const char* iconpath);
25 QAction* createAction(const char* objname, const char* iconpath, bool checkable, bool checked = false, QActionGroup* actGroup = nullptr);
26 //记录action,action要保证有独立的object name
27 void recordAction(QAction* act);
28 //发生语言变更时会调用此函数
29 virtual void retranslateUi();
30 //查找action
31 QAction* findAction(const char* objname);
32 QAction* findAction(const QString& objname);
33};
34} // end of DA
35#endif // DAACTIONSINTERFACE_H
这是app所有action的管理器
Definition DAActionsInterface.h:15
Definition DABaseInterface.h:9
界面相关的接口
Definition DAUIInterface.h:26
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44