Changeset 29083 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMiniToolBar.h
- Timestamp:
- May 5, 2010 1:55:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMiniToolBar.h
r28800 r29083 6 6 7 7 /* 8 * Copyright (C) 2009 Oracle Corporation8 * Copyright (C) 2009-2010 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #define __VBoxMiniToolBar_h__ 21 21 22 /* VBox includes */ 23 #include <VBoxToolBar.h> 24 25 /* Qt includes */ 22 /* Global includes */ 26 23 #include <QBasicTimer> 27 24 25 /* Local includes */ 26 #include "VBoxToolBar.h" 27 28 /* Global forwards */ 28 29 class QLabel; 29 30 class QMenu; … … 45 46 }; 46 47 47 VBoxMiniToolBar (QWidget *aParent, Alignment aAlignment, bool aIsActive, bool aAutoHide);48 VBoxMiniToolBar(QWidget *pParent, Alignment alignment, bool fActive, bool fAutoHide); 48 49 49 VBoxMiniToolBar& operator<< (QList <QMenu*> aMenus);50 VBoxMiniToolBar& operator<<(QList<QMenu*> menus); 50 51 51 void setSeamlessMode (bool aIsSeamless);52 void setDisplayText (const QString &aText);52 void setSeamlessMode(bool fSeamless); 53 void setDisplayText(const QString &strText); 53 54 54 55 bool isAutoHide() const; 55 56 56 void updateDisplay (bool aShow, bool aSetHideFlag);57 void updateDisplay(bool fShow, bool fSetHideFlag); 57 58 58 59 signals: … … 64 65 protected: 65 66 66 void mouseMoveEvent (QMouseEvent *aEvent);67 void timerEvent (QTimerEvent *aEvent);68 void showEvent (QShowEvent *aEvent);69 void paintEvent (QPaintEvent *aEvent);70 67 bool eventFilter(QObject *pObj, QEvent *pEvent); 68 void mouseMoveEvent(QMouseEvent *pEvent); 69 void timerEvent(QTimerEvent *pEvent); 70 void showEvent(QShowEvent *pEvent); 71 void paintEvent(QPaintEvent *pEvent); 71 72 72 73 private slots: 73 74 74 void togglePushpin (bool aOn);75 void togglePushpin(bool fOn); 75 76 76 77 private: … … 79 80 void recreateMask(); 80 81 void moveToBase(); 81 QPoint mapFromScreen (const QPoint &aPoint);82 void setMouseTrackingEnabled(bool fEnabled); 82 83 83 QAction *mAutoHideAct; 84 QLabel *mDisplayLabel; 84 QAction *m_pAutoHideAction; 85 QLabel *m_pDisplayLabel; 86 QAction *m_pRestoreAction; 87 QAction *m_pCloseAction; 85 88 86 QBasicTimer m ScrollTimer;87 QBasicTimer m AutoScrollTimer;89 QBasicTimer m_scrollTimer; 90 QBasicTimer m_autoScrollTimer; 88 91 89 bool m Active;90 bool m Polished;91 bool m Seamless;92 bool m AutoHide;93 bool m SlideToScreen;94 bool m HideAfterSlide;92 bool m_fActive; 93 bool m_fPolished; 94 bool m_fSeamless; 95 bool m_fAutoHide; 96 bool m_fSlideToScreen; 97 bool m_fHideAfterSlide; 95 98 96 int m AutoHideCounter;97 int m PositionX;98 int m PositionY;99 int m_iAutoHideCounter; 100 int m_iPositionX; 101 int m_iPositionY; 99 102 100 103 /* Lists of used spacers */ 101 QList <QWidget*> mMargins;102 QList <QWidget*> mSpacings;103 QList <QWidget*> mLabelMargins;104 QList<QWidget*> m_Margins; 105 QList<QWidget*> m_Spacings; 106 QList<QWidget*> m_LabelMargins; 104 107 105 108 /* Menu insert position */ 106 QAction *m InsertPosition;109 QAction *m_pInsertPosition; 107 110 108 111 /* Tool-bar alignment */ 109 Alignment m Alignment;112 Alignment m_alignment; 110 113 111 114 /* Wether to animate showing/hiding the toolbar */ 112 bool m Animated;115 bool m_fAnimated; 113 116 114 117 /* Interval (in milli seconds) for scrolling the toolbar, default is 20 msec */ 115 int m ScrollDelay;118 int m_iScrollDelay; 116 119 117 120 /* The wait time while the cursor is not over the window after this amount of time (in msec), 118 121 * the toolbar will auto hide if autohide is on. The default is 100msec. */ 119 int m AutoScrollDelay;122 int m_iAutoScrollDelay; 120 123 121 /* Number of total steps before hiding. If it is 10 then wait 10 (steps) * 100ms (m AutoScrollDelay) = 1000ms delay.124 /* Number of total steps before hiding. If it is 10 then wait 10 (steps) * 100ms (m_iAutoScrollDelay) = 1000ms delay. 122 125 * The default is 10. */ 123 int m AutoHideTotalCounter;126 int m_iAutoHideTotalCounter; 124 127 }; 125 128
Note:
See TracChangeset
for help on using the changeset viewer.