![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtDockWidgetItem.h,v $ $Revision: 1.6 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtDockWidgetItem_H_ 00014 #define DtDockWidgetItem_H_ 00015 00016 #include <vrvCoreQt/vrvCoreQt.h> 00017 #include <vrvCoreQt/DtMenuItem.h> 00018 00019 00020 namespace makVrv 00021 { 00022 class DtDockable; 00023 00026 class DT_DLL_VRVCOREQT DtDockWidgetItem : public DtMenuItem 00027 { 00028 Q_OBJECT 00029 00030 public: 00032 DtDockWidgetItem(const std::string& dockName, DtDockable* dockable); 00033 00035 virtual ~DtDockWidgetItem(); 00036 00038 virtual QAction* createAction(DtDe&, QWidget* parent); 00039 00040 protected: 00041 virtual void on_triggered(); 00042 00043 virtual void on_checkStateChanged(bool); 00044 00045 protected: 00046 00047 DtDockable* myDockable; 00048 QAction* myAction; 00049 00050 }; 00051 } 00052 00053 #endif 00054