VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtPopupToolbarButton.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile:  $ $Revision:  $ $State:  $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvCoreQt/vrvCoreQt.h>
00016 #include <QtGui/QToolButton>
00017 
00018 class QIcon;
00019 
00020 namespace makVrv
00021 {
00022    class DtPopupToolbar;
00023 
00027    class DT_DLL_VRVCOREQT DtPopupToolbarButton : public QToolButton
00028    {
00029       Q_OBJECT
00030    public:
00033       explicit DtPopupToolbarButton(DtPopupToolbar* toolbar,
00034          QWidget* parent);
00035 
00037       virtual ~DtPopupToolbarButton();
00038 
00040       virtual void setIconWithArrow(const QIcon& icon);
00041 
00043       void showToolbar(bool show = true);
00044 
00046       void hideToolbar();
00047 
00048    protected:
00049 
00050       virtual void changeEvent ( QEvent * event  );
00051 
00052       //virtual void changeEvent ( QEvent* event );
00053       void buttonEnableDisable(bool enabled);
00054       void updateButtonIcon( bool checked );
00055 
00056    protected slots:
00057       void slot_onToggle(bool toggled);     
00058       void on_sliderToolBarShown();
00059       void on_sliderToolBarHidden();
00060 
00061    protected:
00063       static QIcon makeWideIconWithArrow(const QIcon& baseIcon, bool downArrow,
00064          QToolButton* button );
00065       
00066      
00067    protected:
00068       DtPopupToolbar* myToolbar;
00069       QIcon* myUpArrowIcon;
00070       QIcon* myDownArrowIcon;
00071 
00072    };
00073 }
00074 

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)