Adapter for the Trolltech Qt UIC Compiler.
addImpliedArgs
protected void addImpliedArgs(Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
Boolean rtti,
OptimizationEnum optimization) Add arguments for debug, etc.
- addImpliedArgs in interface CommandLineCompiler
args - Vector command argument listdebug - boolean build for debug if truemultithreaded - boolean build for multithreading if trueexceptions - boolean enable exceptions if truelinkType - LinkType output and runtime typertti - Boolean enable run-time type identification if trueoptimization - OptimizationEnum optimization
addWarningSwitch
protected void addWarningSwitch(Vector args,
int level) Add arguments for specified warning level.
- addWarningSwitch in interface CommandLineCompiler
args - Vector command line argumentslevel - int warning level value
compile
public void compile(CCTask task,
File outputDir,
String[] sourceFiles,
String[] args,
String[] endArgs,
boolean relentless,
CommandLineCompilerConfiguration config,
ProgressMonitor monitor) Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files.
- compile in interface CommandLineCompiler
task - current cc taskoutputDir - output directorysourceFiles - source filesargs - command line arguments that appear before input filesendArgs - command line arguments that appear after input filesrelentless - if true, do not stop at first compilation errorconfig - compiler configurationmonitor - progress monitor
createParser
protected Parser createParser(File source)
The include parser for C will work just fine, but we didn't want to
inherit from CommandLineCCompiler.
- createParser in interface AbstractCompiler
source - source file to be parsed
getArgumentCountPerInputFile
protected int getArgumentCountPerInputFile()
Gets number of command line arguments per input file.
- getArgumentCountPerInputFile in interface CommandLineCompiler
- int number of command line arguments per input file.
getDefineSwitch
protected void getDefineSwitch(StringBuffer buffer,
String define,
String value) Gets switch to define preprocessor macro.
- getDefineSwitch in interface CommandLineCompiler
buffer - StringBuffer command line argumentdefine - String macro namevalue - String macro value, may be null.
getIncludeDirSwitch
protected String getIncludeDirSwitch(String includeDir)
Gets include directory switch.
- getIncludeDirSwitch in interface CommandLineCompiler
includeDir - String include directory
- String command switch to add specified directory to search path
getInputFileArgument
protected String getInputFileArgument(File outputDir,
String filename,
int index) Gets input file arguments.
- getInputFileArgument in interface CommandLineCompiler
outputDir - File output directoryfilename - String input file name.index - int argument index,
0 to getNumberOfArgumentsPerInputFile() -1
- String input file argument
getInstance
public static UserInterfaceCompiler getInstance()
Gets singleton instance of compiler.
- MetaObjectCompiler singleton instance
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()
Gets maximum number of input files processed per command.
- getMaximumInputFilesPerCommand in interface CommandLineCompiler
- int maximum number of input files processed per command.
getTotalArgumentLengthForInputFile
protected int getTotalArgumentLengthForInputFile(File outputDir,
String inputFile) Get total command line length due to the input file.
- getTotalArgumentLengthForInputFile in interface CommandLineCompiler
outputDir - File output directoryinputFile - String input file
- int characters added to command line for the input file.
getUndefineSwitch
protected void getUndefineSwitch(StringBuffer buffer,
String define) Gets switch to undefine preprocessor macro.
- getUndefineSwitch in interface CommandLineCompiler
buffer - StringBuffer command line argumentdefine - String macro name