summaryrefslogtreecommitdiffstats
path: root/src/app/mainWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/mainWindow.h')
-rw-r--r--src/app/mainWindow.h83
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 : mh9193@bris.ac.uk
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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