00001
00006 #ifndef _ConstraintsLegendAction_h
00007 #define _ConstraintsLegendAction_h
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "PlotControl.h"
00018 #include "ToggleToolAction.h"
00019 #include "ConstraintsLayer.h"
00020
00021
00022
00023
00024 class ConstraintsLegendAction
00025 : public ToggleToolAction
00026 {
00027 public:
00028
00029
00032 ConstraintsLegendAction(PlotControl* pPlotControl,
00033 ConstraintsLayer* pConstraintsLayer);
00034
00037 ConstraintsLegendAction(const ConstraintsLegendAction& from);
00038
00041 ~ConstraintsLegendAction(void);
00042
00043
00044
00045
00046
00047 virtual bool Action(bool toggle);
00048
00049
00050
00051
00052 virtual bool IsToggled() const;
00053
00054 protected:
00055 private:
00056 PlotControl* mpPlotControl;
00057 ConstraintsLayer* mpConstraintsLayer;
00058 };
00059
00060
00061
00062
00063
00064
00065
00066 #endif // _ConstraintsLegendAction_h