logic: more wstring usages

* removed header paths from VS Project setup message since VS doesn't send these anymore
* implemented using wstring in IDE communication
* fixed retrieving filepaths from QtDirectoryListbox that contain special characters
* use wstring for source extensions
* added special character as file extension to FileManagerTestSuite
This commit is contained in:
mlangkabel
2018-01-30 17:07:51 +01:00
parent 471b1757df
commit c99e79364f
46 changed files with 319 additions and 337 deletions
@@ -7,10 +7,10 @@
class MessageMoveIDECursor : public Message<MessageMoveIDECursor>
{
public:
MessageMoveIDECursor(const FilePath& FilePos, const unsigned int Row, const unsigned int Column)
: FilePosition(FilePos)
, Row(Row)
, Column(Column)
MessageMoveIDECursor(const FilePath& filePath, const unsigned int row, const unsigned int column)
: filePath(filePath)
, row(row)
, column(column)
{
}
@@ -21,12 +21,12 @@ public:
virtual void print(std::ostream& os) const
{
os << FilePosition.str() << ":" << Row << ":" << Column;
os << filePath.str() << ":" << row << ":" << column;
}
const FilePath FilePosition;
const unsigned int Row;
const unsigned int Column;
const FilePath filePath;
const unsigned int row;
const unsigned int column;
};
#endif // MESSAGE_MOVE_IDE_CURSOR_H
@@ -8,8 +8,7 @@ class MessagePingReceived
{
public:
MessagePingReceived()
: ideId("")
, ideName("")
: ideName(L"")
{
}
@@ -18,8 +17,7 @@ public:
return "MessagePingReceived";
}
std::string ideId;
std::string ideName;
std::wstring ideName;
};
#endif // MESSAGE_PING_RECEIVED_H
@@ -7,9 +7,8 @@ class MessageProjectNew
: public Message<MessageProjectNew>
{
public:
MessageProjectNew(const std::string cdbPath, const std::vector<std::string> headerPaths)
MessageProjectNew(const FilePath& cdbPath)
: cdbPath(cdbPath)
, headerPaths(headerPaths)
{
}
@@ -18,8 +17,7 @@ public:
return "MessageProjectNew";
}
const std::string cdbPath;
const std::vector<std::string> headerPaths;
const FilePath cdbPath;
};
#endif // MESSAGE_PROJECT_NEW_H