srchiliteqt::StyleComboBox Class Reference

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

#include <StyleComboBox.h>

List of all members.

Public Slots

void setCurrentStyle (const QString &styleFile)
 Sets the style file in the combo.
const QString getCurrentStyle () const
void reload (const QString &path)
 Reloads the contents of the combo box by using the specified path for searching for .style and .css files.

Public Member Functions

 StyleComboBox (const QString &path="")
 Initializes the combo box with the .style and .css files retrieved in the specified path.

Detailed Description

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


Constructor & Destructor Documentation

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

Initializes the combo box with the .style and .css files retrieved in the specified path.

Parameters:
path where to look for files (if empty, uses the data dir path of source-highlight)

Member Function Documentation

const QString srchiliteqt::StyleComboBox::getCurrentStyle (  )  const [slot]
Returns:
the currently selected style file
void srchiliteqt::StyleComboBox::reload ( const QString &  path  )  [slot]

Reloads the contents of the combo box by using the specified path for searching for .style and .css files.

Parameters:
path 
void srchiliteqt::StyleComboBox::setCurrentStyle ( const QString &  styleFile  )  [slot]

Sets the style file in the combo.

Parameters:
styleFile the style file name; if the file 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:23:00 2010 for Source-highlight Qt Library by  doxygen 1.6.1