summaryrefslogtreecommitdiffstats
path: root/kfilereplace/kfilereplaceview.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
commite9ae80694875f869892f13f4fcaf1170a00dea41 (patch)
treeaa2f8d8a217e2d376224c8d46b7397b68d35de2d /kfilereplace/kfilereplaceview.h
downloadtdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz
tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.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/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfilereplace/kfilereplaceview.h')
-rw-r--r--kfilereplace/kfilereplaceview.h116
1 files changed, 116 insertions, 0 deletions
diff --git a/kfilereplace/kfilereplaceview.h b/kfilereplace/kfilereplaceview.h
new file mode 100644
index 00000000..21ac6a29
--- /dev/null
+++ b/kfilereplace/kfilereplaceview.h
@@ -0,0 +1,116 @@
+/***************************************************************************
+ kfilereplaceview.h - description
+ -------------------
+ begin : sam oct 16 15:28:00 CEST 1999
+ copyright : (C) 1999 by Fran�ois Dupoux <[email protected]>
+ (C) 2004 Emiliano Gulmini <[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 KFILEREPLACEVIEW_H
+#define KFILEREPLACEVIEW_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+//QT
+#include <qlcdnumber.h>
+#include <qwidgetstack.h>
+class QPixMap;
+
+//KDE
+class KPopupMenu;
+class KListView;
+
+//local
+#include "kfilereplaceviewwdg.h"
+#include "configurationclasses.h"
+
+class coord
+{
+ public:
+ int line,
+ column;
+ public:
+ coord(){ line = 1;
+ column = 1;}
+ coord(const coord& c) { line = c.line;
+ column = c.column;}
+ coord operator=(const coord& c) { line = c.line;
+ column = c.column;
+ return (*this);}
+};
+
+
+/**
+ * The view of KFilereplace.
+ */
+class KFileReplaceView : public KFileReplaceViewWdg
+{
+ Q_OBJECT
+ private:
+ KPopupMenu* m_menuResult;
+ RCOptions* m_option;
+ KListViewItem* m_lviCurrent;
+ KListView* m_rv,
+ * m_sv;
+
+ public://Constructors
+ KFileReplaceView(RCOptions* info, QWidget *parent,const char *name);
+
+ public:
+ QString currentPath();
+ void showSemaphore(QString s);
+ void displayScannedFiles(int filesNumber) { m_lcdFilesNumber->display(QString::number(filesNumber,10)); }
+ void stringsInvert(bool invertAll);
+ void changeView(bool searchingOnlyMode);
+ KListView* getResultsView();
+ KListView* getStringsView();
+ void updateOptions(RCOptions* info) { m_option = info; }
+ void loadMap(KeyValueMap extMap){ loadMapIntoView(extMap); }
+ KeyValueMap getStringsViewMap()const { return m_option->m_mapStringsView;}
+ void setCurrentStringsViewMap(){ setMap(); }
+ //void emitSearchingOnlyMode(bool b) { emit searchingOnlyMode(b); }
+
+ public slots:
+ void slotMouseButtonClicked (int button, QListViewItem *lvi, const QPoint &pos);
+ void slotResultProperties();
+ void slotResultOpen();
+ void slotResultOpenWith();
+ void slotResultDirOpen();
+ void slotResultEdit();
+ void slotResultDelete();
+ void slotResultTreeExpand();
+ void slotResultTreeReduce();
+ void slotStringsAdd();
+ void slotQuickStringsAdd(const QString& quickSearch, const QString& quickReplace);
+ void slotStringsDeleteItem();
+ void slotStringsEmpty();
+ void slotStringsEdit();
+ void slotStringsSave();
+
+ private:
+ void initGUI();
+ void raiseStringsView();
+ void raiseResultsView();
+ coord extractWordCoordinates(QListViewItem* lvi);
+ void expand(QListViewItem *lviCurrent, bool b);
+ void setMap();
+ void loadMapIntoView(KeyValueMap map);
+ void whatsThis();
+
+ /*signals:
+ void resetActions();
+ void searchingOnlyMode(bool);*/
+};
+
+#endif // KFILEREPLACEVIEW_H