Source-highlight Qt Library
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>

Inheritance diagram for srchiliteqt::OutputFormatComboBox:
Collaboration diagram for srchiliteqt::OutputFormatComboBox:

Public Slots

void setCurrentOutputFormat (const QString &outlang)
 Sets the output format in the combo. More...
 
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. More...
 

Public Member Functions

 OutputFormatComboBox (const QString &path="")
 Initializes the combo box with the .outlang files retrieved in the specified path. More...
 
 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
pathwhere to look for .outlang files (if empty, uses the data dir path of source-highlight)
srchiliteqt::OutputFormatComboBox::OutputFormatComboBox ( srchiliteqt::Qt4SyntaxHighlighter _highlighter)
Parameters
_highlighterthe 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
outlangthe 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: