VBoxMiniToolBar.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VBoxMiniToolBar class declaration & implementation. This is the toolbar shown on fullscreen mode.
*/
/*
* Copyright (C) 2009 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__
/* VBox includes */
#include <VBoxToolBar.h>
/* Qt includes */
#include <QBasicTimer>
/**
* The VBoxMiniToolBar class is a toolbar shown inside full screen mode or seamless mode.
*/
{
enum Alignment
{
};
void setSeamlessMode (bool aIsSeamless);
bool isAutoHide() const;
void exitAction();
void closeAction();
void geometryUpdated();
void togglePushpin (bool aOn);
void initialize();
void recreateMask();
void moveToBase();
bool mActive;
bool mPolished;
bool mSeamless;
bool mAutoHide;
bool mSlideToScreen;
bool mHideAfterSlide;
int mAutoHideCounter;
int mPositionX;
int mPositionY;
/* Lists of used spacers */
/* Menu insert position */
/* Tool-bar alignment */
bool mAnimated;
/* Interval (in milli seconds) for scrolling the toolbar, default is 20 msec */
int mScrollDelay;
/* 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 mAutoScrollDelay;
/* Number of total steps before hiding. If it is 10 then wait 10 (steps) * 100ms (mAutoScrollDelay) = 1000ms delay.
* The default is 10. */
};
#endif // __VBoxMiniToolBar_h__