summaryrefslogtreecommitdiffstats
path: root/tdeui/tdelistviewlineedit.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2013-11-06 19:48:25 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-11-06 19:51:41 +0100
commit6bf8e926c7ec585e83451444fa81fd1cec1d2a6b (patch)
treeb4898b78519b17970b191607a3682f9aeb21f272 /tdeui/tdelistviewlineedit.h
parent645993e7d8ffafbd9d4d0d70cc53f04cfd0c6c3a (diff)
downloadtdelibs-6bf8e926c7ec585e83451444fa81fd1cec1d2a6b.tar.gz
tdelibs-6bf8e926c7ec585e83451444fa81fd1cec1d2a6b.zip
Enhance renaming in Konqueror listview
This relates to Bug 1677
Diffstat (limited to 'tdeui/tdelistviewlineedit.h')
-rw-r--r--tdeui/tdelistviewlineedit.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/tdeui/tdelistviewlineedit.h b/tdeui/tdelistviewlineedit.h
index 00b898f9f..0a87394ab 100644
--- a/tdeui/tdelistviewlineedit.h
+++ b/tdeui/tdelistviewlineedit.h
@@ -15,6 +15,7 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
+
#ifndef TDELISTVIEWLINEEDIT_H
#define TDELISTVIEWLINEEDIT_H
@@ -33,9 +34,36 @@ public:
~TDEListViewLineEdit();
TQListViewItem *currentItem() const;
+ void setRenameSettings(const TDEListViewRenameSettings &renSett) { m_renSett = renSett; };
signals:
void done(TQListViewItem*, int);
+
+ /**
+ * This signal is emitted when item renaming is completed by a TAB.
+ * It signals the receiver that the sender would like to start renaming the next item.
+ * This is not hardcoded in TDEListView because the next item is application depended
+ * (for example it could be the next column or the next row or something completely different)
+ *
+ * @param item is the renamed item.
+ * @param col is the renamed column.
+ *
+ * @since 14.0
+ */
+ void renameNext(TQListViewItem* item, int col);
+
+ /**
+ * This signal is emitted when item renaming is completed by a Shift+TAB.
+ * It signals the receiver that the sender would like to start renaming the previous item.
+ * This is not hardcoded in TDEListView because the next item is application depended
+ * (for example it could be the next column or the next row or something completely different)
+ *
+ * @param item is the renamed item.
+ * @param col is the renamed column.
+ *
+ * @since 14.0
+ */
+ void renamePrev(TQListViewItem* item, int col);
public slots:
void terminate();
@@ -53,6 +81,7 @@ protected:
TQListViewItem *item;
int col;
TDEListView* const p;
+ TDEListViewRenameSettings m_renSett;
protected slots:
void slotSelectionChanged();