From d1837c9c92c9f38a464f0473001db4e9a57d44e7 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 28 Nov 2010 11:58:57 +0100 Subject: Added action to copy file path to clipboard 4 new actions to copy the file path to clipboard. It's either the unix full path, the unix dir, the windows full path or the windows dir. For the latter '/' is replaced with '\' and a drive letter is prepended. The drive letter is configurable in the ConfigurationDialog. While at it I revamped it and added another tab to make it more user friendly. --- archivetreeview.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archivetreeview.h') diff --git a/archivetreeview.h b/archivetreeview.h index a9d2266..7b0cd47 100644 --- a/archivetreeview.h +++ b/archivetreeview.h @@ -34,6 +34,7 @@ class ArchiveTreeView : public QWidget { Q_OBJECT public: + enum CopyType { WindowsDir, WindowsFullPath, UnixDir, UnixFullPath }; explicit ArchiveTreeView(QWidget *parent = 0); SeriesTreeWidget *seriesWidget() { return mSeriesWidget; } FilesTreeWidget *filesWidget() { return mFilesWidget; } @@ -47,6 +48,7 @@ class ArchiveTreeView : public QWidget void cleanDatabase(const QString &table); void showNoCoverDialog(); void selectMovie(const QModelIndex &idx); + void copyPath(int type); private slots: void currentChanged(const QItemSelection &selected, const QItemSelection &deselected); @@ -56,6 +58,7 @@ class ArchiveTreeView : public QWidget private: //functions void constructWindowTitle(); + const QString createWindowsPath(const QString &path) const; //widgets SeriesTreeWidget *mSeriesWidget; -- cgit v1.2.3-70-g09d2