forked from qt-creator/qt-creator
Incredibuild: Use FilePathAspect
Change-Id: I02f09860ae81f060adeee0839e20740be802da9a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -76,10 +76,9 @@ BuildConsoleBuildStep::BuildConsoleBuildStep(BuildStepList *buildStepList, Id id
|
|||||||
|
|
||||||
addAspect<TextDisplay>("<b>" + Tr::tr("IncrediBuild Distribution Control"));
|
addAspect<TextDisplay>("<b>" + Tr::tr("IncrediBuild Distribution Control"));
|
||||||
|
|
||||||
auto profileXml = addAspect<StringAspect>();
|
auto profileXml = addAspect<FilePathAspect>();
|
||||||
profileXml->setSettingsKey("IncrediBuild.BuildConsole.ProfileXml");
|
profileXml->setSettingsKey("IncrediBuild.BuildConsole.ProfileXml");
|
||||||
profileXml->setLabelText(Tr::tr("Profile.xml:"));
|
profileXml->setLabelText(Tr::tr("Profile.xml:"));
|
||||||
profileXml->setDisplayStyle(StringAspect::PathChooserDisplay);
|
|
||||||
profileXml->setExpectedKind(PathChooser::Kind::File);
|
profileXml->setExpectedKind(PathChooser::Kind::File);
|
||||||
profileXml->setBaseFileName(PathChooser::homePath());
|
profileXml->setBaseFileName(PathChooser::homePath());
|
||||||
profileXml->setHistoryCompleter("IncrediBuild.BuildConsole.ProfileXml.History");
|
profileXml->setHistoryCompleter("IncrediBuild.BuildConsole.ProfileXml.History");
|
||||||
@@ -138,10 +137,9 @@ BuildConsoleBuildStep::BuildConsoleBuildStep(BuildStepList *buildStepList, Id id
|
|||||||
"beginning of the build output text. This title will also be used "
|
"beginning of the build output text. This title will also be used "
|
||||||
"for the Build History and Build Monitor displays."));
|
"for the Build History and Build Monitor displays."));
|
||||||
|
|
||||||
auto monFile = addAspect<StringAspect>();
|
auto monFile = addAspect<FilePathAspect>();
|
||||||
monFile->setSettingsKey("IncrediBuild.BuildConsole.MonFile");
|
monFile->setSettingsKey("IncrediBuild.BuildConsole.MonFile");
|
||||||
monFile->setLabelText(Tr::tr("Save IncrediBuild monitor file:"));
|
monFile->setLabelText(Tr::tr("Save IncrediBuild monitor file:"));
|
||||||
monFile->setDisplayStyle(StringAspect::PathChooserDisplay);
|
|
||||||
monFile->setExpectedKind(PathChooser::Kind::Any);
|
monFile->setExpectedKind(PathChooser::Kind::Any);
|
||||||
monFile->setBaseFileName(PathChooser::homePath());
|
monFile->setBaseFileName(PathChooser::homePath());
|
||||||
monFile->setHistoryCompleter(QLatin1String("IncrediBuild.BuildConsole.MonFile.History"));
|
monFile->setHistoryCompleter(QLatin1String("IncrediBuild.BuildConsole.MonFile.History"));
|
||||||
@@ -155,10 +153,9 @@ BuildConsoleBuildStep::BuildConsoleBuildStep(BuildStepList *buildStepList, Id id
|
|||||||
suppressStdOut->setLabel(Tr::tr("Suppress STDOUT:"));
|
suppressStdOut->setLabel(Tr::tr("Suppress STDOUT:"));
|
||||||
suppressStdOut->setToolTip(Tr::tr("Does not write anything to the standard output."));
|
suppressStdOut->setToolTip(Tr::tr("Does not write anything to the standard output."));
|
||||||
|
|
||||||
auto logFile = addAspect<StringAspect>();
|
auto logFile = addAspect<FilePathAspect>();
|
||||||
logFile->setSettingsKey("IncrediBuild.BuildConsole.LogFile");
|
logFile->setSettingsKey("IncrediBuild.BuildConsole.LogFile");
|
||||||
logFile->setLabelText(Tr::tr("Output Log file:"));
|
logFile->setLabelText(Tr::tr("Output Log file:"));
|
||||||
logFile->setDisplayStyle(StringAspect::PathChooserDisplay);
|
|
||||||
logFile->setExpectedKind(PathChooser::Kind::SaveFile);
|
logFile->setExpectedKind(PathChooser::Kind::SaveFile);
|
||||||
logFile->setBaseFileName(PathChooser::homePath());
|
logFile->setBaseFileName(PathChooser::homePath());
|
||||||
logFile->setHistoryCompleter(QLatin1String("IncrediBuild.BuildConsole.LogFile.History"));
|
logFile->setHistoryCompleter(QLatin1String("IncrediBuild.BuildConsole.LogFile.History"));
|
||||||
|
|||||||
Reference in New Issue
Block a user