Changeset View
Changeset View
Standalone View
Standalone View
krusader/krusader.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
73 | 73 | | |||
74 | public: | 74 | public: | ||
75 | explicit Krusader(const QCommandLineParser &parser); | 75 | explicit Krusader(const QCommandLineParser &parser); | ||
76 | ~Krusader() override; | 76 | ~Krusader() override; | ||
77 | 77 | | |||
78 | void setTray(bool forceCreation = false); | 78 | void setTray(bool forceCreation = false); | ||
79 | 79 | | |||
80 | // KrMainWindow implementation | 80 | // KrMainWindow implementation | ||
81 | QWidget *widget() Q_DECL_OVERRIDE { | 81 | QWidget *widget() override { | ||
82 | return this; | 82 | return this; | ||
83 | } | 83 | } | ||
84 | KrView *activeView() Q_DECL_OVERRIDE; | 84 | KrView *activeView() override; | ||
85 | ViewActions *viewActions() Q_DECL_OVERRIDE { | 85 | ViewActions *viewActions() override { | ||
86 | return _viewActions; | 86 | return _viewActions; | ||
87 | } | 87 | } | ||
88 | KActionCollection *actions() Q_DECL_OVERRIDE { | 88 | KActionCollection *actions() override { | ||
89 | return actionCollection(); | 89 | return actionCollection(); | ||
90 | } | 90 | } | ||
91 | AbstractPanelManager *activeManager() Q_DECL_OVERRIDE; | 91 | AbstractPanelManager *activeManager() override; | ||
92 | AbstractPanelManager *leftManager() Q_DECL_OVERRIDE; | 92 | AbstractPanelManager *leftManager() override; | ||
93 | AbstractPanelManager *rightManager() Q_DECL_OVERRIDE; | 93 | AbstractPanelManager *rightManager() override; | ||
94 | PopularUrls *popularUrls() Q_DECL_OVERRIDE { | 94 | PopularUrls *popularUrls() override { | ||
95 | return _popularUrls; | 95 | return _popularUrls; | ||
96 | } | 96 | } | ||
97 | KrActions *krActions() Q_DECL_OVERRIDE { | 97 | KrActions *krActions() override { | ||
98 | return _krActions; | 98 | return _krActions; | ||
99 | } | 99 | } | ||
100 | ListPanelActions *listPanelActions() Q_DECL_OVERRIDE { | 100 | ListPanelActions *listPanelActions() override { | ||
101 | return _listPanelActions; | 101 | return _listPanelActions; | ||
102 | } | 102 | } | ||
103 | TabActions *tabActions() Q_DECL_OVERRIDE { | 103 | TabActions *tabActions() override { | ||
104 | return _tabActions; | 104 | return _tabActions; | ||
105 | } | 105 | } | ||
106 | void plugActionList(const char *name, QList<QAction*> &list) Q_DECL_OVERRIDE { | 106 | void plugActionList(const char *name, QList<QAction*> &list) override { | ||
107 | KParts::MainWindow::plugActionList(name, list); | 107 | KParts::MainWindow::plugActionList(name, list); | ||
108 | } | 108 | } | ||
109 | 109 | | |||
110 | /** | 110 | /** | ||
111 | * Icon name that depends on whether krusader runs with root-privileges or not | 111 | * Icon name that depends on whether krusader runs with root-privileges or not | ||
112 | * | 112 | * | ||
113 | * @return icon name | 113 | * @return icon name | ||
114 | */ | 114 | */ | ||
Show All 9 Lines | 117 | public slots: | |||
124 | void updateUserActions(); | 124 | void updateUserActions(); | ||
125 | 125 | | |||
126 | protected slots: | 126 | protected slots: | ||
127 | void doOpenUrl(); | 127 | void doOpenUrl(); | ||
128 | void slotGotNewStartup(const KStartupInfoId &id, const KStartupInfoData &data); | 128 | void slotGotNewStartup(const KStartupInfoId &id, const KStartupInfoData &data); | ||
129 | void slotGotRemoveStartup(const KStartupInfoId &id, const KStartupInfoData &data); | 129 | void slotGotRemoveStartup(const KStartupInfoId &id, const KStartupInfoData &data); | ||
130 | 130 | | |||
131 | protected: | 131 | protected: | ||
132 | void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE; | 132 | void closeEvent(QCloseEvent *event) override; | ||
133 | void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; | 133 | void showEvent(QShowEvent *event) override; | ||
134 | bool queryClose() Q_DECL_OVERRIDE; | 134 | bool queryClose() override; | ||
135 | void setupActions(); | 135 | void setupActions(); | ||
136 | bool versionControl(); // handle version differences in krusaderrc | 136 | bool versionControl(); // handle version differences in krusaderrc | ||
137 | bool event(QEvent *) Q_DECL_OVERRIDE; | 137 | bool event(QEvent *) override; | ||
138 | 138 | | |||
139 | public Q_SLOTS: | 139 | public Q_SLOTS: | ||
140 | Q_SCRIPTABLE bool isRunning(); | 140 | Q_SCRIPTABLE bool isRunning(); | ||
141 | Q_SCRIPTABLE bool isLeftActive(); | 141 | Q_SCRIPTABLE bool isLeftActive(); | ||
142 | Q_SCRIPTABLE bool openUrl(QString url); | 142 | Q_SCRIPTABLE bool openUrl(QString url); | ||
143 | 143 | | |||
144 | public: | 144 | public: | ||
145 | static Krusader *App; // a kApp style pointer | 145 | static Krusader *App; // a kApp style pointer | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |