ui: Added edit project button to stats in overview
This commit is contained in:
@@ -243,6 +243,7 @@ add_files(
|
||||
utility/messaging/type/MessageInterruptTasks.h
|
||||
utility/messaging/type/MessageLoadProject.h
|
||||
utility/messaging/type/MessageMoveIDECursor.h
|
||||
utility/messaging/type/MessageProjectEdit.h
|
||||
utility/messaging/type/MessageProjectNew.h
|
||||
utility/messaging/type/MessageRedo.h
|
||||
utility/messaging/type/MessageRefresh.h
|
||||
|
||||
@@ -42,13 +42,12 @@ void CodeController::handleMessage(MessageActivateAll* message)
|
||||
statsSnippet.locationFile = std::make_shared<TokenLocationFile>(FilePath());
|
||||
statsSnippet.locationFile->isWholeCopy = true;
|
||||
|
||||
statsSnippet.title = ProjectSettings::getInstance()->getFilePath().withoutExtension().fileName();
|
||||
|
||||
std::vector<std::string> description = getProjectDescription(statsSnippet.locationFile.get());
|
||||
|
||||
std::stringstream ss;
|
||||
|
||||
ss << "\n";
|
||||
ss << "\tProject: " + ProjectSettings::getInstance()->getFilePath().withoutExtension().fileName() + "\n";
|
||||
|
||||
if (description.size())
|
||||
{
|
||||
ss << "\n";
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef MESSAGE_PROJECT_EDIT_H
|
||||
#define MESSAGE_PROJECT_EDIT_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageProjectEdit
|
||||
: public Message<MessageProjectEdit>
|
||||
{
|
||||
public:
|
||||
MessageProjectEdit()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageProjectEdit";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_PROJECT_EDIT_H
|
||||
Reference in New Issue
Block a user