ui: Added custom tooltipping to code and graph (issue #195)
* Tooltips show node type with access specifier, reference count and fully qualified name * Fields and global variables include the type name * Methods and functinos show whole signature. Gets broken into multiple lines if too long. Included changes: * Upgraded to C++14 * fixed clang warnings * Pass location of .srctrlprj file to build.sh script to load on launch * Split off QtCodeField for showing highlighted and annotated code fom QtCodeArea * removed TokenComponentSignature * added TaskDecoratorDelay bug id = 195
This commit is contained in:
@@ -6,12 +6,15 @@
|
||||
#include "utility/messaging/Message.h"
|
||||
#include "utility/types.h"
|
||||
|
||||
#include "data/tooltip/TooltipOrigin.h"
|
||||
|
||||
class MessageFocusIn
|
||||
: public Message<MessageFocusIn>
|
||||
{
|
||||
public:
|
||||
MessageFocusIn(const std::vector<Id>& tokenIds)
|
||||
MessageFocusIn(const std::vector<Id>& tokenIds, TooltipOrigin origin)
|
||||
: tokenIds(tokenIds)
|
||||
, origin(origin)
|
||||
{
|
||||
setIsLogged(false);
|
||||
}
|
||||
@@ -30,6 +33,7 @@ public:
|
||||
}
|
||||
|
||||
const std::vector<Id> tokenIds;
|
||||
const TooltipOrigin origin;
|
||||
};
|
||||
|
||||
#endif //MESSAGE_FOCUS_IN_H
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
#ifndef MESSAGE_TOOLTIP_HIDE_H
|
||||
#define MESSAGE_TOOLTIP_HIDE_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageTooltipHide
|
||||
: public Message<MessageTooltipHide>
|
||||
{
|
||||
public:
|
||||
MessageTooltipHide()
|
||||
{
|
||||
setSendAsTask(false);
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageTooltipHide";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_TOOLTIP_HIDE_H
|
||||
@@ -0,0 +1,29 @@
|
||||
#ifndef MESSAGE_TOOLTIP_SHOW_H
|
||||
#define MESSAGE_TOOLTIP_SHOW_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
#include "data/tooltip/TooltipOrigin.h"
|
||||
#include "data/tooltip/TooltipInfo.h"
|
||||
|
||||
class MessageTooltipShow
|
||||
: public Message<MessageTooltipShow>
|
||||
{
|
||||
public:
|
||||
MessageTooltipShow(TooltipInfo info, TooltipOrigin origin)
|
||||
: tooltipInfo(info)
|
||||
, origin(origin)
|
||||
{
|
||||
setSendAsTask(false);
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageTooltipShow";
|
||||
}
|
||||
|
||||
const TooltipInfo tooltipInfo;
|
||||
const TooltipOrigin origin;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_TOOLTIP_SHOW_H
|
||||
@@ -3,10 +3,12 @@
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageWindowFocus: public Message<MessageWindowFocus>
|
||||
class MessageWindowFocus
|
||||
: public Message<MessageWindowFocus>
|
||||
{
|
||||
public:
|
||||
MessageWindowFocus()
|
||||
MessageWindowFocus(bool focusIn)
|
||||
: focusIn(focusIn)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -14,6 +16,8 @@ public:
|
||||
{
|
||||
return "MessageWindowFocus";
|
||||
}
|
||||
|
||||
const bool focusIn;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_WINDOW_FOCUS_H
|
||||
|
||||
Reference in New Issue
Block a user