VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/dockHideBarWidget.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: DtDockHideBarWidget.h,v $ $Revision: 1.1.2.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #pragma once
00010 
00011 #include <vrvUtil/signalslib.h>
00012 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00013 #include <vrfGuiCoreQt/dockHideBarWidgetUi.hpp>
00014 #include <QtGui/QWidget>
00015 
00016 namespace makVrf
00017 {
00020 
00023    class DT_DLL_VRFGUICOREQT DtExtendedTitleBarWidget : public QWidget
00024    {
00025       Q_OBJECT
00026 
00027    public:
00028 
00029       enum DtExtendedTitleBarButtonFlags
00030       {
00031          NoButtons      = 0x0000,
00032          PinButton      = 0x0001,
00033          CollapseButton = 0x0010,
00034          FloatButton    = 0x0100,
00035          CloseButton    = 0x1000,
00036          AllButtons = PinButton | CollapseButton | CloseButton | FloatButton
00037       };         
00038 
00039    public:
00040 
00042       DtExtendedTitleBarWidget(makVrv::DtDe& de, QWidget* parent = NULL, DtExtendedTitleBarButtonFlags flags = NoButtons);
00043 
00045       virtual ~DtExtendedTitleBarWidget();         
00046 
00048       virtual bool isPinned();
00049 
00051       virtual void setPinned(bool flag);
00052 
00054       virtual bool isCollapsed();
00055 
00057       virtual void setCollapsed(bool flag);
00058 
00060       virtual const QString title();
00061 
00063       virtual void setTitle(const QString& text);
00064 
00066       virtual void setDrawBorder(bool flag);
00067 
00069       virtual void setButtons(DtExtendedTitleBarButtonFlags flags);
00070 
00071    protected:
00072 
00075       virtual void paintEvent(QPaintEvent* p);
00076 
00078       virtual void setupGui();
00079 
00082       virtual void updatePinStatus();
00083 
00086       virtual void updateCollapseStatus();
00087 
00088    protected slots:
00089 
00090       void slot_onPinButtonClicked();
00091 
00092       void slot_onCloseButtonClicked();
00093 
00094       void slot_onCollapseButtonClicked();
00095 
00096       void slot_onFloatButtonClicked();
00097 
00098    signals:
00099 
00101       void signal_pinPressed(bool flag);
00102 
00104       void signal_collapsePressed(bool flag);
00105 
00107       void signal_closePressed();
00108 
00110       void signal_floatPressed();
00111 
00113       void signal_pinStatusChanged(bool pinned);
00114 
00116       void signal_collapseStatusChanged(bool pinned);
00117 
00118    protected:
00119 
00120       Ui_dockHideBarWidgetUI  myUiImpl;
00121       DtExtendedTitleBarButtonFlags myFlags;
00122       QPixmap myPinV;
00123       QPixmap myPinL;
00124       QPixmap myCollapseOpen;
00125       QPixmap myCollapseClosed;
00126       bool myIsPinned;
00127       bool myIsCollapsed;
00128       bool myDrawBorder;
00129       makVrv::DtDe& myDe;
00130    };
00131 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)