• 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
  • app
mainWindow.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 MAINWINDOW_H
23 #define MAINWINDOW_H
24 
25 #include <kparts/mainwindow.h>
26 
27 class KSqueezedTextLabel;
28 class KHistoryComboBox;
29 class KRecentFilesAction;
30 
31 class HistoryCollection;
32 
33 
34 namespace Filelight {
35 
36 class Part;
37 
38 class MainWindow : public KParts::MainWindow
39 {
40  Q_OBJECT
41 
42 public:
43  MainWindow();
44 
45  void scan(const KUrl &u) {
46  slotScanUrl(u);
47  }
48 
49 private slots:
50  void slotUp();
51  void slotComboScan();
52  void slotScanFolder();
53  void slotScanHomeFolder();
54  void slotScanRootFolder();
55  bool slotScanUrl(const KUrl&);
56  bool slotScanPath(const QString&);
57  void slotAbortScan();
58 
59  void configToolbars();
60  void configKeys();
61 
62  void scanStarted();
63  void scanFailed();
64  void scanCompleted();
65 
66  void urlAboutToChange();
67 
68 protected:
69  virtual void saveProperties(KConfigGroup&);
70  virtual void readProperties(const KConfigGroup&);
71  virtual void closeEvent(QCloseEvent *event);
72 
73 private:
74  Filelight::Part *m_part;
75 
76  KSqueezedTextLabel *m_status[2];
77  KHistoryComboBox *m_combo;
78  HistoryCollection *m_histories;
79  KRecentFilesAction *m_recentScans;
80 
81  void setupStatusBar();
82  void setupActions();
83 };
84 
85 } // namespace Filelight
86 
87 #endif
Filelight::MainWindow::closeEvent
virtual void closeEvent(QCloseEvent *event)
Definition: mainWindow.cpp:156
Filelight::MainWindow::scan
void scan(const KUrl &u)
Definition: mainWindow.h:45
QCloseEvent
Filelight::MainWindow
Definition: mainWindow.h:38
Filelight::MainWindow::MainWindow
MainWindow()
Definition: mainWindow.cpp:56
QString
Filelight::MainWindow::readProperties
virtual void readProperties(const KConfigGroup &)
Definition: mainWindow.cpp:287
Filelight::MainWindow::saveProperties
virtual void saveProperties(KConfigGroup &)
Definition: mainWindow.cpp:281
Filelight::Part
Definition: part.h:50
HistoryCollection
Definition: historyAction.h:60
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