blob: 777a692a470b1ddc802c5a1705e8c215f0ed7ff2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/***************************************************************************
filelight.h - description
-------------------
begin : Mon May 12 22:38:30 BST 2003
copyright : (C) 2003 by Max Howell
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef FILELIGHT_H
#define FILELIGHT_H
#include <kparts/mainwindow.h>
class KSqueezedTextLabel;
class KHistoryCombo;
class KAction;
class KRecentFilesAction;
class ScanProgressBox;
class HistoryCollection;
namespace Filelight {
class Part;
class MainWindow : public KParts::MainWindow
{
Q_OBJECT
public:
MainWindow();
void scan( const KURL &u ) { slotScanUrl( u ); }
private slots:
void slotUp();
void slotComboScan();
void slotScanDirectory();
void slotScanHomeDirectory();
void slotScanRootDirectory();
bool slotScanUrl( const KURL& );
bool slotScanPath( const TQString& );
void slotAbortScan();
void configToolbars();
void configKeys();
void scanStarted();
void scanFailed();
void scanCompleted();
void urlAboutToChange();
protected:
virtual void saveProperties( KConfig * );
virtual void readProperties( KConfig * );
virtual bool queryExit();
private:
Filelight::Part *m_part;
KSqueezedTextLabel *m_status[2];
KHistoryCombo *m_combo;
HistoryCollection *m_histories;
KRecentFilesAction *m_recentScans;
void setupStatusBar();
void setupActions();
};
} // namespace Filelight
#endif
|