• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KFile

  • kfile
kurlnavigatorbuttonbase_p.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (C) 2006-2010 by Peter Penz <peter.penz@gmx.at> *
3  * Copyright (C) 2006 by Aaron J. Seigo <aseigo@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 KURLNAVIGATORBUTTONBASE_P_H
22 #define KURLNAVIGATORBUTTONBASE_P_H
23 
24 #include <QtGui/QColor>
25 #include <QtGui/QPushButton>
26 
27 class KUrl;
28 class QEvent;
29 
30 namespace KDEPrivate
31 {
32 
39 class KUrlNavigatorButtonBase : public QPushButton
40 {
41  Q_OBJECT
42 
43 public:
44  explicit KUrlNavigatorButtonBase(QWidget* parent);
45  virtual ~KUrlNavigatorButtonBase();
46 
54  void setActive(bool active);
55  bool isActive() const;
56 
57 protected:
58  enum DisplayHint {
59  EnteredHint = 1,
60  DraggedHint = 2,
61  PopupActiveHint = 4
62  };
63 
64  enum { BorderWidth = 2 };
65 
66  void setDisplayHintEnabled(DisplayHint hint, bool enable);
67  bool isDisplayHintEnabled(DisplayHint hint) const;
68 
69  virtual void focusInEvent(QFocusEvent *event);
70  virtual void focusOutEvent(QFocusEvent *event);
71 
72  virtual void enterEvent(QEvent* event);
73  virtual void leaveEvent(QEvent* event);
74 
75  void drawHoverBackground(QPainter* painter);
76 
78  QColor foregroundColor() const;
79 
80 private Q_SLOTS:
82  void activate();
83 
84 private:
85  bool m_active;
86  int m_displayHint;
87 };
88 
89 } // namespace KDEPrivate
90 
91 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 22:06:10 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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