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
|
orcaqgui2dfactory/defaultfactory.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp, Ben Upcroft 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef ORCAGUI_DEFAULT_FACTORY_H 00012 #define ORCAGUI_DEFAULT_FACTORY_H 00013 00014 #include <orcaqgui/iguielementfactory.h> 00015 #include <orcaice/context.h> 00016 00017 namespace orcaqgui2d 00018 { 00019 00023 class DefaultFactory : public orcaqgui::IGuiElementFactory 00024 { 00025 public: 00026 00027 DefaultFactory(); 00028 00029 void setContext( const orcaice::Context &context ) 00030 { context_ = context; isContextSet_ = true; } 00031 00032 virtual hydroqguielementutil::IGuiElement* create( const QString &elementType, 00033 const QStringList &elementDetails, 00034 QColor suggestedColor, 00035 hydroqguielementutil::IHumanManager &humanManager, 00036 hydroqguielementutil::MouseEventManager &mouseEventManager, 00037 hydroqguielementutil::ShortcutKeyManager &shortcutKeyManager, 00038 const hydroqgui::GuiElementSet &guiElementSet ) const; 00039 00040 bool lookupElementType( const QStringList &ids, QString &elementType ) const; 00041 00042 private: 00043 00044 bool isContextSet_; 00045 orcaice::Context context_; 00046 00047 }; 00048 00049 } 00050 00051 00052 // 00053 // Hook for dynamic loading 00054 // 00055 extern "C" { 00056 hydroqgui::IGuiElementFactory *createFactory(); 00057 } 00058 00059 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)