VR-Forces 4.10 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) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <QtWidgets/QToolButton>
14 
15 class QIcon;
16 
17 namespace makVrv
18 {
19  class DtPopupToolbar;
20 
25  {
26  Q_OBJECT
27  public:
30  explicit DtPopupToolbarButton(DtPopupToolbar* toolbar,
31  QWidget* parent);
32 
34  virtual ~DtPopupToolbarButton();
35 
37  virtual void setIconWithArrow(const QIcon& icon);
38 
40  void showToolbar(bool show = true);
41 
43  void hideToolbar();
44 
45  protected:
46 
47  virtual void changeEvent ( QEvent * event );
48 
49  //virtual void changeEvent ( QEvent* event );
50  void buttonEnableDisable(bool enabled);
51  void updateButtonIcon( bool checked );
52 
55  void movePopupToolbar();
56 
57  protected slots:
58  void slot_onToggle(bool toggled);
59  void on_sliderToolBarShown();
60  void on_sliderToolBarHidden();
61 
62  protected:
64  static QIcon makeWideIconWithArrow(const QIcon& baseIcon, bool downArrow,
65  QToolButton* button );
66 
67 
68  protected:
70  QIcon* myUpArrowIcon;
72 
73  };
74 }
75 
The DtPopupToolbarButton class is a toolbar which controls the display of a toolbar.
Definition: DtPopupToolbarButton.h:24
DtPopupToolbar * myToolbar
Definition: DtPopupToolbarButton.h:69
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
The DtPopupToolbar class provides a toolbar can be easily shown and hidden.
Definition: DtPopupToolbar.h:22
QIcon * myDownArrowIcon
Definition: DtPopupToolbarButton.h:71
QIcon * myUpArrowIcon
Definition: DtPopupToolbarButton.h:70

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)