Choreonoid  1.8
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cnoid::MessageView Class Reference

#include <MessageView.h>

Inheritance diagram for cnoid::MessageView:
cnoid::View cnoid::Widget

Public Types

enum  MessageType {
  Normal, Error, Warning, Highlight,
  NORMAL = Normal, ERROR = Error, WARNING = Warning, HIGHLIGHT = Highlight
}
 
- Public Types inherited from cnoid::View
enum  LayoutArea {
  TopLeftArea = 0, MiddleLeftArea = 1, BottomLeftArea = 2, TopCenterArea = 3,
  CenterArea = 4, BottomCenterArea = 5, TopRightArea = 6, MiddleRightArea = 7,
  BottomRightArea = 8, NumLayoutAreas = 9, LEFT = TopLeftArea, LEFT_TOP = TopLeftArea,
  LEFT_BOTTOM = BottomLeftArea, CENTER = CenterArea, RIGHT = TopRightArea, BOTTOM = BottomCenterArea
}
 

Public Member Functions

 MessageView ()
 
 ~MessageView ()
 
void put (const std::string &message, int type=Normal)
 
void put (std::string &&message, int type=Normal)
 
void put (const char *message, int type=Normal)
 
void put (const QString &message, int type=Normal)
 
void putln (const std::string &message, int type=Normal)
 
void putln (std::string &&message, int type=Normal)
 
void putln (const char *message, int type=Normal)
 
void putln (const QString &message, int type=Normal)
 
void putln ()
 
void notify (const std::string &message, int type=Normal)
 
void notify (std::string &&message, int type=Normal)
 
void notify (const char *message, int type=Normal)
 
void notify (const QString &message, int type=Normal)
 
void put (int type, const std::string &message)
 
void put (int type, const char *message)
 
void put (int type, const QString &message)
 
void putln (int type, const std::string &message)
 
void putln (int type, const char *message)
 
void putln (int type, const QString &message)
 
int currentColumn ()
 
void flush ()
 
void clear ()
 
std::ostream & cout (bool doFlush=true)
 
void beginStdioRedirect ()
 
void endStdioRedirect ()
 
SignalProxy< void(const std::string &text)> sigMessage ()
 
- Public Member Functions inherited from cnoid::View
 View ()
 
virtual ~View ()
 
ViewClassviewClass () const
 
const std::string & name () const
 
virtual void setName (const std::string &name)
 
void setTitleFormat (const std::string &title)
 
void resetTitleFormat ()
 
const std::string & titleFormat () const
 
ViewAreaviewArea () const
 
bool isActive () const
 
bool hasFocus () const
 
void bringToFront ()
 
SignalProxy< void()> sigActivated ()
 
SignalProxy< void()> sigDeactivated ()
 
SignalProxy< void()> sigResized ()
 
SignalProxy< void()> sigRemoved ()
 
void setDefaultLayoutArea (LayoutArea area)
 
LayoutArea defaultLayoutArea () const
 
void setLayout (QLayout *layout, double marginRatio=0.0)
 
void setLayout (QLayout *layout, double leftMarginRatio, double topMarginRatio, double rightMarginRatio, double bottomMarginRatio)
 
QPoint viewAreaPos () const
 
virtual QWidget * indicatorOnInfoBar ()
 
void enableFontSizeZoomKeys (bool on)
 
virtual bool storeState (Archive &archive)
 
virtual bool restoreState (const Archive &archive)
 
- Public Member Functions inherited from cnoid::Widget
 Widget (QWidget *parent=0)
 
SignalProxy< void(std::string name)> sigObjectNameChanged ()
 
SignalProxy< void(std::string title)> sigWindowTitleChanged ()
 

Static Public Member Functions

static void postMessageBeforeInitialization (const std::string &message, int type=Normal)
 
static void initializeClass (ExtensionManager *ext)
 
static MessageViewmainInstance ()
 
static MessageViewinstance ()
 
static bool isFlushing ()
 
- Static Public Member Functions inherited from cnoid::View
static ViewlastFocusView ()
 

Protected Member Functions

virtual bool event (QEvent *e)
 
- Protected Member Functions inherited from cnoid::View
void setLayoutContentsMarginRatio (QLayout *layout, double leftMarginRatio, double topMarginRatio, double rightMarginRatio, double bottomMarginRatio)
 
void zoomFontSize (int zoom)
 
virtual void onActivated ()
 
virtual void onDeactivated ()
 
virtual void onFocusChanged (bool on)
 
virtual void onAttachedMenuRequest (MenuManager &menuManager)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 

Member Enumeration Documentation

◆ MessageType

Enumerator
Normal 
Error 
Warning 
Highlight 
NORMAL 
ERROR 
WARNING 
HIGHLIGHT 

Constructor & Destructor Documentation

◆ MessageView()

MessageView::MessageView ( )

◆ ~MessageView()

MessageView::~MessageView ( )

Member Function Documentation

◆ beginStdioRedirect()

void MessageView::beginStdioRedirect ( )

◆ clear()

void MessageView::clear ( )

◆ cout()

std::ostream & MessageView::cout ( bool  doFlush = true)

◆ currentColumn()

int MessageView::currentColumn ( )

◆ endStdioRedirect()

void MessageView::endStdioRedirect ( )

◆ event()

bool MessageView::event ( QEvent *  e)
protectedvirtual

◆ flush()

void MessageView::flush ( )
Note
Don't call this function from an expose event handler because it may cause a hangup of rendering.

◆ initializeClass()

void MessageView::initializeClass ( ExtensionManager ext)
static

◆ instance()

MessageView * MessageView::instance ( )
static
Returns
The main instance of MessageView.

◆ isFlushing()

bool MessageView::isFlushing ( )
static

◆ mainInstance()

MessageView * MessageView::mainInstance ( )
static

◆ notify() [1/4]

void MessageView::notify ( const char *  message,
int  type = Normal 
)

◆ notify() [2/4]

void MessageView::notify ( const QString &  message,
int  type = Normal 
)

◆ notify() [3/4]

void MessageView::notify ( const std::string &  message,
int  type = Normal 
)

◆ notify() [4/4]

void MessageView::notify ( std::string &&  message,
int  type = Normal 
)

◆ postMessageBeforeInitialization()

void MessageView::postMessageBeforeInitialization ( const std::string &  message,
int  type = Normal 
)
static

◆ put() [1/7]

void MessageView::put ( const char *  message,
int  type = Normal 
)

◆ put() [2/7]

void MessageView::put ( const QString &  message,
int  type = Normal 
)

◆ put() [3/7]

void MessageView::put ( const std::string &  message,
int  type = Normal 
)

◆ put() [4/7]

void MessageView::put ( int  type,
const char *  message 
)

◆ put() [5/7]

void MessageView::put ( int  type,
const QString &  message 
)

◆ put() [6/7]

void MessageView::put ( int  type,
const std::string &  message 
)

◆ put() [7/7]

void MessageView::put ( std::string &&  message,
int  type = Normal 
)

◆ putln() [1/8]

void MessageView::putln ( )

◆ putln() [2/8]

void MessageView::putln ( const char *  message,
int  type = Normal 
)

◆ putln() [3/8]

void MessageView::putln ( const QString &  message,
int  type = Normal 
)

◆ putln() [4/8]

void MessageView::putln ( const std::string &  message,
int  type = Normal 
)

◆ putln() [5/8]

void MessageView::putln ( int  type,
const char *  message 
)

◆ putln() [6/8]

void MessageView::putln ( int  type,
const QString &  message 
)

◆ putln() [7/8]

void MessageView::putln ( int  type,
const std::string &  message 
)

◆ putln() [8/8]

void MessageView::putln ( std::string &&  message,
int  type = Normal 
)

◆ sigMessage()

SignalProxy< void(const std::string &text)> MessageView::sigMessage ( )

The documentation for this class was generated from the following files: