-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hook new MessageDisplay to MantidPlot. Refs #6202
No colours and the old stuff is still in the code.
- Loading branch information
1 parent
fc9f523
commit 707e916
Showing
9 changed files
with
118 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//------------------------------------------- | ||
// Includes | ||
//------------------------------------------- | ||
#include "MantidQtAPI/Message.h" | ||
|
||
namespace MantidQt | ||
{ | ||
namespace API | ||
{ | ||
//----------------------------------------------------------------------------------- | ||
// Public member functions | ||
//----------------------------------------------------------------------------------- | ||
/** | ||
* Constructs a blank message with notice priority | ||
* (here to satisfy Qt meta-type system) | ||
*/ | ||
Message::Message() : QObject(), m_text(), m_priority(Priority::PRIO_NOTICE) | ||
{} | ||
|
||
/// Construct a message from a string with a given priority (default=notice) | ||
Message::Message(const QString & text, Priority priority) | ||
: QObject(), m_text(text), m_priority(priority) | ||
{} | ||
|
||
/** | ||
* Construct a message from another object | ||
*/ | ||
Message::Message(const Message & msg) | ||
: QObject(), m_text(msg.text()), m_priority(msg.priority()) | ||
{ | ||
} | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters