You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.2 KiB
85 lines
2.2 KiB
/***************************************************************************
|
|
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 TQString& );
|
|
void slotAbortScan();
|
|
|
|
void configToolbars();
|
|
void configKeys();
|
|
|
|
void scanStarted();
|
|
void scanFailed();
|
|
void scanCompleted();
|
|
|
|
void urlAboutToChange();
|
|
|
|
protected:
|
|
virtual void saveProperties( TDEConfig * );
|
|
virtual void readProperties( TDEConfig * );
|
|
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
|