5 #ifndef CNOID_BASE_MESSAGE_VIEW_H
6 #define CNOID_BASE_MESSAGE_VIEW_H
12 #include "exportdecl.h"
19 static void postMessageBeforeInitialization(
const std::string& message,
int type = Normal);
28 #if defined(_WIN32) && defined(ERROR)
35 NORMAL = Normal, ERROR = Error, WARNING = Warning, HIGHLIGHT = Highlight
38 void put(
const std::string& message,
int type = Normal);
39 void put(std::string&& message,
int type = Normal);
40 void put(
const char* message,
int type = Normal);
41 void put(
const QString& message,
int type = Normal);
43 void putln(
const std::string& message,
int type = Normal);
44 void putln(std::string&& message,
int type = Normal);
45 void putln(
const char* message,
int type = Normal);
46 void putln(
const QString& message,
int type = Normal);
49 void notify(
const std::string& message,
int type = Normal);
50 void notify(std::string&& message,
int type = Normal);
51 void notify(
const char* message,
int type = Normal);
52 void notify(
const QString& message,
int type = Normal);
54 [[deprecated(
"Use put(const std::string& message, int type = Normal)")]]
55 void put(
int type,
const std::string& message);
56 [[deprecated(
"Use put(const char* message, int type = Normal)")]]
57 void put(
int type,
const char* message);
58 [[deprecated(
"Use put(const QString& message, int type = Normal)")]]
59 void put(
int type,
const QString& message);
61 [[deprecated(
"Use putln(const std::string& message, int type = Normal)")]]
62 void putln(
int type,
const std::string& message);
63 [[deprecated(
"Use putln(const char* message, int type = Normal)")]]
64 void putln(
int type,
const char* message);
65 [[deprecated(
"Use putln(const QString& message, int type = Normal)")]]
66 void putln(
int type,
const QString& message);
71 static bool isFlushing();
75 std::ostream& cout(
bool doFlush =
true);
77 void beginStdioRedirect();
78 void endStdioRedirect();
80 SignalProxy<void(
const std::string& text)> sigMessage();
85 virtual bool event(QEvent* e);
91 #ifndef CNOID_BASE_MVOUT_DECLARED
92 #define CNOID_BASE_MVOUT_DECLARED
93 CNOID_EXPORT std::ostream&
mvout(
bool doFlush =
true);
105 CNOID_EXPORT
bool showConfirmDialog(
const std::string& caption,
const std::string& message);
106 CNOID_EXPORT
bool showConfirmDialog(
const QString& caption,
const QString& message);