VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
extendedTitleBarWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include <vrfGuiCommonQt/dockHideBarWidgetUi.hpp>
10 #include <QtWidgets/QWidget>
12 
13 namespace makVrf
14 {
17 
21  {
22  Q_OBJECT
23 
24  public:
25 
27  {
28  NoButtons = 0x0000,
29  PinButton = 0x0001,
30  CollapseButton = 0x0010,
31  FloatButton = 0x0100,
32  CloseButton = 0x1000,
33  AllButtons = PinButton | CollapseButton | CloseButton | FloatButton
34  };
35 
36  public:
37 
39  DtExtendedTitleBarWidget(makVrv::DtDe& de, QWidget* parent = NULL, DtExtendedTitleBarButtonFlags flags = NoButtons);
40 
42  virtual ~DtExtendedTitleBarWidget();
43 
45  virtual bool isPinned();
46 
48  virtual void setPinned(bool flag);
49 
51  virtual bool isCollapsed();
52 
54  virtual void setCollapsed(bool flag);
55 
57  virtual const QString title();
58 
60  virtual void setTitle(const QString& text);
61 
63  virtual void setDrawBorder(bool flag);
64 
66  virtual void setButtons(DtExtendedTitleBarButtonFlags flags);
67 
68  protected:
69 
72  virtual void paintEvent(QPaintEvent* p);
73 
75  virtual void setupGui();
76 
79  virtual void updatePinStatus();
80 
83  virtual void updateCollapseStatus();
84 
85  protected slots:
86 
87  void slot_onPinButtonClicked();
88 
89  void slot_onCloseButtonClicked();
90 
91  void slot_onCollapseButtonClicked();
92 
93  void slot_onFloatButtonClicked();
94 
95  signals:
96 
98  void signal_pinPressed(bool flag);
99 
101  void signal_collapsePressed(bool flag);
102 
104  void signal_closePressed();
105 
107  void signal_floatPressed();
108 
110  void signal_pinStatusChanged(bool pinned);
111 
113  void signal_collapseStatusChanged(bool pinned);
114 
115  protected:
116 
117  Ui_dockHideBarWidgetUI myUiImpl;
123  };
124 
126  {
127  public:
130 
133 
135  static void registerInstance(makVrv::DtDe& de, DtExtendedTitleBarWidgetCreator* instance);
136 
137  virtual DtExtendedTitleBarWidget* create(makVrv::DtDe&, QWidget* parent,
139  };
140 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
IMGUI_API bool CloseButton(ImGuiID id, const ImVec2 &pos)
bool myIsPinned
Definition: extendedTitleBarWidget.h:119
Ui_dockHideBarWidgetUI myUiImpl
Definition: extendedTitleBarWidget.h:117
DtExtendedTitleBarButtonFlags
Definition: extendedTitleBarWidget.h:26
DtExtendedTitleBarButtonFlags myFlags
Definition: extendedTitleBarWidget.h:118
makVrv::DtDe & myDe
Definition: extendedTitleBarWidget.h:122
bool myDrawBorder
Definition: extendedTitleBarWidget.h:121
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
Definition: extendedTitleBarWidget.h:28
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
bool myIsCollapsed
Definition: extendedTitleBarWidget.h:120
Represents a widget that can be used as the titleBarWidget.
Definition: extendedTitleBarWidget.h:20
IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2 &pos)
Definition: extendedTitleBarWidget.h:125

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)