diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-03 01:26:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-03 01:26:04 +0000 |
commit | 3c7b870f367df150ea60eb9d6bb2fd41646545d7 (patch) | |
tree | ac8705b4703cebb5031f9443eafd3e429a17ac1a /src/app/mainWindow.h | |
download | filelight-3c7b870f367df150ea60eb9d6bb2fd41646545d7.tar.gz filelight-3c7b870f367df150ea60eb9d6bb2fd41646545d7.zip |
Added abandoned Filelight application
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/filelight@1084392 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/app/mainWindow.h')
-rw-r--r-- | src/app/mainWindow.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/src/app/mainWindow.h b/src/app/mainWindow.h new file mode 100644 index 0000000..87001c8 --- /dev/null +++ b/src/app/mainWindow.h @@ -0,0 +1,83 @@ +/*************************************************************************** + 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 QString& ); + 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 |