Changeset View
Changeset View
Standalone View
Standalone View
kdevuploadplugin.cpp
Context not available. | |||||
30 | #include <interfaces/iplugincontroller.h> | 30 | #include <interfaces/iplugincontroller.h> | ||
---|---|---|---|---|---|
31 | #include <interfaces/context.h> | 31 | #include <interfaces/context.h> | ||
32 | #include <interfaces/contextmenuextension.h> | 32 | #include <interfaces/contextmenuextension.h> | ||
33 | #include <project/projectconfigpage.h> | ||||
33 | #include <project/projectmodel.h> | 34 | #include <project/projectmodel.h> | ||
34 | #include <outputview/ioutputview.h> | 35 | #include <outputview/ioutputview.h> | ||
35 | #include <serialization/indexedstring.h> | 36 | #include <serialization/indexedstring.h> | ||
Context not available. | |||||
40 | #include "uploadprojectmodel.h" | 41 | #include "uploadprojectmodel.h" | ||
41 | #include "uploadprofilemodel.h" | 42 | #include "uploadprofilemodel.h" | ||
42 | #include "uploadprofileitem.h" | 43 | #include "uploadprofileitem.h" | ||
44 | #include "uploadpreferences.h" | ||||
43 | #include "allprofilesmodel.h" | 45 | #include "allprofilesmodel.h" | ||
44 | #include <interfaces/idocumentcontroller.h> | 46 | #include <interfaces/idocumentcontroller.h> | ||
45 | 47 | | |||
Context not available. | |||||
193 | } | 195 | } | ||
194 | } | 196 | } | ||
195 | 197 | | |||
196 | void UploadPlugin::unload() | | |||
197 | { | | |||
198 | } | | |||
199 | | ||||
200 | KDevelop::ContextMenuExtension UploadPlugin::contextMenuExtension(KDevelop::Context* context, QWidget* parent) | 198 | KDevelop::ContextMenuExtension UploadPlugin::contextMenuExtension(KDevelop::Context* context, QWidget* parent) | ||
201 | { | 199 | { | ||
202 | if (context->type() == KDevelop::Context::ProjectItemContext) { | 200 | if (context->type() == KDevelop::Context::ProjectItemContext) { | ||
Context not available. | |||||
232 | return KDevelop::IPlugin::contextMenuExtension(context, parent); | 230 | return KDevelop::IPlugin::contextMenuExtension(context, parent); | ||
233 | } | 231 | } | ||
234 | 232 | | |||
233 | int UploadPlugin::perProjectConfigPages() const | ||||
234 | { | ||||
235 | return 1; | ||||
236 | } | ||||
237 | | ||||
238 | | ||||
239 | KDevelop::ConfigPage* UploadPlugin::perProjectConfigPage(int number, const KDevelop::ProjectConfigOptions& options, QWidget* parent) | ||||
240 | { | ||||
241 | return number == 0 ? new UploadPreferences(this, options, parent) : nullptr; | ||||
242 | } | ||||
243 | | ||||
235 | void UploadPlugin::upload() | 244 | void UploadPlugin::upload() | ||
236 | { | 245 | { | ||
237 | if (m_ctxUrlList.isEmpty()) return; | 246 | if (m_ctxUrlList.isEmpty()) return; | ||
Context not available. |