~choreonoid/choreonoid/debian

« back to all changes in this revision

Viewing changes to src/BodyPlugin/SimulationBar.h

  • Committer: Thomas Moulard
  • Date: 2012-10-23 12:43:24 UTC
  • Revision ID: git-v1:351cf736ad49bc7a9a7b9767dee760a013517a5d
Tags: upstream/1.1.0
ImportedĀ UpstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
   @author Shin'ichiro Nakaoka
 
3
*/
 
4
 
 
5
#ifndef CNOID_BODYPLUGIN_SIMULATION_BAR_H_INCLUDED
 
6
#define CNOID_BODYPLUGIN_SIMULATION_BAR_H_INCLUDED
 
7
 
 
8
#include <cnoid/ToolBar>
 
9
#include <iosfwd>
 
10
 
 
11
namespace cnoid {
 
12
 
 
13
    class SimulationBar : public ToolBar
 
14
    {
 
15
    public:
 
16
 
 
17
        static SimulationBar* initialize(ExtensionManager* ext);
 
18
        static SimulationBar* instance();
 
19
            
 
20
        virtual ~SimulationBar();
 
21
 
 
22
    private:
 
23
 
 
24
        SimulationBar();
 
25
 
 
26
        void onStartStopButtonClicked();
 
27
        void startSimulation();
 
28
        void stopSimulation();
 
29
 
 
30
        std::ostream& os;
 
31
 
 
32
        bool isDoingSimulation;
 
33
        ToolButton* startStopButton;
 
34
        QIcon startIcon;
 
35
        QIcon stopIcon;
 
36
        boost::signals::connection simulationFinishedConnection;
 
37
    };
 
38
}
 
39
 
 
40
#endif