Choreonoid  1.8
InfoBar.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_INFO_BAR_H
6 #define CNOID_BASE_INFO_BAR_H
7 
8 #include <QStatusBar>
9 #include <QHBoxLayout>
10 #include <string>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class CNOID_EXPORT InfoBar : public QStatusBar
16 {
17 public:
18  static InfoBar* instance();
19 
20  void notify(const std::string& message);
21  void notify(const char* message);
22  void notify(const QString& message);
23 
24 private:
25  QWidget* indicatorBase;
26  QHBoxLayout* indicatorLayout;
27  QWidget* currentIndicator;
28  QMetaObject::Connection indicatorConnection;
29  std::string plainTextMessage;
30 
31  InfoBar();
32  ~InfoBar();
33  void setIndicator(QWidget* indicator);
34  void removeCurrentIndicator();
35  void onFocusChanged(QWidget* old, QWidget* now);
36  void onIndicatorDestroyed(QObject* obj);
37 };
38 
39 }
40 
41 #endif
cnoid::InfoBar
Definition: InfoBar.h:15
cnoid
Definition: AbstractSceneLoader.h:11