srchiliteqt::LanguageComboBox Class Reference

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

#include <LanguageComboBox.h>

List of all members.

Public Slots

void setCurrentLanguage (const QString &lang)
 Sets the language in the combo.
const QString getCurrentLanguage () const
void reload (const QString &path)
 Reloads the contents of the combo box by using the specified path for searching for .lang files.

Public Member Functions

 LanguageComboBox (const QString &path="")
 Initializes the combo box with the .lang files retrieved in the specified path.
 LanguageComboBox (Qt4SyntaxHighlighter *_highlighter)

Detailed Description

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


Constructor & Destructor Documentation

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

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

Parameters:
path where to look for .lang files (if empty, uses the data dir path of source-highlight)
srchiliteqt::LanguageComboBox::LanguageComboBox ( 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::LanguageComboBox::getCurrentLanguage (  )  const [slot]
Returns:
the language definition file name currently selected
void srchiliteqt::LanguageComboBox::reload ( const QString &  path  )  [slot]

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

Parameters:
path 
void srchiliteqt::LanguageComboBox::setCurrentLanguage ( const QString &  lang  )  [slot]

Sets the language in the combo.

Parameters:
lang the language name; if the language 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