How can I configure Enterprise Architect to show me signals and slots
-
I am new with EA but have some experience in Qt. I want to make reverse engineering and make UML diagrams based on my Qt project.
I set Qt keyword signal and get no error when EA parsing my file.
But I don't see on my diagram that it is a signal. How I can fix it? -
@andr1312e said in How can I configure Enterprise Architect to show me signals and slots:
But I don't see on my diagram that it is a signal. How I can fix it?
From a C++ compiler's point of view, a Qt signal is just a public method.
You'll need to talk to the authors/maintainers of Enterprise Architect if you want them to add support for
signals
/Q_SIGNALS
. -
@JKSH I mean this:
My code before edit:public: FirmwarePresenter(const int &blockSize, const QMap<QString, quint8> *commands, TcpSocket *socket); ~FirmwarePresenter(); private: void CreateObjects(); void InitObjects(); void CreateConnections(); signals: void SetButtonsEnabled(int state); void ConsoleLog(QString errorMessage); void PageUpdated(quint32 pageNum);
Okay, lets view what it generate:
And moving my signals in the header file, above private section:public: FirmwarePresenter(const int &blockSize, const QMap<QString, quint8> *commands, TcpSocket *socket); ~FirmwarePresenter(); signals: void SetButtonsEnabled(int state); void ConsoleLog(QString errorMessage); void PageUpdated(quint32 pageNum); private: void CreateObjects(); void InitObjects(); void CreateConnections();
Gives me:
I mean that this program ignores these macros, and I don't understand how can I say it to mark these macros.
-
@andr1312e
I don't know whether you can do anything with this information, but....The definition of the
signals
(andslots
) macros is just as follows:#define signals public #define slots /* nothing */
As you can see,
signals:
simply expands topublic:
. I guess your EA just does not recognise this? Maybe you could pre-process the files to do this expansion to keep your EA happy? -
@andr1312e said in How can I configure Enterprise Architect to show me signals and slots:
I mean that this program ignores these macro
That means Enterprise Architect is not processing macros correctly. You should ask Sparx Systems to help you with this issue (because we don't use it)