Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/listpanel.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 81 | enum TabState { | |||
---|---|---|---|---|---|
84 | // locked tab with changeable address | 84 | // locked tab with changeable address | ||
85 | PINNED | 85 | PINNED | ||
86 | }; | 86 | }; | ||
87 | 87 | | |||
88 | // constructor create the panel, but DOESN'T fill it with data, use start() | 88 | // constructor create the panel, but DOESN'T fill it with data, use start() | ||
89 | ListPanel(QWidget *parent, AbstractPanelManager *manager, const KConfigGroup& cfg = KConfigGroup()); | 89 | ListPanel(QWidget *parent, AbstractPanelManager *manager, const KConfigGroup& cfg = KConfigGroup()); | ||
90 | ~ListPanel() override; | 90 | ~ListPanel() override; | ||
91 | 91 | | |||
92 | void otherPanelChanged() Q_DECL_OVERRIDE; | 92 | void otherPanelChanged() override; | ||
93 | 93 | | |||
94 | void start(const QUrl &url = QUrl()); | 94 | void start(const QUrl &url = QUrl()); | ||
95 | 95 | | |||
96 | void reparent(QWidget *parent, AbstractPanelManager *manager); | 96 | void reparent(QWidget *parent, AbstractPanelManager *manager); | ||
97 | 97 | | |||
98 | int getType() { | 98 | int getType() { | ||
99 | return panelType; | 99 | return panelType; | ||
100 | } | 100 | } | ||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 132 | public slots: | |||
159 | void setJumpBack() { | 159 | void setJumpBack() { | ||
160 | setJumpBack(virtualPath()); | 160 | setJumpBack(virtualPath()); | ||
161 | } | 161 | } | ||
162 | 162 | | |||
163 | ///////////////////////// service functions - called internally //////////////////////// | 163 | ///////////////////////// service functions - called internally //////////////////////// | ||
164 | void prepareToDelete(); // internal use only | 164 | void prepareToDelete(); // internal use only | ||
165 | 165 | | |||
166 | protected: | 166 | protected: | ||
167 | void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE; | 167 | void keyPressEvent(QKeyEvent *e) override; | ||
168 | void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE { | 168 | void mousePressEvent(QMouseEvent*) override { | ||
169 | slotFocusOnMe(); | 169 | slotFocusOnMe(); | ||
170 | } | 170 | } | ||
171 | void showEvent(QShowEvent *) Q_DECL_OVERRIDE; | 171 | void showEvent(QShowEvent *) override; | ||
172 | void hideEvent(QHideEvent *) Q_DECL_OVERRIDE; | 172 | void hideEvent(QHideEvent *) override; | ||
173 | bool eventFilter(QObject * watched, QEvent * e) Q_DECL_OVERRIDE; | 173 | bool eventFilter(QObject * watched, QEvent * e) override; | ||
174 | 174 | | |||
175 | void showButtonMenu(QToolButton *b); | 175 | void showButtonMenu(QToolButton *b); | ||
176 | void createView(); | 176 | void createView(); | ||
177 | void updateButtons(); | 177 | void updateButtons(); | ||
178 | 178 | | |||
179 | static int defaultPanelType(); | 179 | static int defaultPanelType(); | ||
180 | static bool isNavigatorEditModeSet(); // return the navigator edit mode setting | 180 | static bool isNavigatorEditModeSet(); // return the navigator edit mode setting | ||
181 | 181 | | |||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |