00001 #ifndef LANGUAGECOMBOBOX_H 00002 #define LANGUAGECOMBOBOX_H 00003 00004 #include <QComboBox> 00005 #include "Qt4SyntaxHighlighter.h" 00006 00007 namespace srchiliteqt { 00008 00013 class LanguageComboBox : public QComboBox 00014 { 00015 Q_OBJECT 00016 public: 00023 LanguageComboBox(const QString &path = ""); 00024 00030 LanguageComboBox(Qt4SyntaxHighlighter *_highlighter); 00031 00032 public slots: 00038 void setCurrentLanguage(const QString &lang); 00039 00043 const QString getCurrentLanguage() const; 00044 00050 void reload(const QString &path); 00051 }; 00052 00053 } 00054 00055 #endif // LANGUAGECOMBOBOX_H 00056