ProcessOptions Class Reference

Inheritance diagram for ProcessOptions:

Inheritance graph
[legend]
Collaboration diagram for ProcessOptions:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProcessOptions ()
 ProcessOptions (OutputMethodInfo info)
QString targetFile () const
void setTargetFile (const QString &file)
void setIntermediaryOutput (const QString &file)
QString intermediaryOutput () const
void setInputFiles (const QStringList &files)
QStringList inputFiles () const
void setMethod (Method::type method)
Method::type method () const
void setProcessPath (ProcessPath::Path path)
ProcessPath::Path processPath () const
void setTextOutputTarget (TextDocument *target, QObject *receiver, const char *slot)
TextDocumenttextOutputTarget () const
void setTextOutputtedTo (TextDocument *outputtedTo)

Static Public Member Functions

static ProcessPath::MediaType guessMediaType (const QString &url)

Protected Attributes

TextDocumentm_pTextOutputTarget
ProcessOptionsHelperm_pHelper
bool b_targetFileSet
QStringList m_inputFiles
QString m_targetFile
QString m_intermediaryFile
Method::type m_method
ProcessPath::Path m_processPath

Classes

class  Method
class  ProcessPath

Detailed Description

Definition at line 64 of file language.h.


Member Function Documentation

ProcessOptions::ProcessPath::MediaType ProcessOptions::guessMediaType ( const QString &  url  )  [static]

Tries to guess the media type from the url (and possible the contents of the file as well).

Definition at line 235 of file language.cpp.

References AsmParser::parse(), and AsmParser::type().

Referenced by ProjectItem::build(), TextDocument::convertToAssembly(), TextDocument::convertToHex(), TextDocument::convertToPIC(), and GpsimProcessor::generateSymbolFile().

QString ProcessOptions::targetFile (  )  const [inline]

The *final* target file (not any intermediatary ones)

Definition at line 149 of file language.h.

References m_targetFile.

Referenced by Language::finish(), ProcessChain::ProcessChain(), and ProcessChain::slotFinishedCompile().

void ProcessOptions::setTargetFile ( const QString &  file  ) 

This sets the final target file, as well as the initial intermediatary one

Definition at line 222 of file language.cpp.

References b_targetFileSet, m_intermediaryFile, and m_targetFile.

Referenced by ProjectItem::build(), GpsimProcessor::compileMicrobe(), GpsimProcessor::generateSymbolFile(), and ProcessOptions().

void ProcessOptions::setTextOutputTarget ( TextDocument target,
QObject *  receiver,
const char *  slot 
)

If the output is text; If the user has selected (in config options) ReuseSameViewForOutput, then the given TextDocument will have its text set to the output if the TextDocument is not modified and has an empty url. Otherwise a new TextDocument will be created. Either way, once the the processing has finished, a signal will be emitted to the given receiver passing a TextDocument * as an argument. This is not to be confused with setTextOutputtedTo, which is called once the processing has finished, and will call-back to the slot given.

Definition at line 208 of file language.cpp.

References m_pHelper, and m_pTextOutputTarget.

TextDocument* ProcessOptions::textOutputTarget (  )  const [inline]

See also:
setTextOutputTarget

Definition at line 181 of file language.h.

References m_pTextOutputTarget.

Referenced by ProcessChain::slotFinishedCompile().

void ProcessOptions::setTextOutputtedTo ( TextDocument outputtedTo  ) 

See also:
setTextOuputTarget

Definition at line 215 of file language.cpp.

References m_pHelper, m_pTextOutputTarget, and ProcessOptionsHelper::textOutputtedTo().

Referenced by ProcessChain::slotFinishedCompile().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:55 2007 for KTechLab by  doxygen 1.5.1