Go to the documentation of this file.
5 #ifndef CNOID_BASE_MESSAGE_VIEW_H
6 #define CNOID_BASE_MESSAGE_VIEW_H
12 #include "exportdecl.h"
27 #if defined(_WIN32) && defined(ERROR)
34 NORMAL = Normal, ERROR = Error, WARNING = Warning, HIGHLIGHT = Highlight
37 void put(
const std::string& message,
int type = Normal);
38 void put(std::string&& message,
int type = Normal);
39 void put(
const char* message,
int type = Normal);
40 void put(
const QString& message,
int type = Normal);
42 void putln(
const std::string& message,
int type = Normal);
43 void putln(std::string&& message,
int type = Normal);
44 void putln(
const char* message,
int type = Normal);
45 void putln(
const QString& message,
int type = Normal);
48 void notify(
const std::string& message,
int type = Normal);
49 void notify(std::string&& message,
int type = Normal);
50 void notify(
const char* message,
int type = Normal);
51 void notify(
const QString& message,
int type = Normal);
53 [[deprecated(
"Use put(const std::string& message, int type = Normal)")]]
54 void put(
int type,
const std::string& message);
55 [[deprecated(
"Use put(const char* message, int type = Normal)")]]
56 void put(
int type,
const char* message);
57 [[deprecated(
"Use put(const QString& message, int type = Normal)")]]
58 void put(
int type,
const QString& message);
60 [[deprecated(
"Use putln(const std::string& message, int type = Normal)")]]
61 void putln(
int type,
const std::string& message);
62 [[deprecated(
"Use putln(const char* message, int type = Normal)")]]
63 void putln(
int type,
const char* message);
64 [[deprecated(
"Use putln(const QString& message, int type = Normal)")]]
65 void putln(
int type,
const QString& message);
70 static bool isFlushing();
74 std::ostream& cout(
bool doFlush =
false);
76 void beginStdioRedirect();
77 void endStdioRedirect();
79 SignalProxy<void(
const std::string& text)> sigMessage();
84 virtual bool event(QEvent* e);
90 #ifndef CNOID_BASE_MVOUT_DECLARED
91 #define CNOID_BASE_MVOUT_DECLARED
92 CNOID_EXPORT std::ostream&
mvout(
bool doFlush =
false);
104 CNOID_EXPORT
bool showConfirmDialog(
const std::string& caption,
const std::string& message);
105 CNOID_EXPORT
bool showConfirmDialog(
const QString& caption,
const QString& message);
CNOID_EXPORT std::ostream & mvout(bool doFlush=false)
Definition: MessageView.cpp:1086
Definition: ExtensionManager.h:23
CNOID_EXPORT bool showConfirmDialog(const char *caption, const char *message)
Definition: MessageView.cpp:1142
CNOID_EXPORT void showWarningDialog(const std::string &message)
Definition: MessageView.cpp:1121
Definition: MessageView.h:16
Definition: AbstractSceneLoader.h:11
MessageType
Definition: MessageView.h:31
CNOID_EXPORT void showMessageBox(const std::string &message)
Definition: MessageView.cpp:1103
@ Warning
Definition: MessageView.h:32