Commit fd48f081 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

VCS: Remove unused extension parameter from editors

Change-Id: I17e73e269698af0d515f668d3c272a748cdca3bb
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent a439d12b
...@@ -75,29 +75,25 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = { ...@@ -75,29 +75,25 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
Constants::COMMANDLOG_ID, // id Constants::COMMANDLOG_ID, // id
Constants::COMMANDLOG_DISPLAY_NAME, // display name Constants::COMMANDLOG_DISPLAY_NAME, // display name
Constants::COMMANDLOG, // context Constants::COMMANDLOG, // context
Constants::COMMANDAPP, // mime type Constants::COMMANDAPP}, // mime type
Constants::COMMANDEXT}, //extension
{ VcsBase::LogOutput, { VcsBase::LogOutput,
Constants::FILELOG_ID, Constants::FILELOG_ID,
Constants::FILELOG_DISPLAY_NAME, Constants::FILELOG_DISPLAY_NAME,
Constants::FILELOG, Constants::FILELOG,
Constants::LOGAPP, Constants::LOGAPP},
Constants::LOGEXT},
{ VcsBase::AnnotateOutput, { VcsBase::AnnotateOutput,
Constants::ANNOTATELOG_ID, Constants::ANNOTATELOG_ID,
Constants::ANNOTATELOG_DISPLAY_NAME, Constants::ANNOTATELOG_DISPLAY_NAME,
Constants::ANNOTATELOG, Constants::ANNOTATELOG,
Constants::ANNOTATEAPP, Constants::ANNOTATEAPP},
Constants::ANNOTATEEXT},
{ VcsBase::DiffOutput, { VcsBase::DiffOutput,
Constants::DIFFLOG_ID, Constants::DIFFLOG_ID,
Constants::DIFFLOG_DISPLAY_NAME, Constants::DIFFLOG_DISPLAY_NAME,
Constants::DIFFLOG, Constants::DIFFLOG,
Constants::DIFFAPP, Constants::DIFFAPP}
Constants::DIFFEXT}
}; };
static const VcsBase::VcsBaseSubmitEditorParameters submitEditorParameters = { static const VcsBase::VcsBaseSubmitEditorParameters submitEditorParameters = {
......
...@@ -50,25 +50,21 @@ const char COMMANDLOG_ID[] = "Bazaar Command Log Editor"; ...@@ -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_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar Command Log Editor");
const char COMMANDLOG[] = "Bazaar Command Log Editor"; const char COMMANDLOG[] = "Bazaar Command Log Editor";
const char COMMANDAPP[] = "application/vnd.nokia.text.scs_bazaar_commandlog"; 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_ID[] = "Bazaar File Log Editor";
const char FILELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "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 FILELOG[] = "Bazaar File Log Editor";
const char LOGAPP[] = "application/vnd.nokia.text.scs_bazaar_log"; const char LOGAPP[] = "application/vnd.nokia.text.scs_bazaar_log";
const char LOGEXT[] = "vcsBazaarLog";
const char ANNOTATELOG_ID[] = "Bazaar Annotation Editor"; const char ANNOTATELOG_ID[] = "Bazaar Annotation Editor";
const char ANNOTATELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar Annotation Editor"); const char ANNOTATELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar Annotation Editor");
const char ANNOTATELOG[] = "Bazaar Annotation Editor"; const char ANNOTATELOG[] = "Bazaar Annotation Editor";
const char ANNOTATEAPP[] = "application/vnd.nokia.text.scs_bazaar_annotatelog"; const char ANNOTATEAPP[] = "application/vnd.nokia.text.scs_bazaar_annotatelog";
const char ANNOTATEEXT[] = "vcsBazaarAnnotate";
const char DIFFLOG_ID[] = "Bazaar Diff Editor"; const char DIFFLOG_ID[] = "Bazaar Diff Editor";
const char DIFFLOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar Diff Editor"); const char DIFFLOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Bazaar Diff Editor");
const char DIFFLOG[] = "Bazaar Diff Editor"; const char DIFFLOG[] = "Bazaar Diff Editor";
const char DIFFAPP[] = "text/x-patch"; const char DIFFAPP[] = "text/x-patch";
const char DIFFEXT[] = "diff";
// Submit editor parameters // Submit editor parameters
const char COMMIT_ID[] = "Bazaar Commit Log Editor"; const char COMMIT_ID[] = "Bazaar Commit Log Editor";
......
...@@ -125,25 +125,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = { ...@@ -125,25 +125,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
"ClearCase Command Log Editor", // id "ClearCase Command Log Editor", // id
QT_TRANSLATE_NOOP("VCS", "ClearCase Command Log Editor"), // display name QT_TRANSLATE_NOOP("VCS", "ClearCase Command Log Editor"), // display name
"ClearCase Command Log Editor", // context "ClearCase Command Log Editor", // context
"application/vnd.audc.text.scs_cc_commandlog", "application/vnd.audc.text.scs_cc_commandlog"},
"scslog"},
{ VcsBase::LogOutput, { VcsBase::LogOutput,
"ClearCase File Log Editor", // id "ClearCase File Log Editor", // id
QT_TRANSLATE_NOOP("VCS", "ClearCase File Log Editor"), // display_name QT_TRANSLATE_NOOP("VCS", "ClearCase File Log Editor"), // display_name
"ClearCase File Log Editor", // context "ClearCase File Log Editor", // context
"application/vnd.audc.text.scs_cc_filelog", "application/vnd.audc.text.scs_cc_filelog"},
"scsfilelog"},
{ VcsBase::AnnotateOutput, { VcsBase::AnnotateOutput,
"ClearCase Annotation Editor", // id "ClearCase Annotation Editor", // id
QT_TRANSLATE_NOOP("VCS", "ClearCase Annotation Editor"), // display_name QT_TRANSLATE_NOOP("VCS", "ClearCase Annotation Editor"), // display_name
"ClearCase Annotation Editor", // context "ClearCase Annotation Editor", // context
"application/vnd.audc.text.scs_cc_annotation", "application/vnd.audc.text.scs_cc_annotation"},
"scsannotate"},
{ VcsBase::DiffOutput, { VcsBase::DiffOutput,
"ClearCase Diff Editor", // id "ClearCase Diff Editor", // id
QT_TRANSLATE_NOOP("VCS", "ClearCase Diff Editor"), // display_name QT_TRANSLATE_NOOP("VCS", "ClearCase Diff Editor"), // display_name
"ClearCase Diff Editor", // context "ClearCase Diff Editor", // context
"text/x-patch","diff"} "text/x-patch"}
}; };
// Utility to find a parameter set by type // Utility to find a parameter set by type
......
...@@ -120,25 +120,22 @@ static const VcsBaseEditorParameters editorParameters[] = { ...@@ -120,25 +120,22 @@ static const VcsBaseEditorParameters editorParameters[] = {
"CVS Command Log Editor", // id "CVS Command Log Editor", // id
QT_TRANSLATE_NOOP("VCS", "CVS Command Log Editor"), // display name QT_TRANSLATE_NOOP("VCS", "CVS Command Log Editor"), // display name
"CVS Command Log Editor", // context "CVS Command Log Editor", // context
"application/vnd.nokia.text.scs_cvs_commandlog", "application/vnd.nokia.text.scs_cvs_commandlog"},
"scslog"},
{ LogOutput, { LogOutput,
"CVS File Log Editor", // id "CVS File Log Editor", // id
QT_TRANSLATE_NOOP("VCS", "CVS File Log Editor"), // display name QT_TRANSLATE_NOOP("VCS", "CVS File Log Editor"), // display name
"CVS File Log Editor", // context "CVS File Log Editor", // context
"application/vnd.nokia.text.scs_cvs_filelog", "application/vnd.nokia.text.scs_cvs_filelog"},
"scsfilelog"},
{ AnnotateOutput, { AnnotateOutput,
"CVS Annotation Editor", // id "CVS Annotation Editor", // id
QT_TRANSLATE_NOOP("VCS", "CVS Annotation Editor"), // display name QT_TRANSLATE_NOOP("VCS", "CVS Annotation Editor"), // display name
"CVS Annotation Editor", // context "CVS Annotation Editor", // context
"application/vnd.nokia.text.scs_cvs_annotation", "application/vnd.nokia.text.scs_cvs_annotation"},
"scsannotate"},
{ DiffOutput, { DiffOutput,
"CVS Diff Editor", // id "CVS Diff Editor", // id
QT_TRANSLATE_NOOP("VCS", "CVS Diff Editor"), // display name QT_TRANSLATE_NOOP("VCS", "CVS Diff Editor"), // display name
"CVS Diff Editor", // context "CVS Diff Editor", // context
"text/x-patch","diff"} "text/x-patch"}
}; };
// Utility to find a parameter set by type // Utility to find a parameter set by type
......
...@@ -88,25 +88,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = { ...@@ -88,25 +88,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
Git::Constants::GIT_COMMAND_LOG_EDITOR_ID, Git::Constants::GIT_COMMAND_LOG_EDITOR_ID,
Git::Constants::GIT_COMMAND_LOG_EDITOR_DISPLAY_NAME, Git::Constants::GIT_COMMAND_LOG_EDITOR_DISPLAY_NAME,
Git::Constants::C_GIT_COMMAND_LOG_EDITOR, Git::Constants::C_GIT_COMMAND_LOG_EDITOR,
"application/vnd.nokia.text.scs_git_commandlog", "application/vnd.nokia.text.scs_git_commandlog"},
"gitlog"},
{ VcsBase::LogOutput, { VcsBase::LogOutput,
Git::Constants::GIT_LOG_EDITOR_ID, Git::Constants::GIT_LOG_EDITOR_ID,
Git::Constants::GIT_LOG_EDITOR_DISPLAY_NAME, Git::Constants::GIT_LOG_EDITOR_DISPLAY_NAME,
Git::Constants::C_GIT_LOG_EDITOR, Git::Constants::C_GIT_LOG_EDITOR,
"application/vnd.nokia.text.scs_git_filelog", "application/vnd.nokia.text.scs_git_filelog"},
"gitfilelog"},
{ VcsBase::AnnotateOutput, { VcsBase::AnnotateOutput,
Git::Constants::GIT_BLAME_EDITOR_ID, Git::Constants::GIT_BLAME_EDITOR_ID,
Git::Constants::GIT_BLAME_EDITOR_DISPLAY_NAME, Git::Constants::GIT_BLAME_EDITOR_DISPLAY_NAME,
Git::Constants::C_GIT_BLAME_EDITOR, Git::Constants::C_GIT_BLAME_EDITOR,
"application/vnd.nokia.text.scs_git_annotation", "application/vnd.nokia.text.scs_git_annotation"},
"gitsannotate"},
{ VcsBase::DiffOutput, { VcsBase::DiffOutput,
Git::Constants::GIT_DIFF_EDITOR_ID, Git::Constants::GIT_DIFF_EDITOR_ID,
Git::Constants::GIT_DIFF_EDITOR_DISPLAY_NAME, Git::Constants::GIT_DIFF_EDITOR_DISPLAY_NAME,
Git::Constants::C_GIT_DIFF_EDITOR, Git::Constants::C_GIT_DIFF_EDITOR,
"text/x-patch","diff"} "text/x-patch"}
}; };
// Utility to find a parameter set by type // Utility to find a parameter set by type
......
...@@ -50,25 +50,21 @@ const char COMMANDLOG_ID[] = "Mercurial Command Log Editor"; ...@@ -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_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial Command Log Editor");
const char COMMANDLOG[] = "Mercurial Command Log Editor"; const char COMMANDLOG[] = "Mercurial Command Log Editor";
const char COMMANDAPP[] = "application/vnd.nokia.text.scs_mercurial_commandlog"; 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_ID[] = "Mercurial File Log Editor";
const char FILELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "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 FILELOG[] = "Mercurial File Log Editor";
const char LOGAPP[] = "application/vnd.nokia.text.scs_mercurial_log"; const char LOGAPP[] = "application/vnd.nokia.text.scs_mercurial_log";
const char LOGEXT[] = "vcsMercurialLog";
const char ANNOTATELOG_ID[] = "Mercurial Annotation Editor"; const char ANNOTATELOG_ID[] = "Mercurial Annotation Editor";
const char ANNOTATELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial Annotation Editor"); const char ANNOTATELOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial Annotation Editor");
const char ANNOTATELOG[] = "Mercurial Annotation Editor"; const char ANNOTATELOG[] = "Mercurial Annotation Editor";
const char ANNOTATEAPP[] = "application/vnd.nokia.text.scs_mercurial_annotatelog"; const char ANNOTATEAPP[] = "application/vnd.nokia.text.scs_mercurial_annotatelog";
const char ANNOTATEEXT[] = "vcsMercurialAnnotate";
const char DIFFLOG_ID[] = "Mercurial Diff Editor"; const char DIFFLOG_ID[] = "Mercurial Diff Editor";
const char DIFFLOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial Diff Editor"); const char DIFFLOG_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "Mercurial Diff Editor");
const char DIFFLOG[] = "Mercurial Diff Editor"; const char DIFFLOG[] = "Mercurial Diff Editor";
const char DIFFAPP[] = "text/x-patch"; const char DIFFAPP[] = "text/x-patch";
const char DIFFEXT[] = "diff";
// Submit editor parameters // Submit editor parameters
const char COMMIT_ID[] = "Mercurial Commit Log Editor"; const char COMMIT_ID[] = "Mercurial Commit Log Editor";
......
...@@ -79,29 +79,25 @@ static const VcsBaseEditorParameters editorParameters[] = { ...@@ -79,29 +79,25 @@ static const VcsBaseEditorParameters editorParameters[] = {
Constants::COMMANDLOG_ID, // id Constants::COMMANDLOG_ID, // id
Constants::COMMANDLOG_DISPLAY_NAME, // display name Constants::COMMANDLOG_DISPLAY_NAME, // display name
Constants::COMMANDLOG, // context Constants::COMMANDLOG, // context
Constants::COMMANDAPP, // mime type Constants::COMMANDAPP}, // mime type
Constants::COMMANDEXT}, //extension
{ LogOutput, { LogOutput,
Constants::FILELOG_ID, Constants::FILELOG_ID,
Constants::FILELOG_DISPLAY_NAME, Constants::FILELOG_DISPLAY_NAME,
Constants::FILELOG, Constants::FILELOG,
Constants::LOGAPP, Constants::LOGAPP},
Constants::LOGEXT},
{ AnnotateOutput, { AnnotateOutput,
Constants::ANNOTATELOG_ID, Constants::ANNOTATELOG_ID,
Constants::ANNOTATELOG_DISPLAY_NAME, Constants::ANNOTATELOG_DISPLAY_NAME,
Constants::ANNOTATELOG, Constants::ANNOTATELOG,
Constants::ANNOTATEAPP, Constants::ANNOTATEAPP},
Constants::ANNOTATEEXT},
{ DiffOutput, { DiffOutput,
Constants::DIFFLOG_ID, Constants::DIFFLOG_ID,
Constants::DIFFLOG_DISPLAY_NAME, Constants::DIFFLOG_DISPLAY_NAME,
Constants::DIFFLOG, Constants::DIFFLOG,
Constants::DIFFAPP, Constants::DIFFAPP}
Constants::DIFFEXT}
}; };
static const VcsBaseSubmitEditorParameters submitEditorParameters = { static const VcsBaseSubmitEditorParameters submitEditorParameters = {
......
...@@ -78,25 +78,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = { ...@@ -78,25 +78,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_ID, Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_ID,
Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_DISPLAY_NAME, Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_DISPLAY_NAME,
Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_CONTEXT, Perforce::Constants::PERFORCE_COMMANDLOG_EDITOR_CONTEXT,
"application/vnd.nokia.text.scs_commandlog", "application/vnd.nokia.text.scs_commandlog"},
"scslog"},
{ VcsBase::LogOutput, { VcsBase::LogOutput,
Perforce::Constants::PERFORCE_LOG_EDITOR_ID, Perforce::Constants::PERFORCE_LOG_EDITOR_ID,
Perforce::Constants::PERFORCE_LOG_EDITOR_DISPLAY_NAME, Perforce::Constants::PERFORCE_LOG_EDITOR_DISPLAY_NAME,
Perforce::Constants::PERFORCE_LOG_EDITOR_CONTEXT, Perforce::Constants::PERFORCE_LOG_EDITOR_CONTEXT,
"application/vnd.nokia.text.scs_filelog", "application/vnd.nokia.text.scs_filelog"},
"scsfilelog"},
{ VcsBase::AnnotateOutput, { VcsBase::AnnotateOutput,
Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_ID, Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_ID,
Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_DISPLAY_NAME, Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_DISPLAY_NAME,
Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_CONTEXT, Perforce::Constants::PERFORCE_ANNOTATION_EDITOR_CONTEXT,
"application/vnd.nokia.text.scs_annotation", "application/vnd.nokia.text.scs_annotation"},
"scsannotate"},
{ VcsBase::DiffOutput, { VcsBase::DiffOutput,
Perforce::Constants::PERFORCE_DIFF_EDITOR_ID, Perforce::Constants::PERFORCE_DIFF_EDITOR_ID,
Perforce::Constants::PERFORCE_DIFF_EDITOR_DISPLAY_NAME, Perforce::Constants::PERFORCE_DIFF_EDITOR_DISPLAY_NAME,
Perforce::Constants::PERFORCE_DIFF_EDITOR_CONTEXT, Perforce::Constants::PERFORCE_DIFF_EDITOR_CONTEXT,
"text/x-patch","diff"} "text/x-patch"}
}; };
// Utility to find a parameter set by type // Utility to find a parameter set by type
......
...@@ -116,25 +116,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = { ...@@ -116,25 +116,22 @@ static const VcsBase::VcsBaseEditorParameters editorParameters[] = {
"Subversion Command Log Editor", // id "Subversion Command Log Editor", // id
QT_TRANSLATE_NOOP("VCS", "Subversion Command Log Editor"), // display name QT_TRANSLATE_NOOP("VCS", "Subversion Command Log Editor"), // display name
"Subversion Command Log Editor", // context "Subversion Command Log Editor", // context
"application/vnd.nokia.text.scs_svn_commandlog", "application/vnd.nokia.text.scs_svn_commandlog"},
"scslog"},
{ VcsBase::LogOutput, { VcsBase::LogOutput,
"Subversion File Log Editor", // id "Subversion File Log Editor", // id
QT_TRANSLATE_NOOP("VCS", "Subversion File Log Editor"), // display_name QT_TRANSLATE_NOOP("VCS", "Subversion File Log Editor"), // display_name
"Subversion File Log Editor", // context "Subversion File Log Editor", // context
"application/vnd.nokia.text.scs_svn_filelog", "application/vnd.nokia.text.scs_svn_filelog"},
"scsfilelog"},
{ VcsBase::AnnotateOutput, { VcsBase::AnnotateOutput,
"Subversion Annotation Editor", // id "Subversion Annotation Editor", // id
QT_TRANSLATE_NOOP("VCS", "Subversion Annotation Editor"), // display_name QT_TRANSLATE_NOOP("VCS", "Subversion Annotation Editor"), // display_name
"Subversion Annotation Editor", // context "Subversion Annotation Editor", // context
"application/vnd.nokia.text.scs_svn_annotation", "application/vnd.nokia.text.scs_svn_annotation"},
"scsannotate"},
{ VcsBase::DiffOutput, { VcsBase::DiffOutput,
"Subversion Diff Editor", // id "Subversion Diff Editor", // id
QT_TRANSLATE_NOOP("VCS", "Subversion Diff Editor"), // display_name QT_TRANSLATE_NOOP("VCS", "Subversion Diff Editor"), // display_name
"Subversion Diff Editor", // context "Subversion Diff Editor", // context
"text/x-patch","diff"} "text/x-patch"}
}; };
// Utility to find a parameter set by type // Utility to find a parameter set by type
......
...@@ -72,7 +72,6 @@ public: ...@@ -72,7 +72,6 @@ public:
const char *displayName; const char *displayName;
const char *context; const char *context;
const char *mimeType; const char *mimeType;
const char *extension;
}; };
class VCSBASE_EXPORT DiffChunk class VCSBASE_EXPORT DiffChunk
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment