summaryrefslogtreecommitdiffstats
path: root/kfind/kfwin.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kfind/kfwin.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfind/kfwin.h')
-rw-r--r--kfind/kfwin.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/kfind/kfwin.h b/kfind/kfwin.h
new file mode 100644
index 000000000..0d55c8f6a
--- /dev/null
+++ b/kfind/kfwin.h
@@ -0,0 +1,75 @@
+/***********************************************************************
+ *
+ * Kfwin.h
+ *
+ ***********************************************************************/
+
+#ifndef KFWIN_H
+#define KFWIN_H
+
+#include <klistview.h>
+#include <kfileitem.h>
+#include <kurl.h>
+
+class KfArchiver;
+class QPixmap;
+class QFileInfo;
+class KPopupMenu;
+class KfindWindow;
+
+class KfFileLVI : public QListViewItem
+{
+ public:
+ KfFileLVI(KfindWindow* lv, const KFileItem &item,const QString& matchingLine);
+ ~KfFileLVI();
+
+ QString key(int column, bool) const;
+
+ QFileInfo *fileInfo;
+ KFileItem fileitem;
+};
+
+class KfindWindow: public KListView
+{
+ Q_OBJECT
+public:
+ KfindWindow( QWidget * parent = 0, const char * name = 0 );
+
+ void beginSearch(const KURL& baseUrl);
+ void endSearch();
+
+ void insertItem(const KFileItem &item, const QString& matchingLine);
+
+ QString reducedDir(const QString& fullDir);
+
+public slots:
+ void copySelection();
+ void slotContextMenu(KListView *,QListViewItem *item,const QPoint&p);
+
+private slots:
+ void deleteFiles();
+ void fileProperties();
+ void openFolder();
+ void saveResults();
+ void openBinding();
+ void selectionHasChanged();
+ void slotExecute(QListViewItem*);
+ void slotOpenWith();
+
+protected:
+ virtual void resizeEvent(QResizeEvent *e);
+
+ virtual QDragObject *dragObject();
+
+signals:
+ void resultSelected(bool);
+
+private:
+ QString m_baseDir;
+ KPopupMenu *m_menu;
+ bool haveSelection;
+ bool m_pressed;
+ void resetColumns(bool init);
+};
+
+#endif