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

filelight

  • sources
  • kde-4.14
  • kdeutils
  • filelight
  • src
  • part
  • radialMap
map.h
Go to the documentation of this file.
1 /***********************************************************************
2 * Copyright 2003-2004 Max Howell <max.howell@methylblue.com>
3 * Copyright 2008-2009 Martin Sandsmark <martin.sandsmark@kde.org>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License or (at your option) version 3 or any later version
9 * accepted by the membership of KDE e.V. (or its successor approved
10 * by the membership of KDE e.V.), which shall act as a proxy
11 * defined in Section 14 of version 3 of the license.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ***********************************************************************/
21 
22 #ifndef MAP_H
23 #define MAP_H
24 
25 #include "part/fileTree.h"
26 
27 #include <KColorScheme>
28 
29 #include <QtGui/QPixmap>
30 #include <QtCore/QRect>
31 #include <QtCore/QString>
32 
33 namespace RadialMap {
34 class Segment;
35 
36 class Map
37 {
38 public:
39  explicit Map(bool summary);
40  ~Map();
41 
42  void make(const Folder *, bool = false);
43  bool resize(const QRect&);
44 
45  bool isNull() const {
46  return (m_signature == 0);
47  }
48  void invalidate();
49 
50  int height() const {
51  return m_rect.height();
52  }
53  int width() const {
54  return m_rect.width();
55  }
56  QPixmap pixmap() const {
57  return m_pixmap;
58  }
59 
60  friend class Builder;
61  friend class Widget;
62 
63 private:
64  void paint(bool antialias = true);
65  void colorise();
66  void setRingBreadth();
67 
68  Chain<Segment> *m_signature;
69 
70  QRect m_rect;
71  uint m_visibleDepth;
72  QPixmap m_pixmap;
73  uint m_ringBreadth;
74  uint m_innerRadius;
75  QString m_centerText;
76  bool m_summary;
77 
78  uint MAP_2MARGIN;
79 };
80 }
81 
82 #endif
RadialMap::Map::Map
Map(bool summary)
Definition: map.cpp:39
RadialMap::Map::width
int width() const
Definition: map.h:53
RadialMap::Map::isNull
bool isNull() const
Definition: map.h:45
RadialMap::Map::pixmap
QPixmap pixmap() const
Definition: map.h:56
RadialMap::Map::height
int height() const
Definition: map.h:50
RadialMap::Widget
Definition: widget.h:50
QRect::height
int height() const
RadialMap::Builder
Definition: builder.h:37
QRect
RadialMap::Map
Definition: map.h:36
Folder
Definition: fileTree.h:271
fileTree.h
RadialMap::Map::resize
bool resize(const QRect &)
Definition: map.cpp:101
Filelight::m_summary
http QObject const QList< QVariant > m_summary(0)
QString
QPixmap
QRect::width
int width() const
Chain
Definition: fileTree.h:40
RadialMap::Map::make
void make(const Folder *, bool=false)
Definition: map.cpp:66
RadialMap::Map::~Map
~Map()
Definition: map.cpp:53
RadialMap::Map::invalidate
void invalidate()
Definition: map.cpp:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

filelight

Skip menu "filelight"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

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