/usr/include/choreonoid-1.1/cnoid/src/Base/MessageView.h is in libcnoid-dev 1.1.0+dfsg-6.1+b4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | /**
@author Shin'ichiro Nakaoka
*/
#ifndef CNOID_GUIBASE_MESSAGE_VIEW_H_INCLUDED
#define CNOID_GUIBASE_MESSAGE_VIEW_H_INCLUDED
#include <cnoid/View>
#include <string>
#include <iosfwd>
#include <boost/format.hpp>
#include <QString>
#include "exportdecl.h"
namespace cnoid {
class ExtensionManager;
class MessageViewImpl;
class CNOID_EXPORT MessageView : public View
{
public:
static void initialize(ExtensionManager* ext);
static MessageView* mainInstance();
MessageView();
~MessageView();
void put(const std::string& message);
void put(const boost::format& message);
void putln(const std::string& message);
void putln(const boost::format& message);
void notify(const std::string& message);
void notify(const boost::format& message);
void put(const char* message);
void put(const QString& message);
void putln();
void putln(const char* message);
void putln(const QString& message);
void notify(const char* message);
void notify(const QString& message);
void flush();
void clear();
std::ostream& cout(bool doFlush = false);
void beginStdioRedirect();
void endStdioRedirect();
protected:
virtual bool event(QEvent* e);
private:
MessageViewImpl* impl;
};
CNOID_EXPORT void showWarningDialog(const std::string& message);
CNOID_EXPORT void showWarningDialog(const boost::format& message);
CNOID_EXPORT void showWarningDialog(const char* message);
CNOID_EXPORT void showWarningDialog(const QString& message);
}
#endif
|