orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
buttonelement.h00001 #ifndef ORCAQGUI2DFACTORY_BUTTONELEMENT_H 00002 #define ORCAQGUI2DFACTORY_BUTTONELEMENT_H 00003 00004 #include <hydroqguielementutil/guielement2d.h> 00005 #include <orca/button.h> 00006 #include <string> 00007 #include <orcaice/context.h> 00008 #include <hydroqgui/hydroqgui.h> 00009 00010 namespace orcaqgui2d { 00011 00015 class ButtonElement : public hydroqguielementutil::GuiElement2d 00016 { 00017 00018 public: 00019 00020 ButtonElement( const orcaice::Context &context, 00021 const std::string &proxyString, 00022 hydroqguielementutil::IHumanManager &humanManager ); 00023 00024 virtual QStringList contextMenu(); 00025 virtual void execute( int action ); 00026 00027 // This function doesn't need an implementation coz we don't paint anything. 00028 bool isInGlobalCS() { return false; } 00029 // This function doesn't need an implementation coz we don't paint anything. 00030 bool paintThisLayer(int z) const { return false; } 00031 00032 void press(); 00033 00034 private: 00035 00036 void connect(); 00037 00038 orcaice::Context context_; 00039 std::string proxyString_; 00040 orca::ButtonPrx buttonPrx_; 00041 00042 hydroqguielementutil::IHumanManager &humanManager_; 00043 00044 bool isConnected_; 00045 }; 00046 00047 } 00048 00049 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)