itom 2.2.1
K:/git-itom/sources/itom/itomWidgets/popupWidget_p.h
00001 /* ********************************************************************
00002     itom software
00003     URL: http://www.uni-stuttgart.de/ito
00004     Copyright (C) 2016, Institut fuer Technische Optik (ITO),
00005     Universitaet Stuttgart, Germany
00006 
00007     This file is part of itom and its software development toolkit (SDK).
00008 
00009     itom is free software; you can redistribute it and/or modify it
00010     under the terms of the GNU Library General Public Licence as published by
00011     the Free Software Foundation; either version 2 of the Licence, or (at
00012     your option) any later version.
00013    
00014     In addition, as a special exception, the Institut fuer Technische
00015     Optik (ITO) gives you certain additional rights.
00016     These rights are described in the ITO LGPL Exception version 1.0,
00017     which can be found in the file LGPL_EXCEPTION.txt in this package.
00018 
00019     itom is distributed in the hope that it will be useful, but
00020     WITHOUT ANY WARRANTY; without even the implied warranty of
00021     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library
00022     General Public Licence for more details.
00023 
00024     You should have received a copy of the GNU Library General Public License
00025     along with itom. If not, see <http://www.gnu.org/licenses/>.
00026 
00027     This file is a port and modified version of the 
00028     CTK Common Toolkit (http://www.commontk.org)
00029 *********************************************************************** */
00030 
00031 #ifndef POPUPWIDGET_P_H
00032 #define POPUPWIDGET_P_H
00033 
00034 // CTK includes
00035 #include "basePopupWidget_p.h"
00036 #include "popupWidget.h"
00037 
00038 // -------------------------------------------------------------------------
00040 class ITOMWIDGETS_EXPORT PopupWidgetPrivate
00041   : public BasePopupWidgetPrivate
00042 {
00043   Q_OBJECT
00044   Q_DECLARE_PUBLIC(PopupWidget);
00045 public:
00046   typedef BasePopupWidgetPrivate Superclass;
00047   PopupWidgetPrivate(PopupWidget& object);
00048   ~PopupWidgetPrivate();
00049 
00050   virtual void init();
00051 
00052   // Return the widget if the mouse cursor is above any of the focus widgets or their
00053   // children.
00054   // If the cursor is above a child widget, install the event filter to listen
00055   // when the cursor leaves the widget.
00056   virtual QWidget* mouseOver();
00057 
00058   virtual bool eventFilter(QObject* obj, QEvent* event);
00059 
00060   void temporarilyHiddenOn();
00061   void temporarilyHiddenOff();
00062 
00063 public Q_SLOTS:
00064   void updateVisibility();
00065   void onApplicationDeactivate();
00066 
00067 protected:
00068   bool Active;
00069   bool AutoShow;
00070   int  ShowDelay;
00071   bool AutoHide;
00072   int  HideDelay;
00073 };
00074 
00075 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Friends