• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • view
kateanimation.h
Go to the documentation of this file.
1 /* This file is part of the KDE and the Kate project
2  *
3  * Copyright (C) 2013 Dominik Haumann <dhaumann@kde.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef KATE_ANIMATION_H
22 #define KATE_ANIMATION_H
23 
24 #include <QObject>
25 #include <QPointer>
26 
27 class QTimer;
28 
29 class KMessageWidget;
30 class KateFadeEffect;
41 class KateAnimation : public QObject
42 {
43  Q_OBJECT
44 
45  public:
49  enum EffectType{
50  FadeEffect = 0,
51  GrowEffect
52  };
53 
54  public:
58  KateAnimation(KMessageWidget* widget, EffectType effect);
59 
63  bool hideAnimationActive() const;
64 
68  bool showAnimationActive() const;
69 
70  public Q_SLOTS:
74  void hide();
75 
79  void show();
80 
81  Q_SIGNALS:
86  void widgetHidden();
87 
92  void widgetShown();
93 
94  private:
95  QPointer<KMessageWidget> m_widget;
96  KateFadeEffect * m_fadeEffect;
97  QTimer * m_hideTimer;
98  QTimer * m_showTimer;
99 };
100 
101 #endif
102 
103 // kate: space-indent on; indent-width 2; replace-tabs on;
KateAnimation::hideAnimationActive
bool hideAnimationActive() const
Returns true, if the hide animation is running, otherwise false.
Definition: kateanimation.cpp:54
KateAnimation::GrowEffect
grow / shrink
Definition: kateanimation.h:51
KateAnimation::showAnimationActive
bool showAnimationActive() const
Returns true, if the how animation is running, otherwise false.
Definition: kateanimation.cpp:59
KateAnimation::KateAnimation
KateAnimation(KMessageWidget *widget, EffectType effect)
Constructor.
Definition: kateanimation.cpp:29
QPointer< KMessageWidget >
KateFadeEffect
This class provides a fade in/out effect for arbitrary QWidgets.
Definition: katefadeeffect.h:40
KateAnimation::widgetShown
void widgetShown()
This signal is emitted when the showing animation is finished.
KateAnimation::FadeEffect
fade in/out
Definition: kateanimation.h:50
KateAnimation::show
void show()
Call to show and fade in the widget.
Definition: kateanimation.cpp:64
QTimer
QObject
KateAnimation
This class provides a fade in/out effect for KMessageWidgets.
Definition: kateanimation.h:41
KateAnimation::widgetHidden
void widgetHidden()
This signal is emitted when the hiding animation is finished.
KateAnimation::EffectType
EffectType
The type of supported animation effects.
Definition: kateanimation.h:49
KateAnimation::hide
void hide()
Call to hide the widget.
Definition: kateanimation.cpp:92
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal