VBoxMiniToolBar.h revision ad27e1d5e48ca41245120c331cc88b50464813ce
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VBoxMiniToolBar class declaration & implementation. This is the toolbar shown on fullscreen mode.
*/
/*
* Copyright (C) 2009-2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef __VBoxMiniToolBar_h__
#define __VBoxMiniToolBar_h__
/* Global includes */
#include <QBasicTimer>
/* Local includes */
#include "UIToolBar.h"
/* Global forwards */
/**
* The VBoxMiniToolBar class is a toolbar shown inside full screen mode or seamless mode.
*/
{
enum Alignment
{
};
void setSeamlessMode(bool fSeamless);
bool isAutoHide() const;
void minimizeAction();
void exitAction();
void closeAction();
void geometryUpdated();
void togglePushpin(bool fOn);
void initialize();
void recreateMask();
void moveToBase();
void setMouseTrackingEnabled(bool fEnabled);
bool m_fActive;
bool m_fPolished;
bool m_fSeamless;
bool m_fAutoHide;
bool m_fSlideToScreen;
bool m_fHideAfterSlide;
int m_iAutoHideCounter;
int m_iPositionX;
int m_iPositionY;
/* Lists of used spacers */
/* Menu insert position */
/* Tool-bar alignment */
bool m_fAnimated;
/* Interval (in milli seconds) for scrolling the toolbar, default is 20 msec */
int m_iScrollDelay;
/* The wait time while the cursor is not over the window after this amount of time (in msec),
* the toolbar will auto hide if autohide is on. The default is 100msec. */
int m_iAutoScrollDelay;
/* Number of total steps before hiding. If it is 10 then wait 10 (steps) * 100ms (m_iAutoScrollDelay) = 1000ms delay.
* The default is 10. */
};
#endif // __VBoxMiniToolBar_h__