Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/panelfunc.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 48 | public slots: | |||
---|---|---|---|---|---|
60 | void home(); | 60 | void home(); | ||
61 | void root(); | 61 | void root(); | ||
62 | void cdToOtherPanel(); | 62 | void cdToOtherPanel(); | ||
63 | void FTPDisconnect(); | 63 | void FTPDisconnect(); | ||
64 | void newFTPconnection(); | 64 | void newFTPconnection(); | ||
65 | void terminal(); | 65 | void terminal(); | ||
66 | void view(); | 66 | void view(); | ||
67 | void viewDlg(); | 67 | void viewDlg(); | ||
68 | void edit(); | 68 | void editFile(const QUrl &fileToCreate = QUrl()); | ||
69 | void editNew(); // create a new textfile and edit it | 69 | /** Create a new textfile and edit it. */ | ||
70 | void editNewFile(); | ||||
70 | void moveFilesDelayed() { moveFiles(true); } | 71 | void moveFilesDelayed() { moveFiles(true); } | ||
71 | void copyFilesDelayed() { copyFiles(true); } | 72 | void copyFilesDelayed() { copyFiles(true); } | ||
72 | void moveFiles(bool enqueue = false) { copyFiles(enqueue, true); } | 73 | void moveFiles(bool enqueue = false) { copyFiles(enqueue, true); } | ||
73 | void copyFiles(bool enqueue = false, bool move = false); | 74 | void copyFiles(bool enqueue = false, bool move = false); | ||
74 | 75 | | |||
75 | /*! | 76 | /*! | ||
76 | * asks the user the new directory name | 77 | * asks the user the new directory name | ||
77 | */ | 78 | */ | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 107 | public: | |||
125 | 126 | | |||
126 | /** Ask user for confirmation before deleting files. Returns only confirmed files.*/ | 127 | /** Ask user for confirmation before deleting files. Returns only confirmed files.*/ | ||
127 | static QList<QUrl> confirmDeletion(const QList<QUrl> &urls, bool moveToTrash, | 128 | static QList<QUrl> confirmDeletion(const QList<QUrl> &urls, bool moveToTrash, | ||
128 | bool virtualFS, bool showPath); | 129 | bool virtualFS, bool showPath); | ||
129 | 130 | | |||
130 | protected slots: | 131 | protected slots: | ||
131 | // Load the current url from history and refresh filesystem and panel to it | 132 | // Load the current url from history and refresh filesystem and panel to it | ||
132 | void doRefresh(); | 133 | void doRefresh(); | ||
133 | void slotFileCreated(KJob *job); // a file has been created by editNewFile() | 134 | void slotFileCreated(KJob *job, const QUrl filePath); // a file has been created by editNewFile() | ||
134 | void historyGotoPos(int pos); | 135 | void historyGotoPos(int pos); | ||
135 | void clipboardChanged(QClipboard::Mode mode); | 136 | void clipboardChanged(QClipboard::Mode mode); | ||
136 | // Update the directory size in view | 137 | // Update the directory size in view | ||
137 | void slotSizeCalculated(const QUrl &url, KIO::filesize_t size); | 138 | void slotSizeCalculated(const QUrl &url, KIO::filesize_t size); | ||
138 | 139 | | |||
139 | protected: | 140 | protected: | ||
140 | QUrl cleanPath(const QUrl &url); | 141 | QUrl cleanPath(const QUrl &url); | ||
141 | bool isSyncing(const QUrl &url); | 142 | bool isSyncing(const QUrl &url); | ||
142 | // when externallyExecutable == true, the file can be executed or opened with other software | 143 | // when externallyExecutable == true, the file can be executed or opened with other software | ||
143 | void openFileNameInternal(const QString &name, bool externallyExecutable); | 144 | void openFileNameInternal(const QString &name, bool externallyExecutable); | ||
144 | void immediateOpenUrl(const QUrl &url); | 145 | void immediateOpenUrl(const QUrl &url); | ||
145 | void openUrlInternal(const QUrl &url, const QString& makeCurrent, | 146 | void openUrlInternal(const QUrl &url, const QString& makeCurrent, | ||
146 | bool immediately, bool manuallyEntered); | 147 | bool immediately, bool manuallyEntered); | ||
147 | void runCommand(const QString& cmd); | 148 | void runCommand(const QString& cmd); | ||
148 | 149 | | |||
149 | ListPanel* panel; // our ListPanel | 150 | ListPanel* panel; // our ListPanel | ||
150 | DirHistoryQueue* history; | 151 | DirHistoryQueue* history; | ||
151 | FileSystem* fileSystemP; // pointer to fileSystem. | 152 | FileSystem* fileSystemP; // pointer to fileSystem. | ||
152 | QTimer delayTimer; | 153 | QTimer delayTimer; | ||
153 | QUrl syncURL; | 154 | QUrl syncURL; | ||
154 | QUrl fileToCreate; // file that's to be created by editNewFile() | | |||
155 | bool urlManuallyEntered; | 155 | bool urlManuallyEntered; | ||
156 | 156 | | |||
157 | static QPointer<ListPanelFunc> copyToClipboardOrigin; | 157 | static QPointer<ListPanelFunc> copyToClipboardOrigin; | ||
158 | 158 | | |||
159 | private: | 159 | private: | ||
160 | void defaultOrAlternativeDeleteFiles(bool invert); | 160 | void defaultOrAlternativeDeleteFiles(bool invert); | ||
161 | bool getSelectedFiles(QStringList& args); | 161 | bool getSelectedFiles(QStringList& args); | ||
162 | SizeCalculator *createAndConnectSizeCalculator(const QList<QUrl> &urls); | 162 | SizeCalculator *createAndConnectSizeCalculator(const QList<QUrl> &urls); | ||
163 | bool _isPaused; // do not refresh while panel is not visible | 163 | bool _isPaused; // do not refresh while panel is not visible | ||
164 | bool _refreshAfterPaused; // refresh after not paused anymore | 164 | bool _refreshAfterPaused; // refresh after not paused anymore | ||
165 | QPointer<SizeCalculator> _quickSizeCalculator; | 165 | QPointer<SizeCalculator> _quickSizeCalculator; | ||
166 | }; | 166 | }; | ||
167 | 167 | | |||
168 | #endif | 168 | #endif |