srchiliteqt::OutputFormatComboBox Class Reference

A subclass of QComboBox which provides functionalities for showing and selecting the output format definition files of Source-Highlight. More...

#include <OutputFormatComboBox.h>

List of all members.

Public Slots

void setCurrentOutputFormat (const QString &outlang)
 Sets the output format in the combo.
const QString getCurrentOutputFormat () const
void reload (const QString &path)
 Reloads the contents of the combo box by using the specified path for searching for .outlang files.

Public Member Functions

 OutputFormatComboBox (const QString &path="")
 Initializes the combo box with the .outlang files retrieved in the specified path.
 OutputFormatComboBox (srchiliteqt::Qt4SyntaxHighlighter *_highlighter)

Detailed Description

A subclass of QComboBox which provides functionalities for showing and selecting the output format definition files of Source-Highlight.

Since:
0.2

Constructor & Destructor Documentation

srchiliteqt::OutputFormatComboBox::OutputFormatComboBox ( const QString &  path = ""  ) 

Initializes the combo box with the .outlang files retrieved in the specified path.

Parameters:
path where to look for .outlang files (if empty, uses the data dir path of source-highlight)
srchiliteqt::OutputFormatComboBox::OutputFormatComboBox ( srchiliteqt::Qt4SyntaxHighlighter _highlighter  ) 
Parameters:
_highlighter the highlighter object; this will be used only for initialization
Deprecated:
use the other constructor, which permits not needing a Qt4SyntaxHighlighter only for initialization

Member Function Documentation

const QString srchiliteqt::OutputFormatComboBox::getCurrentOutputFormat (  )  const [slot]
Returns:
the output format definition file name currently selected
void srchiliteqt::OutputFormatComboBox::reload ( const QString &  path  )  [slot]

Reloads the contents of the combo box by using the specified path for searching for .outlang files.

Parameters:
path 
void srchiliteqt::OutputFormatComboBox::setCurrentOutputFormat ( const QString &  outlang  )  [slot]

Sets the output format in the combo.

Parameters:
outlang the format file name; if the name is not part of the combo list, nothing happens

The documentation for this class was generated from the following files:

Generated on Sat Mar 6 11:22:59 2010 for Source-highlight Qt Library by  doxygen 1.6.1