Changeset View
Changeset View
Standalone View
Standalone View
krusader/KViewer/krviewer.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 49 | public: | |||
---|---|---|---|---|---|
52 | enum Mode {Generic, Text, Hex, Lister, Default}; | 52 | enum Mode {Generic, Text, Hex, Lister, Default}; | ||
53 | 53 | | |||
54 | static void view(QUrl url, QWidget * parent = krMainWindow); | 54 | static void view(QUrl url, QWidget * parent = krMainWindow); | ||
55 | static void view(QUrl url, Mode mode, bool new_window, QWidget * parent = krMainWindow); | 55 | static void view(QUrl url, Mode mode, bool new_window, QWidget * parent = krMainWindow); | ||
56 | static void edit(QUrl url, QWidget * parent); | 56 | static void edit(QUrl url, QWidget * parent); | ||
57 | static void edit(const QUrl& url, Mode mode = Text, int new_window = -1, QWidget * parent = krMainWindow); | 57 | static void edit(const QUrl& url, Mode mode = Text, int new_window = -1, QWidget * parent = krMainWindow); | ||
58 | static void configureDeps(); | 58 | static void configureDeps(); | ||
59 | 59 | | |||
60 | virtual bool eventFilter(QObject * watched, QEvent * e) Q_DECL_OVERRIDE; | 60 | virtual bool eventFilter(QObject * watched, QEvent * e) override; | ||
61 | 61 | | |||
62 | public slots: | 62 | public slots: | ||
63 | void createGUI(KParts::Part*); | 63 | void createGUI(KParts::Part*); | ||
64 | void configureShortcuts(); | 64 | void configureShortcuts(); | ||
65 | 65 | | |||
66 | void viewGeneric(); | 66 | void viewGeneric(); | ||
67 | void viewText(); | 67 | void viewText(); | ||
68 | void viewHex(); | 68 | void viewHex(); | ||
Show All 10 Lines | |||||
79 | 79 | | |||
80 | void nextTab(); | 80 | void nextTab(); | ||
81 | void prevTab(); | 81 | void prevTab(); | ||
82 | void detachTab(); | 82 | void detachTab(); | ||
83 | 83 | | |||
84 | void checkModified(); | 84 | void checkModified(); | ||
85 | 85 | | |||
86 | protected: | 86 | protected: | ||
87 | virtual bool queryClose() Q_DECL_OVERRIDE; | 87 | virtual bool queryClose() override; | ||
88 | virtual void changeEvent(QEvent *e) Q_DECL_OVERRIDE; | 88 | virtual void changeEvent(QEvent *e) override; | ||
89 | virtual void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE; | 89 | virtual void resizeEvent(QResizeEvent *e) override; | ||
90 | virtual void focusInEvent(QFocusEvent *) Q_DECL_OVERRIDE { | 90 | virtual void focusInEvent(QFocusEvent *) override { | ||
91 | if (viewers.removeAll(this)) viewers.prepend(this); | 91 | if (viewers.removeAll(this)) viewers.prepend(this); | ||
92 | } // move to first | 92 | } // move to first | ||
93 | 93 | | |||
94 | 94 | | |||
95 | private slots: | 95 | private slots: | ||
96 | void openUrlFinished(PanelViewerBase *pvb, bool success); | 96 | void openUrlFinished(PanelViewerBase *pvb, bool success); | ||
97 | 97 | | |||
98 | private: | 98 | private: | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |