![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtIgToolBar.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtIgToolBar_H_ 00014 #define DtIgToolBar_H_ 00015 00016 #include <vrvCoreQt/vrvCoreQt.h> 00017 00018 #include <QtGui/QToolBar> 00019 00020 namespace makVrv 00021 { 00022 00025 class DT_DLL_VRVCOREQT DtIgToolBar : public QToolBar 00026 { 00027 Q_OBJECT 00028 00029 public: 00030 00032 DtIgToolBar(const QString& name, QWidget* parent) 00033 : QToolBar(name, parent) 00034 { 00035 } 00036 00037 virtual ~DtIgToolBar() 00038 { 00039 } 00040 00041 signals: 00042 void visibilityChanged(bool); 00043 00044 protected: 00045 virtual void hideEvent(QHideEvent* e) 00046 { 00047 QToolBar::hideEvent(e); 00048 emit visibilityChanged(false); 00049 } 00050 00051 virtual void showEvent(QShowEvent* e) 00052 { 00053 QToolBar::showEvent(e); 00054 emit visibilityChanged(true); 00055 } 00056 }; 00057 } 00058 00059 #endif 00060