Changeset View
Changeset View
Standalone View
Standalone View
krusader/KViewer/lister.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 58 | public: | |||
---|---|---|---|---|---|
86 | void deleteAnchor() { | 86 | void deleteAnchor() { | ||
87 | _cursorAnchorPos = -1; | 87 | _cursorAnchorPos = -1; | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | void setAnchorAndCursor(const qint64 anchor, const qint64 cursor); | 90 | void setAnchorAndCursor(const qint64 anchor, const qint64 cursor); | ||
91 | void sizeChanged(); | 91 | void sizeChanged(); | ||
92 | 92 | | |||
93 | protected: | 93 | protected: | ||
94 | void resizeEvent(QResizeEvent * event) Q_DECL_OVERRIDE; | 94 | void resizeEvent(QResizeEvent * event) override; | ||
95 | void keyPressEvent(QKeyEvent * e) Q_DECL_OVERRIDE; | 95 | void keyPressEvent(QKeyEvent * e) override; | ||
96 | void mousePressEvent(QMouseEvent * e) Q_DECL_OVERRIDE; | 96 | void mousePressEvent(QMouseEvent * e) override; | ||
97 | void mouseDoubleClickEvent(QMouseEvent * e) Q_DECL_OVERRIDE; | 97 | void mouseDoubleClickEvent(QMouseEvent * e) override; | ||
98 | void mouseMoveEvent(QMouseEvent * e) Q_DECL_OVERRIDE; | 98 | void mouseMoveEvent(QMouseEvent * e) override; | ||
99 | void wheelEvent(QWheelEvent * event) Q_DECL_OVERRIDE; | 99 | void wheelEvent(QWheelEvent * event) override; | ||
100 | 100 | | |||
101 | QStringList readLines(const qint64 filePos, qint64 &endPos, const int lines, QList<qint64> * locs = nullptr); | 101 | QStringList readLines(const qint64 filePos, qint64 &endPos, const int lines, QList<qint64> * locs = nullptr); | ||
102 | QString readSection(qint64 p1, qint64 p2); | 102 | QString readSection(qint64 p1, qint64 p2); | ||
103 | void setUpScrollBar(); | 103 | void setUpScrollBar(); | ||
104 | void setCursorPositionOnScreen(const int x, const int y, const int anchorX = -1, const int anchorY = -1); | 104 | void setCursorPositionOnScreen(const int x, const int y, const int anchorX = -1, const int anchorY = -1); | ||
105 | void handleAnchorChange(const int oldAnchor); | 105 | void handleAnchorChange(const int oldAnchor); | ||
106 | void performAnchorChange(const int anchor); | 106 | void performAnchorChange(const int anchor); | ||
107 | void getScreenPosition(const int position, int &x, int &y); | 107 | void getScreenPosition(const int position, int &x, int &y); | ||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | |||||
169 | class ListerPane : public QWidget | 169 | class ListerPane : public QWidget | ||
170 | { | 170 | { | ||
171 | Q_OBJECT | 171 | Q_OBJECT | ||
172 | 172 | | |||
173 | public: | 173 | public: | ||
174 | ListerPane(Lister *lister, QWidget *parent); | 174 | ListerPane(Lister *lister, QWidget *parent); | ||
175 | 175 | | |||
176 | protected: | 176 | protected: | ||
177 | bool event(QEvent *event) Q_DECL_OVERRIDE; | 177 | bool event(QEvent *event) override; | ||
178 | 178 | | |||
179 | protected: | 179 | protected: | ||
180 | bool handleCloseEvent(QEvent *e); | 180 | bool handleCloseEvent(QEvent *e); | ||
181 | Lister *_lister; | 181 | Lister *_lister; | ||
182 | }; | 182 | }; | ||
183 | 183 | | |||
184 | 184 | | |||
185 | class Lister : public KParts::ReadOnlyPart | 185 | class Lister : public KParts::ReadOnlyPart | ||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 234 | protected slots: | |||
237 | void searchSucceeded(); | 237 | void searchSucceeded(); | ||
238 | void searchFailed(); | 238 | void searchFailed(); | ||
239 | void searchTextChanged(); | 239 | void searchTextChanged(); | ||
240 | 240 | | |||
241 | void slotDataSend(KIO::Job *, QByteArray &); | 241 | void slotDataSend(KIO::Job *, QByteArray &); | ||
242 | void slotSendFinished(KJob *); | 242 | void slotSendFinished(KJob *); | ||
243 | 243 | | |||
244 | protected: | 244 | protected: | ||
245 | bool openUrl(const QUrl &url) Q_DECL_OVERRIDE; | 245 | bool openUrl(const QUrl &url) override; | ||
246 | bool closeUrl() Q_DECL_OVERRIDE { | 246 | bool closeUrl() override { | ||
247 | return true; | 247 | return true; | ||
248 | } | 248 | } | ||
249 | bool openFile() Q_DECL_OVERRIDE { | 249 | bool openFile() override { | ||
250 | return true; | 250 | return true; | ||
251 | } | 251 | } | ||
252 | void guiActivateEvent(KParts::GUIActivateEvent * event) Q_DECL_OVERRIDE; | 252 | void guiActivateEvent(KParts::GUIActivateEvent * event) override; | ||
253 | void setColor(const bool match, const bool restore); | 253 | void setColor(const bool match, const bool restore); | ||
254 | void hideProgressBar(); | 254 | void hideProgressBar(); | ||
255 | void updateProgressBar(); | 255 | void updateProgressBar(); | ||
256 | void resetSearchPosition(); | 256 | void resetSearchPosition(); | ||
257 | 257 | | |||
258 | qint64 getFileSize(); | 258 | qint64 getFileSize(); | ||
259 | void search(const bool forward, const bool restart = false); | 259 | void search(const bool forward, const bool restart = false); | ||
260 | QStringList readLines(qint64 &filePos, const qint64 endPos, const int columns, const int lines); | 260 | QStringList readLines(qint64 &filePos, const qint64 endPos, const int columns, const int lines); | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |