logic: code controller
- Renamed MessageActivateTokenLocation to MessageActivateToken, since it uses the Token id (not the TokenLocation id). - Implemented CodeController to add one snippet for each location where the activated token occurred. - Added Semaphore to QtThreadedFunctor to prevent an evil race-condition. - CodeView dispatches message when a token is clicked.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef MESSAGE_ACTIVATE_TOKEN_H
|
||||
#define MESSAGE_ACTIVATE_TOKEN_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
#include "utility/types.h"
|
||||
|
||||
class MessageActivateToken: public Message<MessageActivateToken>
|
||||
{
|
||||
public:
|
||||
MessageActivateToken(Id tokenId)
|
||||
: tokenId(tokenId)
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageActivateToken";
|
||||
}
|
||||
|
||||
public:
|
||||
const Id tokenId;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_ACTIVATE_TOKEN_LOCATION_H
|
||||
@@ -1,15 +0,0 @@
|
||||
#ifndef MESSAGE_ACTIVATE_TOKEN_LOCATION_H
|
||||
#define MESSAGE_ACTIVATE_TOKEN_LOCATION_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageActivateTokenLocation: public Message<MessageActivateTokenLocation>
|
||||
{
|
||||
public:
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageActivateTokenLocation";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_ACTIVATE_TOKEN_LOCATION_H
|
||||
Reference in New Issue
Block a user