Source-highlight Qt Library
|
00001 /* 00002 * Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it 00003 * License: See COPYING file that comes with this distribution 00004 */ 00005 00006 #ifndef LANGUAGECOMBOBOX_H 00007 #define LANGUAGECOMBOBOX_H 00008 00009 #include <QComboBox> 00010 #include "Qt4SyntaxHighlighter.h" 00011 00012 namespace srchiliteqt { 00013 00018 class LanguageComboBox : public QComboBox 00019 { 00020 Q_OBJECT 00021 public: 00028 LanguageComboBox(const QString &path = ""); 00029 00035 LanguageComboBox(Qt4SyntaxHighlighter *_highlighter); 00036 00037 public slots: 00043 void setCurrentLanguage(const QString &lang); 00044 00048 const QString getCurrentLanguage() const; 00049 00055 void reload(const QString &path); 00056 }; 00057 00058 } 00059 00060 #endif // LANGUAGECOMBOBOX_H 00061