Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
0e4e35f8
Commit
0e4e35f8
authored
Nov 25, 2009
by
dt
Browse files
Rename method to the more correct canCreateForBuildConfiguration
parent
a7a7e4d0
Changes
12
Hide whitespace changes
Inline
Side-by-side
src/plugins/cmakeprojectmanager/makestep.cpp
View file @
0e4e35f8
...
...
@@ -284,7 +284,7 @@ BuildStep *MakeStepFactory::clone(BuildStep *bs, BuildConfiguration *bc) const
return
new
MakeStep
(
static_cast
<
MakeStep
*>
(
bs
),
bc
);
}
QStringList
MakeStepFactory
::
canCreateFor
Project
(
BuildConfiguration
*
/* pro */
)
const
QStringList
MakeStepFactory
::
canCreateFor
BuildConfiguration
(
BuildConfiguration
*
/* pro */
)
const
{
return
QStringList
();
}
...
...
src/plugins/cmakeprojectmanager/makestep.h
View file @
0e4e35f8
...
...
@@ -107,7 +107,7 @@ class MakeStepFactory : public ProjectExplorer::IBuildStepFactory
virtual
bool
canCreate
(
const
QString
&
name
)
const
;
virtual
ProjectExplorer
::
BuildStep
*
create
(
ProjectExplorer
::
BuildConfiguration
*
bc
,
const
QString
&
name
)
const
;
virtual
ProjectExplorer
::
BuildStep
*
clone
(
ProjectExplorer
::
BuildStep
*
bs
,
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
virtual
QStringList
canCreateFor
Project
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
virtual
QStringList
canCreateFor
BuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
virtual
QString
displayNameForName
(
const
QString
&
name
)
const
;
};
...
...
src/plugins/genericprojectmanager/genericmakestep.cpp
View file @
0e4e35f8
...
...
@@ -292,7 +292,7 @@ ProjectExplorer::BuildStep *GenericMakeStepFactory::clone(ProjectExplorer::Build
return
new
GenericMakeStep
(
static_cast
<
GenericMakeStep
*>
(
bs
),
bc
);
}
QStringList
GenericMakeStepFactory
::
canCreateFor
Project
(
ProjectExplorer
::
BuildConfiguration
*
/* pro */
)
const
QStringList
GenericMakeStepFactory
::
canCreateFor
BuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
/* pro */
)
const
{
return
QStringList
();
}
...
...
src/plugins/genericprojectmanager/genericmakestep.h
View file @
0e4e35f8
...
...
@@ -107,7 +107,7 @@ class GenericMakeStepFactory : public ProjectExplorer::IBuildStepFactory
const
QString
&
name
)
const
;
virtual
ProjectExplorer
::
BuildStep
*
clone
(
ProjectExplorer
::
BuildStep
*
bs
,
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
virtual
QStringList
canCreateFor
Project
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
virtual
QStringList
canCreateFor
BuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
virtual
QString
displayNameForName
(
const
QString
&
name
)
const
;
};
...
...
src/plugins/projectexplorer/buildstep.h
View file @
0e4e35f8
...
...
@@ -133,7 +133,7 @@ public:
virtual
BuildStep
*
create
(
BuildConfiguration
*
bc
,
const
QString
&
name
)
const
=
0
;
/// Called by the add BuildStep action to check which BuildSteps could be added
/// to the project by this factory, should return a list of names
virtual
QStringList
canCreateFor
Project
(
BuildConfiguration
*
bc
)
const
=
0
;
virtual
QStringList
canCreateFor
BuildConfiguration
(
BuildConfiguration
*
bc
)
const
=
0
;
/// Called to convert an internal name to a displayName
/// Called to clone a BuildStep
...
...
src/plugins/projectexplorer/buildstepspage.cpp
View file @
0e4e35f8
...
...
@@ -143,7 +143,7 @@ void BuildStepsPage::updateAddBuildStepMenu()
//Build up a list of possible steps and save map the display names to the (internal) name and factories.
QList
<
IBuildStepFactory
*>
factories
=
ExtensionSystem
::
PluginManager
::
instance
()
->
getObjects
<
IBuildStepFactory
>
();
foreach
(
IBuildStepFactory
*
factory
,
factories
)
{
QStringList
names
=
factory
->
canCreateFor
Project
(
m_configuration
);
QStringList
names
=
factory
->
canCreateFor
BuildConfiguration
(
m_configuration
);
foreach
(
const
QString
&
name
,
names
)
{
map
.
insert
(
factory
->
displayNameForName
(
name
),
QPair
<
QString
,
IBuildStepFactory
*>
(
name
,
factory
));
}
...
...
src/plugins/projectexplorer/processstep.cpp
View file @
0e4e35f8
...
...
@@ -212,7 +212,7 @@ BuildStep *ProcessStepFactory::clone(BuildStep *bs, BuildConfiguration *bc) cons
return
new
ProcessStep
(
static_cast
<
ProcessStep
*>
(
bs
),
bc
);
}
QStringList
ProcessStepFactory
::
canCreateFor
Project
(
BuildConfiguration
*
bc
)
const
QStringList
ProcessStepFactory
::
canCreateFor
BuildConfiguration
(
BuildConfiguration
*
bc
)
const
{
Q_UNUSED
(
bc
)
return
QStringList
()
<<
"projectexplorer.processstep"
;
...
...
src/plugins/projectexplorer/processstep.h
View file @
0e4e35f8
...
...
@@ -47,7 +47,7 @@ public:
virtual
bool
canCreate
(
const
QString
&
name
)
const
;
virtual
BuildStep
*
create
(
BuildConfiguration
*
bc
,
const
QString
&
name
)
const
;
virtual
BuildStep
*
clone
(
BuildStep
*
bs
,
BuildConfiguration
*
bc
)
const
;
virtual
QStringList
canCreateFor
Project
(
BuildConfiguration
*
pro
)
const
;
virtual
QStringList
canCreateFor
BuildConfiguration
(
BuildConfiguration
*
pro
)
const
;
virtual
QString
displayNameForName
(
const
QString
&
name
)
const
;
};
...
...
src/plugins/qt4projectmanager/makestep.cpp
View file @
0e4e35f8
...
...
@@ -335,7 +335,7 @@ ProjectExplorer::BuildStep *MakeStepFactory::clone(ProjectExplorer::BuildStep *b
return
new
MakeStep
(
static_cast
<
MakeStep
*>
(
bs
),
bc
);
}
QStringList
MakeStepFactory
::
canCreateFor
Project
(
ProjectExplorer
::
BuildConfiguration
*
pro
)
const
QStringList
MakeStepFactory
::
canCreateFor
BuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
pro
)
const
{
if
(
qobject_cast
<
Qt4BuildConfiguration
*>
(
pro
))
return
QStringList
()
<<
Constants
::
MAKESTEP
;
...
...
src/plugins/qt4projectmanager/makestep.h
View file @
0e4e35f8
...
...
@@ -54,7 +54,7 @@ public:
bool
canCreate
(
const
QString
&
name
)
const
;
ProjectExplorer
::
BuildStep
*
create
(
ProjectExplorer
::
BuildConfiguration
*
bc
,
const
QString
&
name
)
const
;
ProjectExplorer
::
BuildStep
*
clone
(
ProjectExplorer
::
BuildStep
*
bs
,
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
QStringList
canCreateFor
Project
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
QStringList
canCreateFor
BuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
QString
displayNameForName
(
const
QString
&
name
)
const
;
};
}
...
...
src/plugins/qt4projectmanager/qmakestep.cpp
View file @
0e4e35f8
...
...
@@ -377,7 +377,7 @@ ProjectExplorer::BuildStep *QMakeStepFactory::clone(ProjectExplorer::BuildStep *
return
new
QMakeStep
(
static_cast
<
QMakeStep
*>
(
bs
),
bc
);
}
QStringList
QMakeStepFactory
::
canCreateFor
Project
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
QStringList
QMakeStepFactory
::
canCreateFor
BuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
{
if
(
qobject_cast
<
Qt4BuildConfiguration
*>
(
bc
))
return
QStringList
()
<<
Constants
::
QMAKESTEP
;
...
...
src/plugins/qt4projectmanager/qmakestep.h
View file @
0e4e35f8
...
...
@@ -54,7 +54,7 @@ public:
bool
canCreate
(
const
QString
&
name
)
const
;
ProjectExplorer
::
BuildStep
*
create
(
ProjectExplorer
::
BuildConfiguration
*
bc
,
const
QString
&
name
)
const
;
ProjectExplorer
::
BuildStep
*
clone
(
ProjectExplorer
::
BuildStep
*
bs
,
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
QStringList
canCreateFor
Project
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
QStringList
canCreateFor
BuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
const
;
QString
displayNameForName
(
const
QString
&
name
)
const
;
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment