diff options
Diffstat (limited to 'kfind/kfwin.h')
-rw-r--r-- | kfind/kfwin.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/kfind/kfwin.h b/kfind/kfwin.h new file mode 100644 index 000000000..5a019a382 --- /dev/null +++ b/kfind/kfwin.h @@ -0,0 +1,75 @@ +/*********************************************************************** + * + * Kfwin.h + * + ***********************************************************************/ + +#ifndef KFWIN_H +#define KFWIN_H + +#include <tdelistview.h> +#include <tdefileitem.h> +#include <kurl.h> + +class KfArchiver; +class TQPixmap; +class TQFileInfo; +class TDEPopupMenu; +class KfindWindow; + +class KfFileLVI : public TQListViewItem +{ + public: + KfFileLVI(KfindWindow* lv, const KFileItem &item,const TQString& matchingLine); + ~KfFileLVI(); + + TQString key(int column, bool) const; + + TQFileInfo *fileInfo; + KFileItem fileitem; +}; + +class KfindWindow: public TDEListView +{ + Q_OBJECT +public: + KfindWindow( TQWidget * parent = 0, const char * name = 0 ); + + void beginSearch(const KURL& baseUrl); + void endSearch(); + + void insertItem(const KFileItem &item, const TQString& matchingLine); + + TQString reducedDir(const TQString& fullDir); + +public slots: + void copySelection(); + void slotContextMenu(TDEListView *,TQListViewItem *item,const TQPoint&p); + +private slots: + void deleteFiles(); + void fileProperties(); + void openFolder(); + void saveResults(); + void openBinding(); + void selectionHasChanged(); + void slotExecute(TQListViewItem*); + void slotOpenWith(); + +protected: + virtual void resizeEvent(TQResizeEvent *e); + + virtual TQDragObject *dragObject(); + +signals: + void resultSelected(bool); + +private: + TQString m_baseDir; + TDEPopupMenu *m_menu; + bool haveSelection; + bool m_pressed; + void resetColumns(bool init); +}; + +#endif |