Source-highlight Qt Library
LanguageComboBox.h
1 /*
2  * Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it
3  * License: See COPYING file that comes with this distribution
4  */
5 
6 #ifndef LANGUAGECOMBOBOX_H
7 #define LANGUAGECOMBOBOX_H
8 
9 #include <QComboBox>
10 #include "Qt4SyntaxHighlighter.h"
11 
12 namespace srchiliteqt {
13 
18 class LanguageComboBox : public QComboBox
19 {
20  Q_OBJECT
21 public:
28  LanguageComboBox(const QString &path = "");
29 
36 
37 public slots:
43  void setCurrentLanguage(const QString &lang);
44 
48  const QString getCurrentLanguage() const;
49 
55  void reload(const QString &path);
56 };
57 
58 }
59 
60 #endif // LANGUAGECOMBOBOX_H
61 
Definition: ColorDialog.cpp:12
void reload(const QString &path)
Reloads the contents of the combo box by using the specified path for searching for ...
Definition: LanguageComboBox.cpp:40
void setCurrentLanguage(const QString &lang)
Sets the language in the combo.
Definition: LanguageComboBox.cpp:30
const QString getCurrentLanguage() const
Definition: LanguageComboBox.cpp:36
LanguageComboBox(const QString &path="")
Initializes the combo box with the .lang files retrieved in the specified path.
Definition: LanguageComboBox.cpp:12
A subclass of QComboBox which provides functionalities for showing and selecting the language definit...
Definition: LanguageComboBox.h:18
An implementation of QSyntaxHighlighter using GNU Source-highlight library (by relying on GNUSyntaxHi...
Definition: Qt4SyntaxHighlighter.h:38