forked from qt-creator/qt-creator
vcs: s/VCS/Vcs/
According to style guide. Change-Id: I05c1d4f50ddbf2876ab7e0835f4abec95fd573b2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com>
This commit is contained in:
@@ -40,17 +40,17 @@
|
||||
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
namespace VCSBase {
|
||||
namespace VcsBase {
|
||||
namespace Internal {
|
||||
class BaseVCSEditorFactoryPrivate;
|
||||
class BaseVcsEditorFactoryPrivate;
|
||||
} // namespace Internal
|
||||
|
||||
class VCSBASE_EXPORT BaseVCSEditorFactory : public Core::IEditorFactory
|
||||
class VCSBASE_EXPORT BaseVcsEditorFactory : public Core::IEditorFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit BaseVCSEditorFactory(const VCSBaseEditorParameters *type);
|
||||
~BaseVCSEditorFactory();
|
||||
explicit BaseVcsEditorFactory(const VcsBaseEditorParameters *type);
|
||||
~BaseVcsEditorFactory();
|
||||
|
||||
QStringList mimeTypes() const;
|
||||
// IEditorFactory
|
||||
@@ -63,44 +63,44 @@ public:
|
||||
|
||||
private:
|
||||
// Implement to create and initialize (call init()) a
|
||||
// VCSBaseEditor subclass
|
||||
virtual VCSBaseEditorWidget *createVCSBaseEditor(const VCSBaseEditorParameters *type,
|
||||
// VcsBaseEditor subclass
|
||||
virtual VcsBaseEditorWidget *createVcsBaseEditor(const VcsBaseEditorParameters *type,
|
||||
QWidget *parent) = 0;
|
||||
|
||||
Internal::BaseVCSEditorFactoryPrivate *const d;
|
||||
Internal::BaseVcsEditorFactoryPrivate *const d;
|
||||
};
|
||||
|
||||
// Utility template to create an editor.
|
||||
template <class Editor>
|
||||
class VCSEditorFactory : public BaseVCSEditorFactory
|
||||
class VcsEditorFactory : public BaseVcsEditorFactory
|
||||
{
|
||||
public:
|
||||
explicit VCSEditorFactory(const VCSBaseEditorParameters *type,
|
||||
explicit VcsEditorFactory(const VcsBaseEditorParameters *type,
|
||||
QObject *describeReceiver = 0,
|
||||
const char *describeSlot = 0);
|
||||
|
||||
private:
|
||||
VCSBaseEditorWidget *createVCSBaseEditor(const VCSBaseEditorParameters *type,
|
||||
VcsBaseEditorWidget *createVcsBaseEditor(const VcsBaseEditorParameters *type,
|
||||
QWidget *parent);
|
||||
QObject *m_describeReceiver;
|
||||
const char *m_describeSlot;
|
||||
};
|
||||
|
||||
template <class Editor>
|
||||
VCSEditorFactory<Editor>::VCSEditorFactory(const VCSBaseEditorParameters *type,
|
||||
VcsEditorFactory<Editor>::VcsEditorFactory(const VcsBaseEditorParameters *type,
|
||||
QObject *describeReceiver,
|
||||
const char *describeSlot) :
|
||||
BaseVCSEditorFactory(type),
|
||||
BaseVcsEditorFactory(type),
|
||||
m_describeReceiver(describeReceiver),
|
||||
m_describeSlot(describeSlot)
|
||||
{
|
||||
}
|
||||
|
||||
template <class Editor>
|
||||
VCSBaseEditorWidget *VCSEditorFactory<Editor>::createVCSBaseEditor(const VCSBaseEditorParameters *type,
|
||||
VcsBaseEditorWidget *VcsEditorFactory<Editor>::createVcsBaseEditor(const VcsBaseEditorParameters *type,
|
||||
QWidget *parent)
|
||||
{
|
||||
VCSBaseEditorWidget *rc = new Editor(type, parent);
|
||||
VcsBaseEditorWidget *rc = new Editor(type, parent);
|
||||
rc->init();
|
||||
if (m_describeReceiver)
|
||||
connect(rc, SIGNAL(describeRequested(QString,QString)), m_describeReceiver, m_describeSlot);
|
||||
@@ -108,7 +108,7 @@ VCSBaseEditorWidget *VCSEditorFactory<Editor>::createVCSBaseEditor(const VCSBase
|
||||
|
||||
}
|
||||
|
||||
} // namespace VCSBase
|
||||
} // namespace VcsBase
|
||||
|
||||
#endif // BASEVCSEDITORFACTORY_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user