File indexing completed on 2024-05-12 16:36:45
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2009 Alexia Allanic <alexia_allanic@yahoo.fr> 0003 * Copyright (C) 2009 Jean-Nicolas Artaud <jeannicolasartaud@gmail.com> 0004 * Copyright (C) 2009 Jérémy Lugagne <jejewindsurf@hotmail.com> 0005 * Copyright (C) 2009 Thorsten Zachmann <zachmann@kde.org> 0006 * 0007 * This library is free software; you can redistribute it and/or 0008 * modify it under the terms of the GNU Library General Public 0009 * License as published by the Free Software Foundation; either 0010 * version 2 of the License, or (at your option) any later version. 0011 * 0012 * This library is distributed in the hope that it will be useful, 0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0015 * Library General Public License for more details. 0016 * 0017 * You should have received a copy of the GNU Library General Public License 0018 * along with this library; see the file COPYING.LIB. If not, write to 0019 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0020 * Boston, MA 02110-1301, USA. 0021 */ 0022 #ifndef KPRPRESENTATIONHIGHLIGHTWIDGET_H 0023 #define KPRPRESENTATIONHIGHLIGHTWIDGET_H 0024 0025 #include "KPrPresentationToolEventForwarder.h" 0026 0027 class KPrPresentationHighlightWidget : public KPrPresentationToolEventForwarder 0028 { 0029 Q_OBJECT 0030 public: 0031 explicit KPrPresentationHighlightWidget(KoPACanvasBase *canvas); 0032 ~KPrPresentationHighlightWidget() override; 0033 0034 protected: 0035 void mouseMoveEvent( QMouseEvent * event ) override; 0036 void paintEvent( QPaintEvent * event ) override; 0037 0038 private: 0039 QSize m_size; 0040 QPoint m_center; 0041 bool m_blackBackgroundVisibility; 0042 }; 0043 0044 #endif /* KPRPRESENTATIONHIGHLIGHTWIDGET_H */ 0045