VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPopupToolbarButton.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCoreQt/vrvCoreQt.h>
16 #include <QtWidgets/QToolButton>
17 
18 class QIcon;
19 
20 namespace makVrv
21 {
22  class DtPopupToolbar;
23 
28  {
29  Q_OBJECT
30  public:
33  explicit DtPopupToolbarButton(DtPopupToolbar* toolbar,
34  QWidget* parent);
35 
37  virtual ~DtPopupToolbarButton();
38 
40  virtual void setIconWithArrow(const QIcon& icon);
41 
43  void showToolbar(bool show = true);
44 
46  void hideToolbar();
47 
48  protected:
49 
50  virtual void changeEvent ( QEvent * event );
51 
52  //virtual void changeEvent ( QEvent* event );
53  void buttonEnableDisable(bool enabled);
54  void updateButtonIcon( bool checked );
55 
56  protected slots:
57  void slot_onToggle(bool toggled);
58  void on_sliderToolBarShown();
59  void on_sliderToolBarHidden();
60 
61  protected:
63  static QIcon makeWideIconWithArrow(const QIcon& baseIcon, bool downArrow,
64  QToolButton* button );
65 
66 
67  protected:
69  QIcon* myUpArrowIcon;
71 
72  };
73 }
74 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)