forked from qt-creator/qt-creator
VCS: Remove unused extension parameter from editors
Change-Id: I17e73e269698af0d515f668d3c272a748cdca3bb Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
a439d12b48
commit
fd48f081c6
@@ -75,29 +75,25 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
|
||||
Constants::COMMANDLOG_ID, // id
|
||||
Constants::COMMANDLOG_DISPLAY_NAME, // display name
|
||||
Constants::COMMANDLOG, // context
|
||||
Constants::COMMANDAPP, // mime type
|
||||
Constants::COMMANDEXT}, //extension
|
||||
Constants::COMMANDAPP}, // mime type
|
||||
|
||||
{ VcsBase::LogOutput,
|
||||
Constants::FILELOG_ID,
|
||||
Constants::FILELOG_DISPLAY_NAME,
|
||||
Constants::FILELOG,
|
||||
Constants::LOGAPP,
|
||||
Constants::LOGEXT},
|
||||
Constants::LOGAPP},
|
||||
|
||||
{ VcsBase::AnnotateOutput,
|
||||
Constants::ANNOTATELOG_ID,
|
||||
Constants::ANNOTATELOG_DISPLAY_NAME,
|
||||
Constants::ANNOTATELOG,
|
||||
Constants::ANNOTATEAPP,
|
||||
Constants::ANNOTATEEXT},
|
||||
Constants::ANNOTATEAPP},
|
||||
|
||||
{ VcsBase::DiffOutput,
|
||||
Constants::DIFFLOG_ID,
|
||||
Constants::DIFFLOG_DISPLAY_NAME,
|
||||
Constants::DIFFLOG,
|
||||
Constants::DIFFAPP,
|
||||
Constants::DIFFEXT}
|
||||
Constants::DIFFAPP}
|
||||
};
|
||||
|
||||
static const VcsBase::VcsBaseSubmitEditorParameters submitEditorParameters = {
|
||||
|
@@ -50,25 +50,21 @@ const char COMMANDLOG_ID[] = "Bazaar Command Log Editor";
|
||||
const char COMMANDLOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar Command Log Editor");
|
||||
const char COMMANDLOG[] = "Bazaar Command Log Editor";
|
||||
const char COMMANDAPP[] = "application/vnd.nokia.text.scs_bazaar_commandlog";
|
||||
const char COMMANDEXT[] = "vcsBazaarCommand";
|
||||
|
||||
const char FILELOG_ID[] = "Bazaar File Log Editor";
|
||||
const char FILELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar File Log Editor");
|
||||
const char FILELOG[] = "Bazaar File Log Editor";
|
||||
const char LOGAPP[] = "application/vnd.nokia.text.scs_bazaar_log";
|
||||
const char LOGEXT[] = "vcsBazaarLog";
|
||||
|
||||
const char ANNOTATELOG_ID[] = "Bazaar Annotation Editor";
|
||||
const char ANNOTATELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar Annotation Editor");
|
||||
const char ANNOTATELOG[] = "Bazaar Annotation Editor";
|
||||
const char ANNOTATEAPP[] = "application/vnd.nokia.text.scs_bazaar_annotatelog";
|
||||
const char ANNOTATEEXT[] = "vcsBazaarAnnotate";
|
||||
|
||||
const char DIFFLOG_ID[] = "Bazaar Diff Editor";
|
||||
const char DIFFLOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar Diff Editor");
|
||||
const char DIFFLOG[] = "Bazaar Diff Editor";
|
||||
const char DIFFAPP[] = "text/x-patch";
|
||||
const char DIFFEXT[] = "diff";
|
||||
|
||||
// Submit editor parameters
|
||||
const char COMMIT_ID[] = "Bazaar Commit Log Editor";
|
||||
|
@@ -125,25 +125,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
|
||||
"ClearCase Command Log Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "ClearCase Command Log Editor"), // display name
|
||||
"ClearCase Command Log Editor", // context
|
||||
"application/vnd.audc.text.scs_cc_commandlog",
|
||||
"scslog"},
|
||||
"application/vnd.audc.text.scs_cc_commandlog"},
|
||||
{ VcsBase::LogOutput,
|
||||
"ClearCase File Log Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "ClearCase File Log Editor"), // display_name
|
||||
"ClearCase File Log Editor", // context
|
||||
"application/vnd.audc.text.scs_cc_filelog",
|
||||
"scsfilelog"},
|
||||
"application/vnd.audc.text.scs_cc_filelog"},
|
||||
{ VcsBase::AnnotateOutput,
|
||||
"ClearCase Annotation Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "ClearCase Annotation Editor"), // display_name
|
||||
"ClearCase Annotation Editor", // context
|
||||
"application/vnd.audc.text.scs_cc_annotation",
|
||||
"scsannotate"},
|
||||
"application/vnd.audc.text.scs_cc_annotation"},
|
||||
{ VcsBase::DiffOutput,
|
||||
"ClearCase Diff Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "ClearCase Diff Editor"), // display_name
|
||||
"ClearCase Diff Editor", // context
|
||||
"text/x-patch","diff"}
|
||||
"text/x-patch"}
|
||||
};
|
||||
|
||||
// Utility to find a parameter set by type
|
||||
|
@@ -120,25 +120,22 @@ static const VcsBaseEditorParameters editorParameters[] = {
|
||||
"CVS Command Log Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "CVS Command Log Editor"), // display name
|
||||
"CVS Command Log Editor", // context
|
||||
"application/vnd.nokia.text.scs_cvs_commandlog",
|
||||
"scslog"},
|
||||
"application/vnd.nokia.text.scs_cvs_commandlog"},
|
||||
{ LogOutput,
|
||||
"CVS File Log Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "CVS File Log Editor"), // display name
|
||||
"CVS File Log Editor", // context
|
||||
"application/vnd.nokia.text.scs_cvs_filelog",
|
||||
"scsfilelog"},
|
||||
"application/vnd.nokia.text.scs_cvs_filelog"},
|
||||
{ AnnotateOutput,
|
||||
"CVS Annotation Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "CVS Annotation Editor"), // display name
|
||||
"CVS Annotation Editor", // context
|
||||
"application/vnd.nokia.text.scs_cvs_annotation",
|
||||
"scsannotate"},
|
||||
"application/vnd.nokia.text.scs_cvs_annotation"},
|
||||
{ DiffOutput,
|
||||
"CVS Diff Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "CVS Diff Editor"), // display name
|
||||
"CVS Diff Editor", // context
|
||||
"text/x-patch","diff"}
|
||||
"text/x-patch"}
|
||||
};
|
||||
|
||||
// Utility to find a parameter set by type
|
||||
|
@@ -88,25 +88,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
|
||||
Git::Constants::GIT_COMMAND_LOG_EDITOR_ID,
|
||||
Git::Constants::GIT_COMMAND_LOG_EDITOR_DISPLAY_NAME,
|
||||
Git::Constants::C_GIT_COMMAND_LOG_EDITOR,
|
||||
"application/vnd.nokia.text.scs_git_commandlog",
|
||||
"gitlog"},
|
||||
"application/vnd.nokia.text.scs_git_commandlog"},
|
||||
{ VcsBase::LogOutput,
|
||||
Git::Constants::GIT_LOG_EDITOR_ID,
|
||||
Git::Constants::GIT_LOG_EDITOR_DISPLAY_NAME,
|
||||
Git::Constants::C_GIT_LOG_EDITOR,
|
||||
"application/vnd.nokia.text.scs_git_filelog",
|
||||
"gitfilelog"},
|
||||
"application/vnd.nokia.text.scs_git_filelog"},
|
||||
{ VcsBase::AnnotateOutput,
|
||||
Git::Constants::GIT_BLAME_EDITOR_ID,
|
||||
Git::Constants::GIT_BLAME_EDITOR_DISPLAY_NAME,
|
||||
Git::Constants::C_GIT_BLAME_EDITOR,
|
||||
"application/vnd.nokia.text.scs_git_annotation",
|
||||
"gitsannotate"},
|
||||
"application/vnd.nokia.text.scs_git_annotation"},
|
||||
{ VcsBase::DiffOutput,
|
||||
Git::Constants::GIT_DIFF_EDITOR_ID,
|
||||
Git::Constants::GIT_DIFF_EDITOR_DISPLAY_NAME,
|
||||
Git::Constants::C_GIT_DIFF_EDITOR,
|
||||
"text/x-patch","diff"}
|
||||
"text/x-patch"}
|
||||
};
|
||||
|
||||
// Utility to find a parameter set by type
|
||||
|
@@ -50,25 +50,21 @@ const char COMMANDLOG_ID[] = "Mercurial Command Log Editor";
|
||||
const char COMMANDLOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial Command Log Editor");
|
||||
const char COMMANDLOG[] = "Mercurial Command Log Editor";
|
||||
const char COMMANDAPP[] = "application/vnd.nokia.text.scs_mercurial_commandlog";
|
||||
const char COMMANDEXT[] = "vcsMercurialCommand";
|
||||
|
||||
const char FILELOG_ID[] = "Mercurial File Log Editor";
|
||||
const char FILELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial File Log Editor");
|
||||
const char FILELOG[] = "Mercurial File Log Editor";
|
||||
const char LOGAPP[] = "application/vnd.nokia.text.scs_mercurial_log";
|
||||
const char LOGEXT[] = "vcsMercurialLog";
|
||||
|
||||
const char ANNOTATELOG_ID[] = "Mercurial Annotation Editor";
|
||||
const char ANNOTATELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial Annotation Editor");
|
||||
const char ANNOTATELOG[] = "Mercurial Annotation Editor";
|
||||
const char ANNOTATEAPP[] = "application/vnd.nokia.text.scs_mercurial_annotatelog";
|
||||
const char ANNOTATEEXT[] = "vcsMercurialAnnotate";
|
||||
|
||||
const char DIFFLOG_ID[] = "Mercurial Diff Editor";
|
||||
const char DIFFLOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial Diff Editor");
|
||||
const char DIFFLOG[] = "Mercurial Diff Editor";
|
||||
const char DIFFAPP[] = "text/x-patch";
|
||||
const char DIFFEXT[] = "diff";
|
||||
|
||||
// Submit editor parameters
|
||||
const char COMMIT_ID[] = "Mercurial Commit Log Editor";
|
||||
|
@@ -79,29 +79,25 @@ static const VcsBaseEditorParameters editorParameters[] = {
|
||||
Constants::COMMANDLOG_ID, // id
|
||||
Constants::COMMANDLOG_DISPLAY_NAME, // display name
|
||||
Constants::COMMANDLOG, // context
|
||||
Constants::COMMANDAPP, // mime type
|
||||
Constants::COMMANDEXT}, //extension
|
||||
Constants::COMMANDAPP}, // mime type
|
||||
|
||||
{ LogOutput,
|
||||
Constants::FILELOG_ID,
|
||||
Constants::FILELOG_DISPLAY_NAME,
|
||||
Constants::FILELOG,
|
||||
Constants::LOGAPP,
|
||||
Constants::LOGEXT},
|
||||
Constants::LOGAPP},
|
||||
|
||||
{ AnnotateOutput,
|
||||
Constants::ANNOTATELOG_ID,
|
||||
Constants::ANNOTATELOG_DISPLAY_NAME,
|
||||
Constants::ANNOTATELOG,
|
||||
Constants::ANNOTATEAPP,
|
||||
Constants::ANNOTATEEXT},
|
||||
Constants::ANNOTATEAPP},
|
||||
|
||||
{ DiffOutput,
|
||||
Constants::DIFFLOG_ID,
|
||||
Constants::DIFFLOG_DISPLAY_NAME,
|
||||
Constants::DIFFLOG,
|
||||
Constants::DIFFAPP,
|
||||
Constants::DIFFEXT}
|
||||
Constants::DIFFAPP}
|
||||
};
|
||||
|
||||
static const VcsBaseSubmitEditorParameters submitEditorParameters = {
|
||||
|
@@ -78,25 +78,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
|
||||
Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_ID,
|
||||
Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_DISPLAY_NAME,
|
||||
Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_CONTEXT,
|
||||
"application/vnd.nokia.text.scs_commandlog",
|
||||
"scslog"},
|
||||
"application/vnd.nokia.text.scs_commandlog"},
|
||||
{ VcsBase::LogOutput,
|
||||
Perforce::Constants::PERFORCE_LOG_EDITOR_ID,
|
||||
Perforce::Constants::PERFORCE_LOG_EDITOR_DISPLAY_NAME,
|
||||
Perforce::Constants::PERFORCE_LOG_EDITOR_CONTEXT,
|
||||
"application/vnd.nokia.text.scs_filelog",
|
||||
"scsfilelog"},
|
||||
"application/vnd.nokia.text.scs_filelog"},
|
||||
{ VcsBase::AnnotateOutput,
|
||||
Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_ID,
|
||||
Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_DISPLAY_NAME,
|
||||
Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_CONTEXT,
|
||||
"application/vnd.nokia.text.scs_annotation",
|
||||
"scsannotate"},
|
||||
"application/vnd.nokia.text.scs_annotation"},
|
||||
{ VcsBase::DiffOutput,
|
||||
Perforce::Constants::PERFORCE_DIFF_EDITOR_ID,
|
||||
Perforce::Constants::PERFORCE_DIFF_EDITOR_DISPLAY_NAME,
|
||||
Perforce::Constants::PERFORCE_DIFF_EDITOR_CONTEXT,
|
||||
"text/x-patch","diff"}
|
||||
"text/x-patch"}
|
||||
};
|
||||
|
||||
// Utility to find a parameter set by type
|
||||
|
@@ -116,25 +116,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
|
||||
"Subversion Command Log Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "Subversion Command Log Editor"), // display name
|
||||
"Subversion Command Log Editor", // context
|
||||
"application/vnd.nokia.text.scs_svn_commandlog",
|
||||
"scslog"},
|
||||
"application/vnd.nokia.text.scs_svn_commandlog"},
|
||||
{ VcsBase::LogOutput,
|
||||
"Subversion File Log Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "Subversion File Log Editor"), // display_name
|
||||
"Subversion File Log Editor", // context
|
||||
"application/vnd.nokia.text.scs_svn_filelog",
|
||||
"scsfilelog"},
|
||||
"application/vnd.nokia.text.scs_svn_filelog"},
|
||||
{ VcsBase::AnnotateOutput,
|
||||
"Subversion Annotation Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "Subversion Annotation Editor"), // display_name
|
||||
"Subversion Annotation Editor", // context
|
||||
"application/vnd.nokia.text.scs_svn_annotation",
|
||||
"scsannotate"},
|
||||
"application/vnd.nokia.text.scs_svn_annotation"},
|
||||
{ VcsBase::DiffOutput,
|
||||
"Subversion Diff Editor", // id
|
||||
QT_TRANSLATE_NOOP("VCS", "Subversion Diff Editor"), // display_name
|
||||
"Subversion Diff Editor", // context
|
||||
"text/x-patch","diff"}
|
||||
"text/x-patch"}
|
||||
};
|
||||
|
||||
// Utility to find a parameter set by type
|
||||
|
@@ -72,7 +72,6 @@ public:
|
||||
const char *displayName;
|
||||
const char *context;
|
||||
const char *mimeType;
|
||||
const char *extension;
|
||||
};
|
||||
|
||||
class VCSBASE_EXPORT DiffChunk
|
||||
|
Reference in New Issue
Block a user