33 #include <QKeySequence>
49 #pragma warning( disable: 4251 )
64 QString moduleName()
const;
65 virtual QPixmap moduleIcon()
const;
66 virtual QString iconName()
const;
74 virtual void putInfo(
const QString&,
const int = -1 );
76 bool isActiveModule()
const;
78 virtual void setMenuShown(
const bool );
79 void setMenuShown(
QAction*,
const bool );
80 void setMenuShown(
const int,
const bool );
82 virtual void setToolShown(
const bool );
83 void setToolShown(
QAction*,
const bool );
84 void setToolShown(
const int,
const bool );
86 virtual void updateModuleVisibilityState();
88 virtual bool activateOperation(
int actionId );
89 virtual bool activateOperation(
const QString& actionId );
90 virtual bool activateOperation(
const QString& actionId,
const QString& pluginName );
97 virtual QAction* action(
const int )
const;
98 virtual int actionId(
const QAction* )
const;
99 virtual QAction* createAction(
const int,
const QString&,
const QIcon&,
const QString&,
100 const QString&,
const int,
QObject* = 0,
101 const bool =
false,
QObject* = 0,
const char* = 0,
const QString& = QString() );
102 virtual QAction* createAction(
const int,
const QString&,
const QIcon&,
const QString&,
103 const QString&,
const QKeySequence&,
QObject* = 0,
104 const bool =
false,
QObject* = 0,
const char* = 0,
const QString& = QString() );
105 QtxActionGroup* createActionGroup(
const int,
const bool =
true );
107 int createTool(
const QString&,
const QString& = QString() );
108 int createTool(
const int,
const int,
const int = -1 );
109 int createTool(
const int,
const QString&,
const int = -1 );
110 int createTool(
QAction*,
const int,
const int = -1,
const int = -1 );
111 int createTool(
QAction*,
const QString&,
const int = -1,
const int = -1 );
113 int createMenu(
const QString&,
const int,
const int = -1,
const int = -1,
const int = -1,
QMenu * = 0);
114 int createMenu(
const QString&,
const QString&,
const int = -1,
const int = -1,
const int = -1 );
115 int createMenu(
const int,
const int,
const int = -1,
const int = -1 );
116 int createMenu(
const int,
const QString&,
const int = -1,
const int = -1 );
117 int createMenu(
QAction*,
const int,
const int = -1,
const int = -1,
const int = -1 );
118 int createMenu(
QAction*,
const QString&,
const int = -1,
const int = -1,
const int = -1 );
126 virtual void connectToStudy(
CAM_Study* );
134 void onInfoChanged( QString );
137 virtual bool isSelectionCompatible();
141 void setName(
const QString& );
142 virtual void setModuleName(
const QString& );
144 int registerAction(
const int,
QAction* );
145 bool unregisterAction(
const int );
146 bool unregisterAction(
QAction* );
151 virtual bool abortAllOperations();
167 #pragma warning( default: 4251 )
173 typedef char* (*GET_VERSION_FUNC)();
176 #define GET_MODULE_NAME "createModule"
177 #define GET_VERSION_NAME "getModuleVersion"