Choreonoid  1.5
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 <string>
9 #include <QStatusBar>
10 #include <QHBoxLayout>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class InfoBarImpl;
16 
17 class CNOID_EXPORT InfoBar : public QStatusBar
18 {
19 Q_OBJECT
20 
21 public:
22  static InfoBar* instance();
23 
24  void notify(const char* message);
25  void notify(const std::string& message);
26  void notify(const QString& message);
27 
28 private:
29  InfoBar();
30  ~InfoBar();
31 
32  QWidget* indicatorBase;
33  QHBoxLayout* indicatorLayout;
34  QWidget* currentIndicator;
35 
36  void setIndicator(QWidget* indicator);
37  void removeCurrentIndicator();
38 
39 private Q_SLOTS:
40  void onFocusChanged(QWidget* old, QWidget* now);
41  void onIndicatorDestroyed(QObject* obj);
42 };
43 
44 }
45 
46 #endif
Definition: InfoBar.h:17
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37