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

filelight

  • sources
  • kde-4.12
  • kdeutils
  • filelight
  • src
  • part
part.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 FILELIGHTPART_H
23 #define FILELIGHTPART_H
24 
25 #include <KParts/BrowserExtension>
26 #include <KParts/StatusBarExtension>
27 #include <KParts/Part>
28 #include <KUrl>
29 
30 #include <QtGui/QLabel>
31 
32 using KParts::StatusBarExtension;
33 namespace RadialMap {
34 class Widget;
35 }
36 class Folder;
37 
38 
39 namespace Filelight
40 {
41 class Part;
42 
43 class BrowserExtension : public KParts::BrowserExtension
44 {
45 public:
46  explicit BrowserExtension(Part*);
47 };
48 
49 
50 class Part : public KParts::ReadOnlyPart
51 {
52  Q_OBJECT
53 
54 public:
55  Part(QWidget *, QObject *, const QList<QVariant>&);
56 
57  virtual bool openFile() {
58  return false; //pure virtual in base class
59  }
60  virtual bool closeUrl();
61 
62  QString prettyUrl() const {
63  return url().protocol() == QLatin1String( "file" ) ? url().path() : url().prettyUrl();
64  }
65 
66 public slots:
67  virtual bool openUrl(const KUrl&);
68  void configFilelight();
69  void rescan();
70 
71 private slots:
72  void postInit();
73  void scanCompleted(Folder*);
74  void mapChanged(const Folder*);
75 
76 private:
77  KStatusBar *statusBar() {
78  return m_statusbar->statusBar();
79  }
80  void showSummary();
81 
82  QLayout *m_layout;
83  QWidget *m_summary;
84  BrowserExtension *m_ext;
85  StatusBarExtension *m_statusbar;
86  RadialMap::Widget *m_map;
87  QWidget *m_stateWidget;
88  class ScanManager *m_manager;
89  QLabel *m_numberOfFiles;
90 
91  bool m_started;
92 
93 private:
94  bool start(const KUrl&);
95 
96 private slots:
97  void updateURL(const KUrl &);
98 };
99 }
100 
101 #endif
Filelight::Part::rescan
void rescan()
Definition: part.cpp:272
QWidget
RadialMap::Widget
Definition: widget.h:50
QObject
Filelight::Part::closeUrl
virtual bool closeUrl()
Definition: part.cpp:198
Filelight::Part::Part
Part(QWidget *, QObject *, const QList< QVariant > &)
Filelight::Part::prettyUrl
QString prettyUrl() const
Definition: part.h:62
Folder
Definition: fileTree.h:271
Filelight::BrowserExtension::BrowserExtension
BrowserExtension(Part *)
Filelight::Part::openUrl
virtual bool openUrl(const KUrl &)
Definition: part.cpp:147
Filelight::BrowserExtension
Definition: part.h:43
Filelight::Part::configFilelight
void configFilelight()
Definition: part.cpp:229
Filelight::Part::openFile
virtual bool openFile()
Definition: part.h:57
Filelight::Part
Definition: part.h:50
Filelight::m_started
http QObject const QList< QVariant > m_started(false)
Definition: part.cpp:80
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:08:07 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
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • 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