UIPopupPane.h revision d34409ad02ea0d28e08a6c4b089a412fdb3b4c9c
/** @file
* VBox Qt GUI - UIPopupPane class declaration.
*/
/*
* Copyright (C) 2013 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 __UIPopupPane_h__
#define __UIPopupPane_h__
/* Qt includes: */
#include <QWidget>
#include <QMap>
/* GUI includes: */
#include "QIWithRetranslateUI.h"
/* Forward declaration: */
/* Popup-pane prototype: */
{
void sigToShow();
void sigToHide();
void sigShow();
void sigHide();
/* Notifiers: Hover stuff: */
void sigHoverEnter();
void sigHoverLeave();
/* Notifiers: Focus stuff: */
void sigFocusEnter();
void sigFocusLeave();
/* Notifiers: Layout stuff: */
void sigProposeTextPaneWidth(int iWidth);
void sigSizeHintChanged();
/* Notifier: Complete stuff: */
void sigDone(int iResultCode) const;
/* Constructor: */
/* API: Recall stuff: */
void recall();
/* API: Text stuff: */
/* API: Layout stuff: */
void layoutContent();
void sltMarkAsShown();
/* Handlers: Layout stuff: */
void sltHandleProposalForWidth(int iWidth);
void sltUpdateSizeHint();
/* Handler: Button stuff: */
void sltButtonClicked(int iButtonID);
/* Helpers: Prepare stuff: */
void prepare();
void prepareBackground();
void prepareContent();
void prepareAnimation();
/* Helpers: Translate stuff: */
void retranslateUi();
void retranslateToolTips();
/* Handler: Event-filter stuff: */
/* Handlers: Event stuff: */
/* Helpers: Paint stuff: */
/* Helper: Complete stuff: */
void done(int iResultCode);
/* Property: Hover stuff: */
int defaultOpacity() const { return m_iDefaultOpacity; }
int hoveredOpacity() const { return m_iHoveredOpacity; }
int opacity() const { return m_iOpacity; }
/* Variables: General stuff: */
bool m_fPolished;
const int m_iLayoutMargin;
const int m_iLayoutSpacing;
/* Variables: Text stuff: */
/* Variables: Button stuff: */
bool m_fShown;
/* Variables: Focus stuff: */
bool m_fCanLooseFocus;
bool m_fFocused;
/* Variables: Hover stuff: */
bool m_fHovered;
const int m_iDefaultOpacity;
const int m_iHoveredOpacity;
int m_iOpacity;
/* Widgets: */
};
#endif /* __UIPopupPane_h__ */