ui: Added edit project button to stats in overview

This commit is contained in:
Eberhard Graether
2016-04-25 12:39:10 +02:00
parent 55660563c8
commit 69925917bc
9 changed files with 73 additions and 5 deletions
+1
View File
@@ -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